I may have an additional clue.

If I do evil things and monkey with the sys.path like this:

 if os.name == 'nt':
   packages = os.path.join(os.path.splitdrive(sys.path[0])[0],'\\Python27\\lib\\site-packages')
   sys.path.insert(0, packages)


Then it works in the downloader.  The problem is that the point of using Queue is send messages from the downloader (progress) to the Tkinter class (InstallerUserMessage), so both classes need to have an import of Queue.  Adding the code above to both doesn't work when the downloader imports InstallerUserMessage in order to instantiate a class to send messages to.

The sys.path, as seen by IUM is:

['C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages', 'C:\\Users\\coyot\\AppData\\Local\\Temp\\_MEI12~1']

It replicates the site-packages dir because it inherits sys.path from the downloader which did this once for its own sake.

And the traceback is:

Traceback (most recent call last):
 File "download_update.py", line 38, in <module>
 File "c:\cygwin64\tmp\pip-build-xzzmth\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
 File "InstallerUserMessage.py", line 39, in <module>
   #for hyperlinks
ImportError: No module named Queue
Failed to execute script download_update


Note that the complaint is from the imported IUM class trying to import Queue, not from downloader itself.

Best,

coyot

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to