Bryan Bishop a écrit :
> Hey all,
>   
Hi Bryan,
> I have some tricks that I've been using. I've got most everything
> nearly working. I have notes available:
>
> http://heybryan.org/books/Manufacturing/pythonocc/scons_notes.txt
> http://heybryan.org/books/Manufacturing/pythonocc/python-setup.py-install.notes.txt
>
> List of all *_headers.i files that I have:
> http://heybryan.org/books/Manufacturing/pythonocc/actuals.txt
>
> List of files that include the *_header.i files:
> http://heybryan.org/books/Manufacturing/pythonocc/headers.txt
>
> Taking a hint from the line count, there's a discrepancy. Note however
> that the discrepancy is less than it actually is from the svn checkout
> because I previously fixed the include calls from AlienImage.i and
> Image.i and a few others-- in fact, nevermind, since grep included
> those as well, they are the lines with the '##' in them (representing
> that I commented them out).
>
> Now I'm up to the point where I have almost everything running. Except
> up to this point:
>
> --------------------------------------------------
> pythonocc/pythonOCC/Tools/InteractiveViewer# python InteractiveViewer.py
> Traceback (most recent call last):
>   File "InteractiveViewer.py", line 56, in <module>
>     from wxDisplay import GraphicsCanva3D
>   File 
> "/home/bryan/manufacturing/pythonocc/pythonOCC/Tools/InteractiveViewer/wxDisplay.py",
> line 40, in <module>
>     from OCC.Display.OCCViewer import Viewer3d
>   File "/usr/lib/python2.5/site-packages/OCC/Display/__init__.py",
> line 1, in <module>
>     from wxDisplay import wxViewer3d
>   File "/usr/lib/python2.5/site-packages/OCC/Display/wxDisplay.py",
> line 39, in <module>
>     import OCCViewer
>   File "/usr/lib/python2.5/site-packages/OCC/Display/OCCViewer.py",
> line 41, in <module>
>     import OCC.NIS
> ImportError: No module named NIS
> *** glibc detected *** python: double free or corruption (!prev): 0x08f3ec60 
> ***
> ^C
> --------------------------------------------------
>
> It seems I'm missing the OCC.NIS module. When I comment it out in the
> OCCViewer.py file, InteractiveViewer.py successfully runs-- but the
> wxWidget interface is not responsive and there are on menu options
> selectable, and there is no main-window OCC viewer widget thingy,
> which I'm fairly certain is provided by NIS.
>   

I recently added NIS stuff to OCCViewer.py but it doesn't work on my 
Windows machine (crashes on display). I will remove it from the SVN 
trunk and move it to a /test folder.

If you want to test pythonOCC display, just do: python wxDisplay.py 
(should display a Box). To have this display works, don't forget to:
* export DISPLAY=0.0
* export CSF_GraphicShr='/path to your TKOpenG.so'

It's hard to maintain both Windows and Linux platforms at the same time. 
The latest svn rev. is quite unstable (and maybe impossible to 
compile):  I've been  simultaneously working on SCons build and memory 
management issues (under Windows), and will worry  about Linux build 
when it's done (hopefull whithin a few hours).

> Thomas, where might I have gone wrong- did I not compile OCC.NIS
> somehow? Any thoughts? I was able to get through scrons --cache-force,
> and then python setup.py install, which consequently wanted to run g++
> and swig on everythng again (ugh), so I'm not sure how I could have
> missed something.
>   
Nothing's wrong on your side. It's all my fault! I try to fix that ASAP.
> Thank you. :-)
>
> - Bryan
>   
Cheers,

Thomas

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

Reply via email to