SyntaxError while importing zope.interface on Windows XP SP3 Python 3.1.1
Bug #716653 reported by
Rostislav Dzinko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.interface |
Invalid
|
Undecided
|
Unassigned |
Bug Description
SyntaxError raises when trying to import Interface from zope.interface package.
Version: zope.interface: 3.6.1
OS: Windows XP SP3.
Python: 3.3.1
>>> from zope.interface import Interface
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\python31\
module>
from zope.interface.
File "c:\python31\
exec "class %s: pass" % self.__name__ in klass
SyntaxError: invalid syntax
>>>
Changed in zope.interface: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
Under Python3, you need to install zope.interface using setuptools or
distribute, so that it does the 2to3 processing for you. Also, your Python
version looks wrong (version 3.2 is not yet released: running 3.3.1 would
require using Guido's time machine).