Import errors when using a local copy of launchpadlib in a package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Invalid
|
Undecided
|
Unassigned | ||
wadllib |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In a development environment I would like to use launchpadlib and wadllib within the following structure:
mysript.py
package/
mymodule.py
__init__.py
launchpadlib/
....
wadllib/
....
launchpadlib/ and wadllib/ are symlinks to local copies of the development branches.
Importing launchpadlib in mymodule.py results in various ImportErrors, like
-------
<type 'exceptions.
/media/
/media/
71 class ConnectBug(
72 def __init__(self, method=
---> 73 LaunchpadConnec
74
75 def __call__(self, bug=None, url=None):
/media/
33 ValueError
34 try:
---> 35 mod_connection = __import_
36 except TypeError:
37 mod_connection = __import_
/media/
2 from launchpadlib.
3
4 class APIConnection(
5 def __init__(self):
6 self.content_types = None
/media/
<type 'exceptions.
Fixing this would allow me to use launchpadlib without systemwide installing or changing sys.path.
Markus
I created two branches with proposed fixes for launchpadlib and wadllib