[PythonCAD] install pythoncad from source
John Griessen
john_g at cibolo.com
Thu Jan 6 22:14:48 CET 2005
"You obviouly have no idea"
"surprisingly it's
called 'pythoncad' . . . . apt-get install pythoncad"
That gave the same syptom of not accessing pygtk completely. It was ver. 19.
>>> import PythonCAD
>>> sys.path
['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/FontTools',
'/usr/lib/python2.3/site-packages/Numeric',
'/usr/lib/python2.3/site-packages/PIL',
'/usr/lib/python2.3/site-packages/gtk-2.0',
'/usr/lib/python2.3/site-packages/vtk_python']
>>>
still no pythoncad on the list...
still have a broken install
select does not work as advertised and these messages show at the shell:
File "/usr/lib/python2.3/site-packages/PythonCAD/Interface/Gtk/gtkimage.py",
line 401, in da_general_event
handler(gtkimage, widget, event, _tool)
File "/usr/lib/python2.3/site-packages/PythonCAD/Interface/Gtk/gtkedit.py",
line 77, in select_motion_notify
widget.window.draw_rectangle(gc, gtk.FALSE, _xmin, _ymin, _rw, _rh)
NameError: global name 'gc' is not defined
The gtk2.0 installed has this date:
ll /usr/lib/python2.3/site-packages/gtk-2.0/gtk
total 1212
-rw-r--r-- 1 root root 3946 2004-11-22 05:36 __init__.py
debian packages:
python2.3-gtk2 2.4.1-2
libgtk2.0-0 2.4.14-2
libgtk2.0-bin 2.4.14-2
libgtk2.0-common 2.4.14-2
libgtk2.0-dev 2.4.14-2
I have no python2.2-gtk2 installed, and that may be a problem.
the notes for install say python2.2 and later and 2.3 may be "too new"
to still be compatible.
John Griessen
More information about the PythonCAD
mailing list