[pyddr-discuss] Problems running pydance

Stephen Thorne stephen at thorne.id.au
Tue Nov 4 16:57:49 EST 2003


It looks like your version of python doesn't have the boolean True/False 
constants. I think redhat 7.2 has python1.5 (current release of python 
is python 2.3.2) which doesn't have these contants, they were added to 
the language afterwards.

To resolve your problem you'd either have to modify (possibly 
extensively, I'd have to review it and test it under 1.5) the code to 
function in python1.5, or upgrade your python.

Regards,
Stephen Thorne.

Christian Brolin wrote:

> Hello,
>
> I've installed pydance on a RedHat 7.2 system:
>
> [root at localhost pydance-0.8.1]# ./setup.py     -- see (1) for details
> [root at localhost pydance-0.8.1]# make install   -- see (2) for details
>
> however, when trying to start the game:
> [root at localhost pydance-0.8.1]# /usr/local/share/games/pydance/pydance.py
>
> I got the following error message:
>
>    Traceback (most recent call last):
>      File "/usr/local/share/games/pydance/pydance.py", line 5, in ?
>        from constants import *
>      File "/usr/local/share/games/pydance/constants.py", line 10, in ?
>        import sys, os, config, pygame
>      File "/usr/local/share/games/pydance/config.py", line 14, in ?
>        class Config(object):
>      File "/usr/local/share/games/pydance/config.py", line 22, in Config
>        def update(self, data, master = False):
>    NameError: name 'False' is not defined
>
> Does someone know python enough to tell what is wrong?
>
>
>        (1)
>
>    Checking for appropriate libraries.
>    Checking Python version... 2.2.x or greater
>    Checking for Pygame... 1.6
>    Detecting your operating system... POSIX - UNIX-like
>
>    Configuration for UNIX-like systems complete. 'make install' should
>    properly install pydance, by default into /usr/local. You can override
>    this by setting $PREFIX. You can also set $DESTDIR, which will be
>    prepended to all installation paths.
>
>
>        (2)
>
>    install -d /usr/local/bin /usr/local/games
>    /usr/local/share/games/pydance
>    install -d /usr/local/share/games/pydance/songs
>    install -d /usr/local/share/man/man1 /usr/local/share/man/man6
>    install -m 644 config.py announcer.py fontfx.py input.py
>    constants.py menus.py menudriver.py gfxtheme.py songselect.py
>    fileparsers.py colors.py player.py endless.py gradescreen.py
>    lyrics.py steps.py util.py audio.py error.py optionscreen.py
>    games.py judge.py dance.py stepfilters.py gameselect.py lifebars.py
>    scores.py combos.py listener.py grades.py stats.py arrows.py
>    /usr/local/share/games/pydance
>    install -m 755 pydance.py /usr/local/share/games/pydance
>    ln -sf ../share/games/pydance/pydance.py /usr/local/games/pydance
>    cp pydance.posix.cfg pydance.cfg
>    install -D -m 644 pydance.cfg /etc/pydance.cfg
>    for U in utils/findbpm.py; do\
>      install -m 755 $U `echo /usr/local/bin/$U | sed 's/\.py//' | sed
>    's/utils\///'`;\
>    done
>    cp -R themes images sound /usr/local/share/games/pydance
>    cp docs/man/*.1 /usr/local/share/man/man1
>    cp docs/man/*.6 /usr/local/share/man/man6
>
>
>
>





More information about the pyddr-discuss mailing list