From: Bruce S. <Bru...@nc...> - 2009-09-01 16:31:07
|
The issue is that until Ubuntu 9.04, the standard place for 3rd-party modules such as Visual was /usr/lib/python2.6/site-packages if you were using /usr/bin/python2.6, or else /usr/local/lib/python2.6/site-packages if you were using /usr/local/bin/python2.6. As a result, the "autoconfigure" script for VPython places the Visual module in one of these site-packages locations, depending on whether in your configure statement you say "--prefix=/usr" or "--prefix=/usr/local" (the latter being the default). However, starting with Ubuntu 9.04, 3rd-party packages are apparently supposed to be somewhere else (dist-packages), and there seems to be some confusion about what is the new convention. More seriously, site-packages is apparently no longer on Python's module search path. That is, Python doesn't look in site-packages to find modules. This is a problem because at present the autoconfigure procedure will install Visual in the specified site-packages, not dist-packages. A possible scheme to deal with this is outlined in the comments you quote. The configure statement PYTHON=/usr/bin/python ../vpython-core2/configure --prefix=/usr/local/lib says "I'm using the python found in /usr/bin (which in Ubuntu 9.04 is equivalent to /usr/bin/python2.6), but I want the Visual module to be put in /usr/local/lib/site-packages". And then you need to copy vpython-core2/src/gtk2/site-packages.pth to /usr/lib/python2.6/dist-packages to put /usr/local/lib/python2.6/site-packages on the Python search path. The contents of vpython-core2/src/gtk2/site-packages.pth is simply /usr/local/lib/python2.6/site-packages. Bruce Sherwood Matteo Malosio wrote: > I'm trying to install VPython5 on Ubuntu but I've some doubt about the > "configure" process. > I can't understand what is reported in the Install file: > > " There have been significant changes in where 3rd-party software is > stored on > Ubuntu 9.04. You probably want to use /usr/bin/python2.6 but store > the Visual > module in /usr/local/lib/python2.6/site-packages. To configure, do > this in a > folder parallel to vpython-core2: > > PYTHON=/usr/bin/python ../vpython-core2/configure > --prefix=/usr/local/lib > > You will also need to copy vpython-core2/src/gtk2/site-packages.pth to > /usr/lib/python2.6/dist-packages to put > /usr/local/lib/python2.6/site-packages > on the Python search path." > > > Thank you! > > Matteo > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |