On 2010/5/22 John Griessen wrote:
> John Griessen wrote:
>> Now that a build with python2.6 ran to completion without errors, I have 
>> tested some OCC
>> examples and I'm not able to import any OCC modules or other modules:
> .
> .
> .
>> --> 878         import wx
>>      879
>>      880         threading.Thread.__init__(self)
>>
>> ImportError: No module named wx
>>
>>
>> I had env variables:
>>
>> OCC_LIB_PATH=/usr/local/lib
>> PYTHONPATH=""   (empty)
>>
>
> my path and python path seems fine without adding anything:
>
> j...@toolbench:/backups-650mb/pythonocc-read-only/src/examples/Level1/SMESH$  
> env | grep PATH
> PATH=/usr/lib/python-django/bin:/opt/scribus/bin:/opt/blender:/opt/pcb/bin:/opt/hec/bin:/home/john/bin:/home/cibolo/bin:/home/john/perl:/opt/sbin:/opt/bin:/opt/leo/bin:/opt/gnucash/bin:/opt/geda/bin:/opt/SweetHome3D:/opt/tinyos-2.x/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
> PYTHONPATH=
>
>
> j...@toolbench:/backups-650mb/pythonocc-read-only/src/examples/Level1/SMESH$  
> python2.6 -c "import sys; print sys.path"
> ['', '/backups-650mb/pythonocc-read-only/src/examples/Level1/SMESH', 
> '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
> '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', 
> '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',
> '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', 
> '/usr/lib/pymodules/python2.6/FontTools',
> '/usr/local/lib/python2.6/dist-packages']
>
> Any ideas what to try?

My build also did not work.  First of all, OCC/__init__.py was
missing, something must be wrong since this is not the first time I
encounter this problem.  I copied
build/lib.linux-x86_64-2.6/OCC/__init__.py into my installation
directory, but it was not enough.
Then I ran
   python2.6 setup.py [options] build
   python2.6 setup.py [options] install --user
and everything now works fine.  Maybe you can try to re-run these commands too?

Denis

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

Reply via email to