-
Notifications
You must be signed in to change notification settings - Fork 6
Description
I've been trying to install from source on a Raspberry Pi (Debian Wheezy) and I'm seeing some odd results. I'm just running setup.py install straight from the source:
> sudo python setup.py --verbose install running install
running build
running build_py
creating build
creating build/lib.linux-armv6l-2.7
copying rocket_backend.py -> build/lib.linux-armv6l-2.7
copying rocket_frontend.py -> build/lib.linux-armv6l-2.7
copying rocket_webcam.py -> build/lib.linux-armv6l-2.7
copying rocket_joystick.py -> build/lib.linux-armv6l-2.7
running build_scripts
creating build/scripts-2.7
copying and adjusting pyrocket -> build/scripts-2.7
changing mode of build/scripts-2.7/pyrocket from 644 to 755
running install_lib
copying build/lib.linux-armv6l-2.7/rocket_joystick.py -> /usr/local/lib/python2.7/dist-packages
copying build/lib.linux-armv6l-2.7/rocket_backend.py -> /usr/local/lib/python2.7/dist-packages
copying build/lib.linux-armv6l-2.7/rocket_frontend.py -> /usr/local/lib/python2.7/dist-packages
copying build/lib.linux-armv6l-2.7/rocket_webcam.py -> /usr/local/lib/python2.7/dist-packages
byte-compiling /usr/local/lib/python2.7/dist-packages/rocket_joystick.py to rocket_joystick.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/rocket_backend.py to rocket_backend.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/rocket_frontend.py to rocket_frontend.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/rocket_webcam.py to rocket_webcam.pyc
running install_scripts
copying build/scripts-2.7/pyrocket -> /usr/local/bin
changing mode of /usr/local/bin/pyrocket to 755
running install_data
creating /usr/local/share/pyrocket
copying joystick.svg -> /usr/local/share/pyrocket
copying pyrocket.png -> /usr/local/share/pyrocket
copying msnmissile.png -> /usr/local/share/pyrocket
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/pyrocket-0.7.egg-infoSo this is all working fine (I was a little surprised about the dist-packages thing, but it's apparently a debian convention). The problem is that when I start the program itself, I'm getting an error because the front end is looking for the image in the wrong place:
> pyrocket
Xlib: extension "RANDR" missing on display "localhost:10.0".
Traceback (most recent call last):
File "/usr/local/bin/pyrocket", line 27, in <module>
launcher = RocketWindow()
File "/usr/local/lib/python2.7/dist-packages/rocket_frontend.py", line 58, in __init__
self.window.set_icon_from_file( icon_path )
glib.GError: Failed to open file '/usr/share/pyrocket/pyrocket.png': No such file or directoryThis is because the local_share_dir is hardcoded as "/usr/share/" in rocket_frontend.py (line 18). If I change the file to use '/usr/local/share' instead and reinstall the GUI starts up normally.
I don't have the setup.py mojo to figure out what the right incantation is to get setup.py and rocket_frontend.py to agree on a common location for the installed images (if I figure it out I'll issue a pull request).