Re: Building vpython 5.4 in Ubuntu 10.10

Bruce Sherwood <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
You need to execute "sudo make install" to move the various components
into the right places. For cleanliness, it would be a good idea first
to remove the Visual stuff from site-packages.

Also, because site-packages is no longer (alas) on the Ubuntu Python
module search path, you need to follow these instructions in
INSTALL.txt:

       You will also need to copy vpython-core2/src/gtk2/site-packages.pth to
       /usr/lib/python2.6/dist-packages to put /usr/lib/python2.6/site-packages
       on the Python search path.

You will have to adjust the contents of site-packages.pth text file if
you are installing to /usr/lib rather than /usr/local.

Hope this helps!

Bruce Sherwood

On Fri, Jan 14, 2011 at 8:27 PM, Patrick Shea
<[email protected]> wrote:
> I tried building visual python 5.4 following the directions in the
> INSTALL.txt file.  I made a directory at the same level as the
> "visual-5.4_release" source directory and ran configure and make.
> Everything seems to work fine, and the cvisualmodule.so file is
> generated.
>
> The only thing I'm confused about is that running "make install" just
> copies the cvisualmodule.so file back into the visual-5.4_release
> directory.  I'm just not sure which files I am supposed to move where to
> be able to use vpython.  I tried just copying the whole
> "visual-5.5_release/site-packages" directory into
> "/usr/lib/python2.6/site-packages" (making sure it was in python's
> search path), but I'm not able to load visual.  Doing "import visual"
> gives the error:
>
> ImportError: cannot import name cvisual
>
> cvisualmodule.so is in the /usr/lib/python2.6/site-packages/visual
> directory, but it apparently can't be imported.  If anyone can help me
> figure out what's wrong I'd greatly appreciate it.  Thanks.
>
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Visualpython-users mailing list
> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.