SyntaxError while importing zope.interface on Windows XP SP3 Python 3.1.1

Bug #716653 reported by Rostislav Dzinko
6
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\lib\site-packages\zope\interface\__init__.py", line 55, in <
module>
    from zope.interface.interface import Interface, _wire
  File "c:\python31\lib\site-packages\zope\interface\interface.py", line 577
    exec "class %s: pass" % self.__name__ in klass
                        ^
SyntaxError: invalid syntax
>>>

Revision history for this message
Tres Seaver (tseaver) wrote :

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).

Changed in zope.interface:
status: New → Incomplete
Revision history for this message
Rostislav Dzinko (rostislav-dzinko) wrote :

Sorry, I've missspelled, it's Python 3.1.1.

Revision history for this message
Rostislav Dzinko (rostislav-dzinko) wrote :

Yes, Distribute resolved the issue. Thanks a lot.

Changed in zope.interface:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.