Re: SyntaxError
Andy Sy <[email protected]> Fri, 24 Sep 2010 17:30:51 +0800
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Martin, > I have tried to install spyce and I have got the following message: > > [root@secure spyce]# python -u spyceCmd.py -l > Traceback (most recent call last): > File "spyceCmd.py", line 12, in <module> > import spyce, spyceException, spyceUtil, spyceCompile, spycePreload > File "/usr/share/spyce/spyce.py", line 549 > def _startModule(self, name, file=None, as=None, force=0): > ^ > SyntaxError: invalid syntax > > I am using Python 2.6.5 "as" is now a reserved keyword in Python 2.6.5 (and 2.5 too?), and Spyce has not yet been updated to remove these instances. We use Spyce here in production and we basically rename and make these changes manually across the source. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev