SyntaxError on progress module

David Palao dpalao.python at gmail.com
Wed May 27 03:47:06 EDT 2015


2015-05-27 9:30 GMT+02:00 alb <al.basili at gmail.com>:
> Hi Mark,
> Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> []
>>>    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
>>>
> []
>>
>> 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.
>
> I'm not particularly comfortable in fiddling with the library source,
> even if the change seems really minor, therefore I guess that I'll
> upgrade to a more recent version of Python/Debian.
>
> But here I have another question, as a python novice is there really any
> reason for me to use any particular version of Python?
>
> Should I start directly with the newest? What about 2.7?
>
> Al
> --
> https://mail.python.org/mailman/listinfo/python-list

Hi,
I would recommend to start with a 3.x Python. Perhaps 3.3 or 3.4? If
the version provided by your OS is older, you can always use a virtual
environment. Ask if you don't know about it.

Best



More information about the Python-list mailing list