[Bug 422786] [NEW] Invalid import statements

arky rakesh_ambati at yahoo.com
Tue Sep 1 19:30:24 UTC 2009


Public bug reported:

Binary package hint: ubuntu-dev-tools

Python-support throws these errors.

Compiling /usr/lib/pymodules/python2.5/ubuntutools/requestsync/lp.py ...
  File "/usr/lib/pymodules/python2.5/ubuntutools/requestsync/lp.py", line 25
    from ..lp.udtexceptions import *
SyntaxError: 'import *' not allowed with 'from .'

$ head -n 35 /usr/share/pyshared/ubuntutools/requestsync/lp.py
<snip>
from .common import raw_input_exit_on_ctrlc
from ..lp.lpapicache import Launchpad, Distribution, PersonTeam, DistributionSourcePackage
from ..lp.udtexceptions import *
from ..lp.libsupport import translate_api_web
</snip>

$ sudo apt-get install python-support 
[sudo] password for arky:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.31-8 linux-headers-2.6.31-8-generic libdirac0c2a
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
Need to get 0B/31.5kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 327743 files and directories currently installed.)
Preparing to replace python-support 1.0.3ubuntu1 (using .../python-support_1.0.3ubuntu1_all.deb) ...
Unpacking replacement python-support ...
Processing triggers for man-db ...
Setting up python-support (1.0.3ubuntu1) ...
Compiling /usr/lib/pymodules/python2.5/ubuntutools/requestsync/lp.py ...
  File "/usr/lib/pymodules/python2.5/ubuntutools/requestsync/lp.py", line 25
    from ..lp.udtexceptions import *
SyntaxError: 'import *' not allowed with 'from .'

WARNING: WARNING: /usr/share/pyshared/lsb_release.py is linked but does
not belong to any package.

ProblemType: Bug
Architecture: i386
Date: Wed Sep  2 00:53:32 2009
DistroRelease: Ubuntu 9.10
Package: ubuntu-dev-tools 0.77
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-9.29-generic
SourcePackage: ubuntu-dev-tools
Uname: Linux 2.6.31-9-generic i686

** Affects: ubuntu-dev-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
Invalid import statements 
https://bugs.launchpad.net/bugs/422786
You received this bug notification because you are a member of MOTU,
which is subscribed to ubuntu-dev-tools in ubuntu.




More information about the universe-bugs mailing list