On Monday, September 6, 2010 12:09:46 PM UTC-5, Alexander Nestorov wrote:
> I'm using python-xlib in my project, but pyinstaller won't detect
> 
> that. Also, python-xlib uses:
> 
> 
> 
> mod = __import__('Xlib.keysymdef.%s' % group, G, locals(), [group])
> 
> 
> 
> to import things. How can this be handled with pyinstaller?
> 
> 
> 
> Thanks

I know this is an ancient post that probably doesn't need resurrecting but if 
anyone else has this problem, I've managed to get PyInstaller 1.5.1 to work 
correctly by manually importing all needed modules (trial/error method) in the 
.py file that is using it:
# ---------------------
from Xlib.support import unix_connect
from Xlib.ext import xtest, shape, xinerama, record, composite, randr
# ---------------------


AFAIK,the problem is that PyInstaller does not correctly handle imports that 
are in variables (see Xlib/support/connect.py for an example)

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyinstaller/-/tkmEhl8F6SgJ.
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.

Reply via email to