ubernostrum / webcolors

A library for working with HTML/CSS color formats in Python.

Home Page:https://webcolors.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webcolors install fails due to syntax error

mrzacharycook opened this issue · comments

I have a Raspberry Pi with Raspbian and Python 3.2.3. When I attempt to install Webcolors with pip, or manually download the tar.gz and run the install script, I get the following error:

running install
running build
running build_py
running install_lib
creating /usr/local/lib/python3.2
creating /usr/local/lib/python3.2/dist-packages
copying build/lib/webcolors.py -> /usr/local/lib/python3.2/dist-packages
byte-compiling /usr/local/lib/python3.2/dist-packages/webcolors.py to webcolors.cpython-32.pyc
File "/usr/local/lib/python3.2/dist-packages/webcolors.py", line 41
SUPPORTED_SPECIFICATIONS = (u'html4', u'css2', u'css21', u'css3')
^
SyntaxError: invalid syntax

running install_egg_info
Writing /usr/local/lib/python3.2/dist-packages/webcolors-1.5.egg-info

Any ideas?

webcolors explicitly does not support Python 3.2, and never will since 3.2 lacks support for the u prefix, which greatly simplifies Python 2/3 compatibility.

Supported Python versions are listed in the documentation.

Thank you for the quick feedback!