BjornNyberg / NetworkGT

The NetworkGT (Network Geometry and Topology) Toolbox is a set of tools designed for the geometrical and topological analysis of fracture networks.
GNU General Public License v3.0
30 stars 3 forks source link

Couldn't load plugin 'network_gt' due to an error when calling its classFactory() method #14

Closed kaford315 closed 2 years ago

kaford315 commented 3 years ago

Hi Bjorn,

Just opened up NetworkGT today and it's running this error:

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

ImportError: C extension: No module named 'pandas._libs.tslibs.conversion' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.

I've tried updating plotly and pandas but this hasn't helped. Any ideas?

Thanks!

BjornNyberg commented 3 years ago

@kaford315

Strange.... this is definately related to pandas. A quick google search would suggest that you uninstall pandas entirely and reinstall (https://stackoverflow.com/questions/54093020/no-module-named-pandas-libs-tslib)

pip uninstall pandas pip install pandas

Does this solve your problem?

kaford315 commented 3 years ago

Hi Bjorn,

I did try this already and unfortunately no luck! I'll keep searching

Katie


From: BjornNyberg @.***> Sent: 26 March 2021 11:27:51 To: BjornNyberg/NetworkGT Cc: Ford, Katherine Alexandra; Mention Subject: Re: [BjornNyberg/NetworkGT] Couldn't load plugin 'network_gt' due to an error when calling its classFactory() method (#14)

@kaford315https://github.com/kaford315

Strange.... this is definately related to pandas. A quick google search would suggest that you uninstall pandas entirely and reinstall (https://stackoverflow.com/questions/54093020/no-module-named-pandas-libs-tslib)

pip uninstall pandas pip install pandas

Does this solve your problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/BjornNyberg/NetworkGT/issues/14#issuecomment-808102916, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ5JQTRXN7CBRFZ3WRXACXLTFROSPANCNFSM4Z3BTW5A.

ElcoLuijendijk commented 3 years ago

I also have this issue with the latest version of QGIS. It is actually an issue with numpy and not NetworkGT/pandas. When opening the console and trying to import numpy, this is the response:

`import numpy Traceback (most recent call last): File "/Users/elcopone/opt/miniconda3/lib/python3.7/site-packages/numpy/core/init.py", line 22, in from . import multiarray File "/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/elcopone/opt/miniconda3/lib/python3.7/site-packages/numpy/core/multiarray.py", line 12, in from . import overrides File "/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/elcopone/opt/miniconda3/lib/python3.7/site-packages/numpy/core/overrides.py", line 7, in from numpy.core._multiarray_umath import ( File "/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in File "/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/elcopone/opt/miniconda3/lib/python3.7/site-packages/numpy/init.py", line 140, in from . import core File "/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/elcopone/opt/miniconda3/lib/python3.7/site-packages/numpy/core/init.py", line 48, in raise ImportError(msg) ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'`

I am using numpy 1.19.2 on mac osx 10.14.6

One solution may be to downgrade qgis to an older version, since that uses an older version of python. Am trying that now

BjornNyberg commented 3 years ago

@ElcoLuijendijk and @kaford315

Did either of you solve this problem? I can not find the route of the problem.

hoetmaaiers commented 4 months ago

Any feedback on how you solved this?