PDA

View Full Version : Python-Visual on Ubuntu10.04 LTS


Tyson D
May 27th, 2010, 08:52 PM
Ok I've seen a few people having a problem with Vpython on Lucid but none seem to be having my problem. When ever i type

python filename.py

i get this error message

################################################## ###############
(<unknown>:3594): GdkGLExt-WARNING **: Cannot open \xf0\u0016
L.so

(<unknown>:3594): GdkGLExt-WARNING **: Cannot open \xf0\u0016
L.so

glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: Unable to get extension function: glCreateProgramObjectARB even though the extension is advertised.

aborting...
Aborted
################################################## ###############


and apt-get policy visual-python gives me this

################################################## ###############
python-visual:
Installed: 1:5.12-1.1
Candidate: 1:5.12-1.1
Version table:
*** 1:5.12-1.1 0
500 http://us.archive.ubuntu.com/ubuntu/ lucid/universe Packages
100 /var/lib/dpkg/status
################################################## ###############


i obviously have no clue what this means, any help would be great

diesch
May 27th, 2010, 09:11 PM
Ok I've seen a few people having a problem with Vpython on Lucid but none seem to be having my problem. When ever i type

python filename.py

i get this error message

################################################## ###############
(<unknown>:3594): GdkGLExt-WARNING **: Cannot open \xf0\u0016
L.so

(<unknown>:3594): GdkGLExt-WARNING **: Cannot open \xf0\u0016
L.so

glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: Unable to get extension function: glCreateProgramObjectARB even though the extension is advertised.

aborting...
Aborted
################################################## ###############


What does filename.py contain? What does
python -c 'import visual'print?



and apt-get policy visual-python gives me this


I guess you mean
apt-cache policy python-visualThe version installed is fine.

Tyson D
May 27th, 2010, 09:18 PM
the file usually contains

from visual import*
ball = sphere()

the cmd you suggested:

python -c 'import visual'

does nothing at all.

Ive also tried IDLE but when i write the above code it will simply crash.

diesch
May 27th, 2010, 09:28 PM
I guess if you run the commands line by line using the python shell the error is thrown when you run
ball = sphere()

That looks like python-visual is fine but there are some problems with your graphic card using OpenGL.

Tyson D
May 27th, 2010, 09:32 PM
But in the past ive had 9.04 and Vpython worked just fine(now im running 9.04 through a VM and it supports Vpython).

and yes when i run the code through python it gives me the same error message.

krisztian_andre
June 23rd, 2010, 11:48 AM
I get the same behaviour on my acer spire one and a nice grey sphere on my desktop so its definitely a videocard issue

krisztian_andre
June 23rd, 2010, 11:54 AM
Ignore my last comment, there is a package dependency bug. You need to install libgtkglextmm-x11-1.2-dev

hopla
June 29th, 2010, 12:28 PM
Thanks man, I had the same problem and installing libgtkglextmm-x11-1.2-dev fixed it!