Hi Doug,

I've only tested ccad on Debian Linux 6.0 and 7.0.  Thanks for trying it on 
Windows.  I would guess you're missing python-gtkglext.  See my details 
below.

The statement that would trigger the error you see is this (in display.py):

import pygtk, gtk, gtk.gtkgl, gobject

First, make sure your pygtk installation is working by running some of the 
examples.  If they weren't in your installation, you can find them at 
http://pygtk.org/pygtk2tutorial/examples/.  I expect it will be okay.

Second, make sure you not only can import pygtk, but make sure you can also 
import gtk, gtk.gtkgl, and gobject.  My guess is gtk.gtkgl won't work.  I 
should have put the dependencies in the README.  They are in the 
documentation.  You need gtkglext in addition to gtk to work ccad.  
Unfortunately, the Windows binaries are broken at 
https://projects.gnome.org/gtkglext/.  You can try compiling it, but I've 
heard that's tricky.  Instead, you can use the  binaries at 
http://pycam.sourceforge.net/download.html and click on Requirements 
Installer.  However, last I checked, that installed it under python 2.5.  If
you find a better way to install python-gtkglext, let me know.

I added a quick patch to display.py to allow people with correctly operating 
pythonocc and missing gtk.gtkgl to view objects.  You can download it and 
try it if you wish.  The issue documentation is at:

https://github.com/charles-sharman/ccad/issues/1

However, the viewer will be much more limited than the gtk one.

- Charles


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

Reply via email to