I'm still having trouble sorting this out. If someone could provide some
additional hand-holding, I'd appreciate it.
If I compare the verbose imports output when running under Windows 7 to the
output under XP, I see where 7 succeeds and XP fails:
import bluetooth._msbt # dynamically loaded from
C:/Users/ADMINI~1/AppData/Local/Temp/_MEI28642\bluetooth._msbt.pyd
XP show the following in the same place in the output:
DLL load failed: The specified procedure could not be found.
I'm at a loss as to what hook I need to create.
If I look at the warn output, I see a couple messages regarding non-conditional
top-level imports. The document Raoul sited says those are probably hard
errors. Here are the bluetooth-related messages:
W: no module named fcntl (top-level import by bluetooth.bluez)
W: no module named _bluetooth (top-level import by bluetooth.bluez)
W: no module named fcntl (top-level import by bluetooth)
W: no module named _bluetooth (top-level import by bluetooth)
W: top-level exec statement detected at line 0 - bluetooth.bluez
(C:\Python26\lib\site-packages\bluetooth\bluez.pyc)
W: delayed exec statement detected at line 0 - bluetooth.bluez
(C:\Python26\lib\site-packages\bluetooth\bluez.pyc)
I tried to address the fcntl and _bluetooth warnings by creating
hook-bluetooth.py in the hooks directory containing the following line:
hiddenimports = ['fcntl', '_bluetooth']
That doesn't seem to help.
When I run Build.py to create the exe, I do get an error in the output:
E: lib not found: wbtapi.dll dependency of
C:\Python26\lib\site-packages\bluetooth\_widcomm.pyd
I cannot find wbtapi.dll anywhere on the Windows 7 or Windows XP systems.
I'm not sure what to do next.
mike
On Feb 20, 2011, at 10:28 PM, Raoul Snyman wrote:
> Hi Michael,
>
> On 19 February 2011 17:13, Michael Durian <[email protected]> wrote:
>> BtGatewayBlueZ is not defined because its definition is conditional on
>> importing
>> the bluetooth module:
>> try:
>> import bluetooth
>> except Exception, e:
>> print e
>> BLUEZ_SUPPORTED = False
>> else:
>> BLUEZ_SUPPORTED = True
>>
>> I don't know where to begin to diagnose which specified procedure is missing
>> in the bluetooth DLL or how to fix things so it will run under XP. Can
>> anyone
>> offer some advice?
>
> It looks like you probably need to create a hook file. See
> http://www.pyinstaller.org/export/latest/trunk/doc/Manual.html?format=raw#listing-hidden-imports
> for how to do this.
>
>
> --
> Raoul Snyman
> B.Tech Information Technology (Software Engineering)
> E-Mail: [email protected]
> Web: http://www.saturnlaboratories.co.za/
> Blog: http://blog.saturnlaboratories.co.za/
> Mobile: 082 550 3754
> Registered Linux User #333298 (http://counter.li.org)
>
> --
> 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.
>
>
>
> !DSPAM:4d61f80411109646414669!
--
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.