SyntaxError on progress module

Chris Angelico rosuav at gmail.com
Tue May 26 12:27:01 EDT 2015


On Wed, May 27, 2015 at 1:59 AM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> On 26/05/2015 16:48, alb wrote:
>>
>> Hi everyone,
>>
>> I've installed the 'progress' module (ver 1.2) and I have the following
>> error when used:
>>
>>    File
>> "/home/debian/repos/2418_IASI-NG/Documents/Tools/tex_tool/venv/local/lib/python3.2/site-packages/progress/bar.py",
>> line 48
>>      empty_fill = u'∙'
>>                        ^
>> SyntaxError: invalid syntax
>>
>> I'm running in a virtual environment with python3.2
>
> Python 3.0 removed the 'u' for unicode in front of strings but due to
> popular demand to ease porting it was reinstated in 3.3.  Strip it away and
> you should be fine to go.

Or upgrade to 3.3 or better; is there anything holding you on 3.2?
Building CPython from source is pretty easy on Debian, and of course
upgrading to Jessie will correspondingly upgrade you to a more recent
Python (3.4, to be precise).

ChrisA



More information about the Python-list mailing list