Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'cpython': 0.05; 'porting': 0.09; 'subject:module': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'syntax': 0.13; 'wed,': 0.15; 'everyone,': 0.15; '3.3.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reinstated': 0.16; 'syntaxerror:': 0.16; 'used:': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'lawrence': 0.22; 'strip': 0.22; 'am,': 0.23; '2015': 0.23; 'module': 0.23; '3.0': 0.23; 'ease': 0.23; "i've": 0.24; 'header:In-Reply-To:1': 0.24; 'installed': 0.26; 'error': 0.27; 'message-id:@mail.gmail.com': 0.28; 'fine': 0.29; "i'm": 0.29; 'environment': 0.29; 'source': 0.31; 'running': 0.34; 'file': 0.34; 'received:google.com': 0.34; 'unicode': 0.35; 'but': 0.36; 'there': 0.36; 'should': 0.37; 'subject:: ': 0.37; 'front': 0.38; 'virtual': 0.38; 'building': 0.38; 'mark': 0.40; 'easy': 0.60; 'more': 0.62; 'course': 0.64; 'due': 0.65; 'upgrading': 0.72; 'demand': 0.79; 'chrisa': 0.84; 'to:none': 0.90 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=VqU1XF4BzQ+9AKijqLmFRFwNDBh4bUVESxzIoPtTGuM=; b=tXzjU4UNDCh/CfSQx5v01wbptg4V95bSe02IvDxGDfx9Cf0WYVl+FlBCB6NzWvqJ2S 4Mmdiw5NbsUGtc1OEu9NymPbYbqlCI5RnhI0AGHxKgCi1MG21u5PFRcD1ICgEqlkMRbq oR9CmHH1hrS9mlRR04UF/E2HuAs2WWGv5K9DVOBLdk8VWHFds13lUnRfyTd0fXil3uAw eqDUhjtW9FlrYxyR/mF53Km4EJLWBDPwlmgqHifSYF8qcLZuDq4fhCiky9bQcbNcHGME mNeiKsnsTThQxyJ92H5LiCLjj1QJH/cnAFutv6s6vk6ia52EdHD+j27gAfeW2AO355+4 jgzw== MIME-Version: 1.0 X-Received: by 10.42.43.199 with SMTP id y7mr30522126ice.12.1432657621647; Tue, 26 May 2015 09:27:01 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 May 2015 02:27:01 +1000 Subject: Re: SyntaxError on progress module From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432657630 news.xs4all.nl 2872 [2001:888:2000:d::a6]:59981 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91252 On Wed, May 27, 2015 at 1:59 AM, Mark Lawrence wr= ote: > 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 =3D u'=E2=88=99' >> ^ >> 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 a= nd > 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