Cannot "import colour" with Python 2.7.12 64-bit. #703
-
Hi KelSolaar, I got a trouble with colour-science. Here are the hints:
Could you have a look at this issue if free? BR, Kunkka |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@Kunkka1988 : It seems like you have an installation issue with Scipy and this is not a File "C:\Python27\lib\site-packages\scipy_lib_ccallback.py", line 1, in
from . import _ccallback_c
ImportError: DLL load failed: %1 is not a valid Win32 application. Scipy has compiled libraries and it seems like you are trying to load one that has architecture mismatch with the Python interpreter you are intended to use it with. Please double check that both your Numpy and Scipy versions are compliant with your interpreter. You can directly import a Numpy and Scipy module at Python prompt to check they are working: import numpy
import scipy.interpolate More informations are available in that thread: https://stackoverflow.com/questions/19019720/importerror-dll-load-failed-1-is-not-a-valid-win32-application-but-the-dlls |
Beta Was this translation helpful? Give feedback.
-
Hi KelSolaar, It works well after reinstall scipy-0.19.1-cp27-cp27m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy. |
Beta Was this translation helpful? Give feedback.
-
You are welcome @Kunkka1988! :) |
Beta Was this translation helpful? Give feedback.
-
I solved it by copying the module colour.py from the python2 directory to the python3 directory? took me weeks of trying things out to fix it ''' |
Beta Was this translation helpful? Give feedback.
-
Hi @dtbulmerJRs, You should avoid installing anything in your system Python environment, prefer a Virtual Environment ideally. Cheers, Thomas |
Beta Was this translation helpful? Give feedback.
@Kunkka1988 : It seems like you have an installation issue with Scipy and this is not a
Colour
issue but a broad one in regard to your Python installation:Scipy has compiled libraries and it seems like you are trying to load one that has architecture mismatch with the Python interpreter you are intended to use it with.
Please double check that both your Numpy and Scipy versions are compliant with your interpreter. You can directly import a Numpy and Scipy module at Python prompt to check they are working: