This is baffling me entirely. Any ideas welcome!

MacOS 10.10.5; PyQt5.4, Qt5.4

When run under the interpreter, the static method

    QAudioDeviceInfo.defaultInputDevice()

returns the actual current default audio input device. But when this very
simple test case is bundled, the returned value is a null device.

$ cat adevtest.py
> from PyQt5.QtWidgets import QApplication
> from PyQt5.QtMultimedia import QAudioDeviceInfo
> app = QApplication([])
> in_dev = QAudioDeviceInfo.defaultInputDevice()
> print( 'name:', in_dev.deviceName() )
> print( 'isNull:', in_dev.isNull() )
>

$ python adevtest.py
> name: Plantronics .Audio 648 USB
> isNull: False
>


> $ dist/adevtest/adevtest
> name:
> isNull: True
>
>
Same code, same everything except one is bundled. Also the list of devices
returned by QAudioDeviceInfo.availableDevices() has 2 items under Python,
zero items when bundled. Somehow, the Qt Audio is not getting initialized
in the bundled program ... ?

Bundling is with the latest dev branch code. build/adevtest/warnadevtest
does contain this line:

missing module named PyQt5.QtMultimedia.QAudioDeviceInfo - imported by
> PyQt5.QtMultimedia, /Users/dcortesi/Dropbox/David/Sidetone/adevtest.py
>

However that cannot be correct or there would be a run-time error, no?
Anyway it also says "missing module named PyQt5.QtWidgets.QApplication" and
that is clearly not true as nothing would happen if the app couldn't be
started.

Running with --debug produces only normal-looking messages, no problems
shown.

Any thoughts or suggestions welcome!

Dave Cortesi

-- 
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 http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to