I got exactly the same error when setting up python-gtk2
(2.10.3-0ubuntu2)

Setting up python-gtk2 (2.10.3-0ubuntu2) ...
Compiling /var/lib/python-support/python2.5/SOAPpy/Client.py ...
  File "/var/lib/python-support/python2.5/SOAPpy/Client.py", line 46
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/GSIServer.py ...
  File "/var/lib/python-support/python2.5/SOAPpy/GSIServer.py", line 49
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/Server.py ...
  File "/var/lib/python-support/python2.5/SOAPpy/Server.py", line 46
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/Types.py ...
  File "/var/lib/python-support/python2.5/SOAPpy/Types.py", line 39
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file


Setting up python-glade2 (2.10.3-0ubuntu2) ...
Compiling /var/lib/python-support/python2.5/SOAPpy/Client.py ...
  File "/var/lib/python-support/python2.5/SOAPpy/Client.py", line 46
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/GSIServer.py ...
  File "/var/lib/python-support/python2.5/SOAPpy/GSIServer.py", line 49
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/Server.py ...
  File "/var/lib/python-support/python2.5/SOAPpy/Server.py", line 46
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/Types.py ...
  File "/var/lib/python-support/python2.5/SOAPpy/Types.py", line 39
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

-- 
SyntaxError when byte-compiling for python2.5
https://launchpad.net/bugs/63821

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to