Hi folks,

I'm trying to install PythonOCC, and I'm having a little difficulty. I'm excited about the potential application of using PyOCC to generate a found geometry for a crown gear, by doing a method of successive solid subtractions of a generating gear.

I've seen this issue discussed on the mailing list before, but with no resolution.

Upon trying to run any of the examples, I get the error:
Traceback (most recent call last):
  File "animation.py", line 20, in <module>
    from OCC.BRepPrimAPI import *
File "C:\Python27\lib\site-packages\OCC\BRepPrimAPI.py", line 28, in <module>
    _BRepPrimAPI = swig_import_helper()
File "C:\Python27\lib\site-packages\OCC\BRepPrimAPI.py", line 24, in swig_impo
rt_helper
    _mod = imp.load_module('_BRepPrimAPI', fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.


I'm running Windows 7 (64bit), but I am running a 32 bit installation of Python, specifically the Enthought Python Distribution (http://www.enthought.com/ , free academic bundle), which uses Python 2.7.

I installed from the file pythonOCC-0.5-all-in-one.win32.py26.exe .
I noticed one major problem: the python installation directory is not correctly identified, and most of the PyOCC files are installed to C:\Lib\site-packages\OCC\ . I moved these to what I think is the correct location, C:\Python27\Lib\site-packages\OCC , but the above error persists.

I've also tried defining an environment variable PYTHONPATH = "C:\Python27\Lib\site-packages\OCC" , and also adding this to the system PATH variable, but this also does not solve the error.

Is there any way to solve or work around this error? Will a full recompilation from source be necessary? This is a pretty daunting task for someone of my skillset, I was hoping I could just install it. Is PythonOCC fundamentally incompatible with Python 2.7 or Windows 7 in any manner?

Thanks,
Andrew

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to