Menu

#2 Attribute error at race start

open
nobody
None
5
2005-10-09
2005-10-09
No

I started the game with:

python pyRacerz.py --nosound

And I pretty much just went through the menus to start
a race, but the game crashed with this:

Traceback (most recent call last):
File "pyRacerz.py", line 252, in ?
if __name__ == '__main__': main()
File "pyRacerz.py", line 137, in main
thePlayer = menu5.getInput()
File "modules/menu.py", line 552, in getInput
return player.HumanPlayer(self.pseudo,
int(self.listAvailableCarNames[self.carColor-1].replace("car",
"")), self.level, self.keyAccel, self.keyBrake,
self.keyLeft, sel
f.keyRight)
File "modules/player.py", line 73, in __init__
Player.__init__(self, name, carColor, level)
File "modules/player.py", line 32, in __init__
self.car = car.Car(carColor, level)
File "modules/car.py", line 78, in __init__
carRotShade = carRot.__copy__()
AttributeError: __copy__

Running python2.4 with pygame-1.6-2ubuntu1 (I'm running
on ubuntu)

Discussion

  • Jujucece

    Jujucece - 2005-10-09

    Logged In: YES
    user_id=1337395

    Hi,

    The problem comes from the version of your pygame.
    I thought 1.6.2 was right but it seems not.
    Upgrade to the last version (1.7), it should resolve the
    problem... (but I don't know if the package is available on
    Ubuntu repositories...)

    Bye
    Jujucece

     
  • Jesús Sánchez

    Jesús Sánchez - 2005-10-12

    Logged In: YES
    user_id=923957

    Same here, with python Version: 2.4.2-0ubuntu2 and pygame
    Version: 1.6-2ubuntu2
    Sound works well here, so I started the game with python
    pyRacerz.py

     
  • Jujucece

    Jujucece - 2005-10-12

    Logged In: YES
    user_id=1337395

    The problem comes from your pygame version.

    Please upgrade to the 1.7 version. It should resolve the
    problem.

    If it doesn't help, contact me...

    See you,
    Jujucece

     
  • Corey Burger

    Corey Burger - 2005-10-20

    Logged In: YES
    user_id=1224023

    Just a minor comment, the latest version of Ubuntu released
    with 1.6.2, so an upgrade to 1.7 is not going to happen now.

     
  • Steven Farlie

    Steven Farlie - 2005-10-20

    Logged In: YES
    user_id=27481

    Hmmm... don't really feel like a manual upgrade just to play
    a little game. I'll probably try again with GP2X (if I can
    get ahold of one).

    http://www.gpx2.co.uk/

     

Log in to post a comment.