From: Patrick S. <pat...@gm...> - 2011-01-15 19:18:20
|
Never mind, I tried compiling again, this time doing it from the source directory rather than creating a new directory, and I got it to work and install properly. I also had to install the Polygon, fonttools, and ttfquery modules to get visual to load (I missed that part in the INSTALL.txt instructions last time). Unfortunately I still have the same problem with the version I compiled as I was having with the python-visual package from ubuntu's repositories. When I open a vpython window by doing say: import visual visual.sphere() I get the error message: i915_program_error: Exceeded max instructions (318 out of 123) and vpython runs extremely slow (interacting with the mouse takes 5-10 seconds to respond). 3D graphics seem to work very well otherwise on the computer, so I thought it might have been a problem with ubuntu's version of visual python, but I guess it must be something else. After googling, I found some people with the same problem: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598896 but nobody seems to have found a solution. On Sat, 2011-01-15 at 12:16 -0400, Patrick Shea wrote: > Thanks for your reply! Unfortunately, for me running sudo make install > just copies the cvisualmodule.so file > to ../visual-5.4_release/site-packages/visual/cvisualmodule.so. Here's > what I did in detail: > > 1. Make a directory on the same level as the source directory, and copy > visual-5.4_release/src/gtk2/makefile into it. (I also had to edit a > couple of things in the makefile: I changed the name of the source > directory to visual-5.4_release from vpython-core2, and changed the > -lboost_python-mt flags to -lboost_python-mt-py26, since that's how the > libraries are named in Ubuntu) > > 2. I ran configure from the newly created directory with the makefile in > it, with the --prefix=/usr argument. > > 3. Ran make from the same directory > > 4. Then when I run sudo make install, it just says > cp cvisualmodule.so ../visual-5.4_release/site-packages/visual, > and nothing gets copied into /usr/lib/python2.6 > > Thanks for your help, > Patrick > > On Fri, 2011-01-14 at 23:29 -0700, Bruce Sherwood wrote: > > 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 > > <pat...@gm...> 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 > > > Vis...@li... > > > 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 > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > |
From: Bruce S. <Bru...@nc...> - 2011-01-15 20:03:23
|
For what it's worth, Visual works fine for many people on Ubuntu 10.10, both the package python-visual and building from source. Thanks for the link to a bug report. This is very puzzling and frustrating, and I don't see how to get at the problem, which presumably is hardware-related, and/or an issue with particular graphics drivers. Bruce Sherwood On Sat, Jan 15, 2011 at 12:12 PM, Patrick Shea <pat...@gm...> wrote: > > > Never mind, I tried compiling again, this time doing it from the source > directory rather than creating a new directory, and I got it to work and > install properly. I also had to install the Polygon, fonttools, and > ttfquery modules to get visual to load (I missed that part in the > INSTALL.txt instructions last time). > > Unfortunately I still have the same problem with the version I compiled > as I was having with the python-visual package from ubuntu's > repositories. When I open a vpython window by doing say: > import visual > visual.sphere() > I get the error message: > > i915_program_error: Exceeded max instructions (318 out of 123) > > and vpython runs extremely slow (interacting with the mouse takes 5-10 > seconds to respond). 3D graphics seem to work very well otherwise on > the computer, so I thought it might have been a problem with ubuntu's > version of visual python, but I guess it must be something else. After > googling, I found some people with the same problem: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598896 > but nobody seems to have found a solution. > > On Sat, 2011-01-15 at 12:16 -0400, Patrick Shea wrote: >> Thanks for your reply! Unfortunately, for me running sudo make install >> just copies the cvisualmodule.so file >> to ../visual-5.4_release/site-packages/visual/cvisualmodule.so. Here's >> what I did in detail: >> >> 1. Make a directory on the same level as the source directory, and copy >> visual-5.4_release/src/gtk2/makefile into it. (I also had to edit a >> couple of things in the makefile: I changed the name of the source >> directory to visual-5.4_release from vpython-core2, and changed the >> -lboost_python-mt flags to -lboost_python-mt-py26, since that's how the >> libraries are named in Ubuntu) >> >> 2. I ran configure from the newly created directory with the makefile in >> it, with the --prefix=/usr argument. >> >> 3. Ran make from the same directory >> >> 4. Then when I run sudo make install, it just says >> cp cvisualmodule.so ../visual-5.4_release/site-packages/visual, >> and nothing gets copied into /usr/lib/python2.6 >> >> Thanks for your help, >> Patrick >> >> On Fri, 2011-01-14 at 23:29 -0700, Bruce Sherwood wrote: >> > 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 >> > <pat...@gm...> 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 >> > > Vis...@li... >> > > 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 >> > _______________________________________________ >> > Visualpython-users mailing list >> > Vis...@li... >> > 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 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Patrick S. <pat...@gm...> - 2011-01-26 23:40:18
|
Just an update in case anybody having the same problem as me comes across this. I have found that visual works fine for me in Ubuntu 9.10 and earlier. I also compiled the 9.10 version of the python-visual package (available here: http://packages.ubuntu.com/source/karmic/python-visual ) in 10.10, but got the same error. So it seems that the problem is definitely not with visual itself, but may be related to the intel video drivers (my computer has an integrated intel graphics chip). I also tested this on my macbook (which has an integrated intel graphics chip as well) and got the same resutls: visual works fine in Ubuntu 9.10, but gives the "exceeded max instructions" error in 10.10. On another computer with an nvidia graphics card, visual works in 10.10 with no errors, so I'm assuming this may be a problem for computers with intel graphics cards in general. As you said, it seems like it would be hard to track down exactly what is causing the error, especially since I haven't seen any other problems with the video besides the error when trying to run visual. For now, the best solution for people with intel graphics cards is probably to just downgrade to Ubuntu 9.10 (this is fine for me since I don't specifically need any features of 10.04 or newer). On Sat, 2011-01-15 at 13:03 -0700, Bruce Sherwood wrote: > For what it's worth, Visual works fine for many people on Ubuntu > 10.10, both the package python-visual and building from source. Thanks > for the link to a bug report. This is very puzzling and frustrating, > and I don't see how to get at the problem, which presumably is > hardware-related, and/or an issue with particular graphics drivers. > > Bruce Sherwood > > On Sat, Jan 15, 2011 at 12:12 PM, Patrick Shea > <pat...@gm...> wrote: > > > > > > Never mind, I tried compiling again, this time doing it from the source > > directory rather than creating a new directory, and I got it to work and > > install properly. I also had to install the Polygon, fonttools, and > > ttfquery modules to get visual to load (I missed that part in the > > INSTALL.txt instructions last time). > > > > Unfortunately I still have the same problem with the version I compiled > > as I was having with the python-visual package from ubuntu's > > repositories. When I open a vpython window by doing say: > > import visual > > visual.sphere() > > I get the error message: > > > > i915_program_error: Exceeded max instructions (318 out of 123) > > > > and vpython runs extremely slow (interacting with the mouse takes 5-10 > > seconds to respond). 3D graphics seem to work very well otherwise on > > the computer, so I thought it might have been a problem with ubuntu's > > version of visual python, but I guess it must be something else. After > > googling, I found some people with the same problem: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598896 > > but nobody seems to have found a solution. > > > > On Sat, 2011-01-15 at 12:16 -0400, Patrick Shea wrote: > >> Thanks for your reply! Unfortunately, for me running sudo make install > >> just copies the cvisualmodule.so file > >> to ../visual-5.4_release/site-packages/visual/cvisualmodule.so. Here's > >> what I did in detail: > >> > >> 1. Make a directory on the same level as the source directory, and copy > >> visual-5.4_release/src/gtk2/makefile into it. (I also had to edit a > >> couple of things in the makefile: I changed the name of the source > >> directory to visual-5.4_release from vpython-core2, and changed the > >> -lboost_python-mt flags to -lboost_python-mt-py26, since that's how the > >> libraries are named in Ubuntu) > >> > >> 2. I ran configure from the newly created directory with the makefile in > >> it, with the --prefix=/usr argument. > >> > >> 3. Ran make from the same directory > >> > >> 4. Then when I run sudo make install, it just says > >> cp cvisualmodule.so ../visual-5.4_release/site-packages/visual, > >> and nothing gets copied into /usr/lib/python2.6 > >> > >> Thanks for your help, > >> Patrick > >> > >> On Fri, 2011-01-14 at 23:29 -0700, Bruce Sherwood wrote: > >> > 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 > >> > <pat...@gm...> 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 > >> > > Vis...@li... > >> > > 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 > >> > _______________________________________________ > >> > Visualpython-users mailing list > >> > Vis...@li... > >> > 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 > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > 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 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Guy K. K. <guy...@au...> - 2011-01-16 22:50:46
|
On Sun, 16 Jan 2011 08:12:05 Patrick Shea wrote: > Unfortunately I still have the same problem with the version I compiled > as I was having with the python-visual package from ubuntu's > repositories. Unfortunately a *very* common problem when people unaware of that try to install something from sources and forget to first remove the distribution's version. Tinkering around wildly in the presence of two competing installs with no precautions taken for separating the properly can be hell through poking around with a thick stick in a dark hole. Guy -- Guy K. Kloss School of Computing + Mathematical Sciences Auckland University of Technology Private Bag 92006, Auckland 1142 phone: +64 9 921 9999 ext. 5032 eMail: Guy...@au... |