gasp-dev team mailing list archive
-
gasp-dev team
-
Mailing list archive
-
Message #00125
[Question #138004]: GASP error in Linux Ubuntu Netbook edition
New question #138004 on GASP Core:
https://answers.launchpad.net/gasp-core/+question/138004
Hello,
I'm trying to learn Python and thats the primary reason I installed Ubuntu.
The GASP package does not currently support Windows so I think it would be smoother with Ubuntu on my netbook. Can someone running Ubuntu 10.10 and has GASP installed tell me if they can run the following code without issues:
Code:
from gasp import *
begin_graphics(800, 600, title="Catch", background=color.YELLOW)
set_speed(120)
ball_x = 10
ball_y = 300
ball = Circle((ball_x, ball_y), 10, filled=True)
dx = 4
dy = 1
while ball_x < 810:
ball_x += dx
ball_y += dy
move_to(ball, (ball_x, ball_y))
update_when('next_tick')
end_graphics()
----
for me, a yellow screen appears only for a second and then I get:
>>> from gasptry import *
Exception in thread QueueFeederThread (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
File "/usr/lib/python2.6/threading.py", line 484, in run
File "/usr/lib/python2.6/multiprocessing/queues.py", line 242, in _feed
<class 'cPickle.PicklingError'>: Can't pickle gasp.api.Circle: import of module gasp.api failed
--
You received this question notification because you are a member of GASP
Development Team, which is an answer contact for GASP Core.
Follow ups