From looking at the gl library, there seems to be no way of
accessing the volume data for mathematical operations. For example
aplying a mask, or doing some sort of bias field correction from
python. Because of that I was wondering what would be the way of
incorporating new libraries. I've replaced the
python35.zip and python35.dll and with an
"updated" version, in my case a python3.7 but when I
try to import numpy I get an error. Initially numpy was not found,
but after appending site-packages to
sys.path
(sys.path.append(sys.path[0]+'\\site-packages') )
it is found, but still not able to load.
import sys
sys.path.append(sys.path[0]+'\\site-packages')
print(sys.path)
import numpy
output
Running Python script
['C:\\Users\\Claudiu\\bin\\MRIcroGL\\Resources\\python37.zip', 'C:\\Users\\Claudiu\\bin\\MRIcroGL\\Resources\\python37.zip\\DLLs', 'C:\\Users\\Claudiu\\bin\\MRIcroGL\\Resources\\python37.zip\\lib', 'C:\\Users\\Claudiu\\bin\\MRIcroGL', 'C:\\Users\\Claudiu\\AppData\\Roaming\\Python\\Python37\\site-packages', 'C:\\Users\\Claudiu\\bin\\MRIcroGL\\Resources\\python37.zip\\site-packages']
Traceback (most recent call last): File "C:\Users\Claudiu\bin\MRIcroGL\Resources\python37.zip\site-packages\numpy\core\__init__.py", line 22, in <module> File "C:\Users\Claudiu\bin\MRIcroGL\Resources\python37.zip\site-packages\numpy\core\multiarray.py", line 12, in <module> File "C:\Users\Claudiu\bin\MRIcroGL\Resources\python37.zip\site-packages\numpy\core\overrides.py", line 7, in <module>ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
During handling of the above exception, another exception occurred:Traceback (most recent call last): File "<string>", line 6, in <module> File "C:\Users\Claudiu\bin\MRIcroGL\Resources\python37.zip\site-packages\numpy\__init__.py", line 150, in <module> File "C:\Users\Claudiu\bin\MRIcroGL\Resources\python37.zip\site-packages\numpy\core\__init__.py", line 48, in <module>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/troublesh...
Please note and check the following:
* The Python version is: Python3.7 from "C:\Users\Claudiu\bin\MRIcroGL\MRIcroGL.exe"
* The NumPy version is: "1.21.6"
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'
Python Successfully Executed
Threaded View
| Title | Author | Date |
|---|---|---|
| Claudiu Ivan | Nov 13, 2023 | |
| Chris Rorden | Nov 13, 2023 | |
| Claudiu Ivan | Nov 14, 2023 | |
| Chris Rorden | Nov 14, 2023 | |
