Re: Python packaging for distrobution

It's not locating and packing all the dependencies. I can post the error report and warnings, but it just amounts to that.


I know I have to add things to the spec file. I just don't understand exactly what.

build warnings:
5272 WARNING: Hidden import "pygame._view" not found!
5865 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassopus.dylib
5865 WARNING:   Reason: 'DOS Header magic not found.'
5865 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbass_alac.so
5865 WARNING:   Reason: 'DOS Header magic not found.'
5881 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\tags.dll
5881 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbass_alac.so
5882 WARNING:   Reason: 'DOS Header magic not found.'
5882 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbass.so
5882 WARNING:   Reason: 'DOS Header magic not found.'
5883 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbass_aac.dylib
5883 WARNING:   Reason: 'DOS Header magic not found.'
5893 WARNING: lib not found: bass.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\bassopus.dll
5895 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassmix.so
5895 WARNING:   Reason: 'DOS Header magic not found.'
5895 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libtags.so
5895 WARNING:   Reason: 'DOS Header magic not found.'
5906 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\bass_aac.dll
5928 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\bass_alac.dll
5928 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libtags.dylib
5928 WARNING:   Reason: 'DOS Header magic not found.'
5929 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassopus.so
5929 WARNING:   Reason: 'DOS Header magic not found.'
5940 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\bassflac.dll
5941 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbass.dylib
5941 WARNING:   Reason: 'DOS Header magic not found.'
5948 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbassflac.so
5948 WARNING:   Reason: 'DOS Header magic not found.'
5949 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbass_fx.so
5949 WARNING:   Reason: 'DOS Header magic not found.'
5949 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbassmidi.so
5949 WARNING:   Reason: 'DOS Header magic not found.'
5950 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbassenc.so
5950 WARNING:   Reason: 'DOS Header magic not found.'
5957 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbassopus.so
5957 WARNING:   Reason: 'DOS Header magic not found.'
5968 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassenc.dylib
5968 WARNING:   Reason: 'DOS Header magic not found.'
5968 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbass_aac.so
5968 WARNING:   Reason: 'DOS Header magic not found.'
5975 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\bassmidi.dll
5981 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbassopus.dylib
5982 WARNING:   Reason: 'DOS Header magic not found.'
5982 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libtags.so
5982 WARNING:   Reason: 'DOS Header magic not found.'
6005 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbass_fx.dylib
6005 WARNING:   Reason: 'DOS Header magic not found.'
6005 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassmix.dylib
6005 WARNING:   Reason: 'DOS Header magic not found.'
6023 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\bass_fx.dll
6023 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbass.so
6023 WARNING:   Reason: 'DOS Header magic not found.'
6033 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbass_aac.so
6033 WARNING:   Reason: 'DOS Header magic not found.'
6034 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassenc.so
6034 WARNING:   Reason: 'DOS Header magic not found.'
6042 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\basswasapi.dll
6056 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbass.dylib
6056 WARNING:   Reason: 'DOS Header magic not found.'
6116 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassflac.so
6116 WARNING:   Reason: 'DOS Header magic not found.'
6134 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbassmix.so
6135 WARNING:   Reason: 'DOS Header magic not found.'
6135 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassflac.dylib
6135 WARNING:   Reason: 'DOS Header magic not found.'
6162 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\libbass_fx.dylib
6162 WARNING:   Reason: 'DOS Header magic not found.'
6162 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassmidi.so
6162 WARNING:   Reason: 'DOS Header magic not found.'
6171 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\basswma.dll
6188 WARNING: lib not found: BASS.dll dependency of c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x64\bassmix.dll
6195 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbassmidi.dylib
6195 WARNING:   Reason: 'DOS Header magic not found.'
6196 WARNING: Can not get binary dependencies for file: c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\sound_lib\lib\x86\libbass_fx.so
6196 WARNING:   Reason: 'DOS Header magic not found.'
9523 WARNING: One binary added with two internal names.
9523 WARNING: ('bass.dll',
'c:\\users\\sklut\\documents\\programming\\python\\random\\venv\\lib\\site-packages\\sound_lib\\lib\\x86\\bass.dll',
'BINARY')
9523 WARNING: was placed previously at
9523 WARNING: ('sound_lib\\lib\\x86\\bass.dll',
'c:\\users\\sklut\\documents\\programming\\python\\random\\venv\\lib\\site-packages\\sound_lib\\lib\\x86\\bass.dll',
'BINARY')

runtime errors:
Traceback (most recent call last):
  File "lib\site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 174, in __init__
  File "ctypes\__init__.py", line 364, in __init__
OSError: [WinError 126] The specified module could not be found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "dice.py", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "c:\users\sklut\documents\sssssprogramming\python\random\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
  File "lib\sound_pool\__init__.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
  File "lib\sound_pool\sound_pool.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
  File "lib\sound_pool\sound.py", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
  File "lib\site-packages\sound_lib\output.py", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
  File "lib\site-packages\sound_lib\external\__init__.py", line 3, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "c:\users\sklut\documents\programming\python\random\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
  File "lib\site-packages\sound_lib\external\pybassopus.py", line 11, in <module>
  File "lib\site-packages\libloader\libloader.py", line 36, in load_library
  File "lib\site-packages\libloader\libloader.py", line 46, in _do_load
  File "lib\site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 176, in __init__
__main__.PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\sklut\\Documents\\programming\\Python\\random\\dist\\sound_lib\\lib\\x86\\bassopus.dll'. Most probably this dynlib/dll was not found when the application was frozen.
[536] Failed to execute script dice

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Nuno via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Lucas1853 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Nuno via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector

Reply via email to