Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support Rasberry PI #14

Open
duaneking opened this issue Jul 19, 2015 · 5 comments
Open

Does not support Rasberry PI #14

duaneking opened this issue Jul 19, 2015 · 5 comments
Labels

Comments

@duaneking
Copy link
Contributor

I laughed when I saw this and wondered if it ran on my raspberry pi; Tried this on a rasberry pi and the version it installs does not work. :(

pi@raspberrypi ~/github/rockstar/lol/rockstar/RockStar $ python3 init.py
Traceback (most recent call last):
File "init.py", line 9, in
import click
File "/usr/local/lib/python3.2/dist-packages/click/init.py", line 18, in
from .core import Context, BaseCommand, Command, MultiCommand, Group,
File "/usr/local/lib/python3.2/dist-packages/click/core.py", line 8, in
from .types import convert_type, IntRange, BOOL
File "/usr/local/lib/python3.2/dist-packages/click/types.py", line 7, in
from .exceptions import BadParameter
File "/usr/local/lib/python3.2/dist-packages/click/exceptions.py", line 2, in
from .utils import echo
File "/usr/local/lib/python3.2/dist-packages/click/utils.py", line 301
file.write(u'\n')
^
SyntaxError: invalid syntax

@avinassh
Copy link
Owner

Rockstars code in Raspberry Pi all the time. This is unacceptable.

update the Python please and try again.

@avinassh avinassh added the bug label Jul 19, 2015
@duaneking
Copy link
Contributor Author

It would seem I have not updated the packages on the PI in a while ;)

apt-get update / apt-get upgrade done... and I am already using the most up to date python package available for my rasbperry pi and I still get this error ;)

pi@raspberrypi ~/github/rockstar/lol/rockstar/RockStar $ python --version
Python 2.7.3
pi@raspberrypi ~/github/rockstar/lol/rockstar/RockStar $ python3 --version
Python 3.2.3

Best I can find on the topic of the u'' syntax is https://docs.djangoproject.com/en/1.8/topics/python3/#unicode-literals

@avinassh
Copy link
Owner

Is your script name init.py? try renaming it to something else?

From the traceback, looks like issue is coming from click library. And I think click is for above Python 3.2 versions

As of now, you could install Rockstar from pip and it's the older version.

@duaneking
Copy link
Contributor Author

I can get it working on the PI in Python 2 if I remove click.. I just have to rewrite a few methods.

The version of Python3 on the PI is 3.2, but as the docs for RockStar say "Python3" I hoped that wouldn't be an issue.

@avinassh
Copy link
Owner

but as the docs for RockStar say "Python3" I hoped that wouldn't be an issue.

Sorry, you are right :/

I will try to this on Python 3.2 and update here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants