Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got this error when I had try to install and load cityjson in qgis 3.10 ltr #33

Open
Navid61 opened this issue Sep 16, 2020 · 2 comments

Comments

@Navid61
Copy link

Navid61 commented Sep 16, 2020

Couldn't load plugin 'CityJSON-loader' due to an error when calling its classFactory() method

ValueError: could not convert string to float: '6378137.0.'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/sigma/.local/share/QGIS/QGIS3/profiles/default/python/plugins/CityJSON-loader/init.py", line 35, in classFactory
from .cityjson_loader import CityJsonLoader
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/sigma/.local/share/QGIS/QGIS3/profiles/default/python/plugins/CityJSON-loader/cityjson_loader.py", line 33, in
from .cjio import cityjson
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/sigma/.local/share/QGIS/QGIS3/profiles/default/python/plugins/CityJSON-loader/cjio/cityjson.py", line 15, in
import pyproj
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/local/lib/python3.7/dist-packages/pyproj/init.py", line 81, in
from pyproj.crs import CRS # noqa: F401
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/local/lib/python3.7/dist-packages/pyproj/crs.py", line 57, in
from pyproj.geod import Geod
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/local/lib/python3.7/dist-packages/pyproj/geod.py", line 42, in
pj_ellps = get_ellps_map()
File "pyproj/_list.pyx", line 39, in pyproj._list.get_ellps_map
ValueError: could not convert string to float: '6378137.0.'

Python version: 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0]
QGIS version: 3.10.9-A Coruña A Coruña, bf47e9d

@liberostelios
Copy link
Contributor

Hi Navid,

This is a really weird issue. It doesn't seem to be affected by any specific data. Sounds like there is something wrong with the pyproj package in QGIS.

Nevertheless, in those cases one of the main suspect if the regional settings of your operating system. May I ask if that's on Linux, Windows or macOS and what are your regional settings (e.g.: is the decimal point a dot or a comma)?

@Navid61
Copy link
Author

Navid61 commented Dec 27, 2020

Hi, I didn't understand what is your question? Regional setting, you mean my local setting, I did not change any regional setting in qgis, but I think it would be comma, however I should check again my setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants