#70: Relative Import Fails
---------------------------------+------------------------------------------
Reporter: [email protected] | Owner: giovannibajo
Type: defect | Status: new
Priority: high | Milestone:
Component: PyInstaller | Version:
Severity: critical | Keywords: relative import
---------------------------------+------------------------------------------
I'm attaching an example to this issue a problem I'm having with one
package importing another using relative imports in Python 2.5.4. This
was tested using pyinstaller REV 678
{{{
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\pyinstaller\iu.py", line 480, in importHook
mod = self.doimport(nm, ctx, ctx+'.'+nm)
File "c:\pyinstaller\iu.py", line 524, in doimport
exec co in mod.__dict__
File "C:\Documents and
Settings\mgenti\Desktop\build\pyi.win32\Main\outPYZ1.py
z/a.a1", line 1, in <module>
File "c:\pyinstaller\iu.py", line 458, in importHook
raise ImportError, "No module named %s" % fqname
ImportError: No module named a.b
}}}
--
Ticket URL: <http://www.pyinstaller.org/ticket/70>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---