Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91252
| References | <csjitvF6cptU1@mid.individual.net> <mk2586$d30$1@ger.gmane.org> |
|---|---|
| Date | 2015-05-27 02:27 +1000 |
| Subject | Re: SyntaxError on progress module |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.59.1432657630.5151.python-list@python.org> (permalink) |
On Wed, May 27, 2015 at 1:59 AM, Mark Lawrence <breamoreboy@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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-26 15:48 +0000
Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-26 16:59 +0100
Re: SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-27 07:30 +0000
Re: SyntaxError on progress module David Palao <dpalao.python@gmail.com> - 2015-05-27 09:47 +0200
Re: SyntaxError on progress module Chris Angelico <rosuav@gmail.com> - 2015-05-27 18:22 +1000
Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 10:42 +0200
Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 14:44 +0100
Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 16:11 +0200
Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 15:51 +0100
Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 17:18 +0200
Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 21:03 +0100
Re: SyntaxError on progress module Steven D'Aprano <steve@pearwood.info> - 2015-05-28 11:39 +1000
Re: SyntaxError on progress module Chris Angelico <rosuav@gmail.com> - 2015-05-27 02:27 +1000
Re: SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-27 07:24 +0000
csiph-web