Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Python 3.2 dosn't work #36

Closed
alexkutsan opened this issue Jul 19, 2012 · 5 comments · May be fixed by #261
Closed

Python 3.2 dosn't work #36

alexkutsan opened this issue Jul 19, 2012 · 5 comments · May be fixed by #261

Comments

@alexkutsan
Copy link

A have instaled ino. Now i try to run it, and i get error

[alex@dhcppc0 ino]$ ino --help
Traceback (most recent call last):
File "/usr/local/bin/ino", line 3, in
from ino.runner import main
File "/usr/lib/python3.2/site-packages/ino-0.3.3-py3.2.egg/ino/runner.py", line 65
print colorize(str(exc), 'red')
^
SyntaxError: invalid syntax

I understand, that it is becouse of puthon2 syntax. But how to fix it?

@nkrkv
Copy link
Member

nkrkv commented Jul 19, 2012

This should be written as:

print(colorize(str(exc), 'red'))

Note the brackets. I guess there would be very many incompatibilities. For now it is easier to just get Python 2.x

@alexkutsan
Copy link
Author

Yes, thats right. But how can i tell ino to use python 2?

alias python='python2' doesn't work

@nkrkv
Copy link
Member

nkrkv commented Jul 19, 2012

How did you installed ino? With pip install?

In that case pip had to belong to python2. It depends on your distro, you could have pip2 or something like this.

@alexkutsan
Copy link
Author

No, i instaled it by
make install {dosn't work}
then
python setun.py install{works} .

But i solved this problem. I changed
#!/usr/bin/python -> #!/usr/bin/python2
in /usr/local/bin/ino
If you will change there, it would be nice. :-)
P.S. Sorry for my english.

@nkrkv
Copy link
Member

nkrkv commented Jul 19, 2012

No problems. My English is bad as well :)

The right solution is to make it work in any python. Simply changing it to python2 will cause problems on many distros.

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

Successfully merging a pull request may close this issue.

2 participants