Archived
This forum has been archived. Please start a new discussion on GitHub.
error when import ice
when I use python import Ice
the cmd prompt:
File "C:\Ice-3.3.1\python\Ice.py", line 19, in <module>
import IcePy
ImportError: DLL load failed: can't find the module
please help me
3q
the cmd prompt:
File "C:\Ice-3.3.1\python\Ice.py", line 19, in <module>
import IcePy
ImportError: DLL load failed: can't find the module
please help me
3q
0
Comments
-
You should see the configuring your environment section in the README file that came with your Ice installation. In this case, you probably have not set your PATH or PYTHONPATH correctly.
This is the relevant part of the VC8 Ice installer README file. The instructions for your version might be a little different, so please check.Running the Python demos
The Python demos are in the demopy directory.
You need Python 2.5.2 to run the demos. A binary installer for Python
can be downloaded from:
Download Python Software
You also need to add the Ice bin directory to your PATH, for example:
set PATH=<Ice installation root directory>\bin;%PATH%
Finally, set PYTHONPATH so that the Python interpreter is able to load
the Ice extension. For a 32-bit Python installation, use this setting:
set PYTHONPATH=<Ice installation root directory>\python
For a 64-bit Python installation, use this setting instead:
set PYTHONPATH=<Ice installation root directory>\python\x64
To run a demo, open a Command Prompt, change to the desired demo
directory, and type 'python Server.py' to start the server. In a
separate Command Prompt window, type 'python Client.py' to run the
client.0 -
thanks for your reply
i have set the PATH and PYTHONPATH
but the problem is still the same
and the python.exe prompt : can't find the ice33.dll0 -
My guess is that you are not using the correct version of python with your version of Ice. What versions of each are you using?0