Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Python 3 doesn't like the version (in __init__.py) #60

Open
uberj opened this issue Jan 22, 2012 · 1 comment
Open

Python 3 doesn't like the version (in __init__.py) #60

uberj opened this issue Jan 22, 2012 · 1 comment
Labels

Comments

@uberj
Copy link
Contributor

uberj commented Jan 22, 2012

For some reason python 3 doesn't like unicode string notation.

Traceback (most recent call last):
  File "setup.py", line 5, in <module>
    from wok import version
  File "/home/uberj/wok/wok/__init__.py", line 1
    version = u'0.8.0'
                     ^
SyntaxError: invalid syntax

uberj@francium ~/wok (> ^ ^)> python --version
Python 3.2.2


@mythmon
Copy link
Owner

mythmon commented Jan 22, 2012

Currently python 3 isn't supposed to work, but it is nice to know where the pain points are.

The problem here is that in py3 'blah' is a unicode string, so there is no need for the u'blah' notatiom. I imagine 2to3 would fix this.

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

No branches or pull requests

2 participants