Good evening, I'm running a three-dimensional numerical model in Windows 32-bit, pcraster-4.0.1_x86-32, Enthought Canopy 1.6.2.3262, Python 2.7.11 and i get this error message:
(Canopy 32bit) c:.......>make
python total.py 300 100
Traceback (most recent call last):
File "total.py", line 7, in <module>
import first, sys, pcrpython, dyn, glob, shutil
File "c:.......\first.py", line 1, in <module>
from pcraster import
File "C:\Program Files\pcraster-4.0.1x86-32\python\pcraster\init.py", line 1, in <module>
from operations import
File "C:\Program Files\pcraster-4.0.1x86-32\python\pcraster\operations.py", line 3, in <module>
import pcraster.pcraster as pcraster
ImportError: DLL load failed: Impossibile trovare il modulo specificato (Translation: Impossible to find the specified module.)
make: *** [done] Error 1
There is someone that can help me with this problem?
Thanks in advance
Sorry the script I put up is not completely correct:
(Canopy 32bit) c:.......>make
python total.py 300 100
Traceback (most recent call last):
File "total.py", line 7, in <module>
import first, sys, pcr_python, dyn, glob, shutil
File "c:\pcrmodel\first.py", line 1, in <module>
from pcraster import
File "C:\Program Files\pcraster-4.0.1_x86-32\python\pcraster__init__.py", line 1, in <module>
from operations import
File "C:\Program Files\pcraster-4.0.1_x86-32\python\pcraster\operations.py", line 3, in <module>
import pcraster._pcraster as _pcraster
ImportError: DLL load failed: Impossibile trovare il modulo specificato (Translation: Impossible to find the specified module.)
make: *** [done] Error 1
Hi Manuel,
Check your PATH setting. Is the location of the PCRaster dlls added to the PATH variable? In your case, that would be C:\Program Files\pcraster-4.0.1_x86-32\bin
Good morning Kor,
Thank you for your answer! yes it is correct:
PATH C:\Program Files\pcraster-4.0.1_x86-32\bin
PYTHONPATH C:\Program Files\pcraster-4.0.1_x86-32\python
Manuel
What happens if you move the installation of PCRaster from C:Program Files to a path without spaces in the name (and update PATH and PYTHONPATH accordingly). Does that help?
Good morning Kor,
I decided to move all my project in ubuntu 15.10 64-bit, with PCRaster 4.1.0. The software is working very good and I found also the installation much more easy.
I started to run the model, the file "make.exe" give me an error in "postloop.py" line 305, in <module>
Class DiffScript(Model):
NameError : name 'Model' is not defined
What name should I use for it?
Thanks,
Manuel
Hi Manuel,
OK, great. Linux is often less problematic. Can you please use the mailinglist for further questions? More users will be able to answer your questions and learn from the answers.
Thanks!
Kor