Cheaterman / panda3d-kivy

Panda3D add-on for Kivy integration.
MIT License
36 stars 6 forks source link

[Desktop packaging] Compiled application error. Unable to import kivy._clock #14

Open FrancoTonutti opened 4 years ago

FrancoTonutti commented 4 years ago

I use this lib in the following project

https://github.com/FrancoTonutti/Calculo-UTN-FRP

After trying to compile with python setup.py bdist_apps, the generated .exe doesn't work

I think the error is due to the following, but I don't know how to compile panda3d and kivy at the same time

[ERROR ] [Clock ] Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? Kivy contains Cython code which needs to be compiled. A missing kivy._clock often indicates the Cython code has not been compiled. Please follow the installation instructions and make sure to compile Kivy

output.log: ``` [ERROR ] [Core ] error while reading localconfiguration Traceback (most recent call last): File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\config.py", line 703, in File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\config.py", line 469, in read File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 857, in items File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 857, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 854, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 394, in before_get File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 444, in _interpolate_some ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%y-%m-%d_%_.txt' [ERROR ] Error while activating FileHandler logger Traceback (most recent call last): File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\logger.py", line 234, in emit File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\logger.py", line 165, in _configure File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\config.py", line 501, in get File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 799, in get File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 394, in before_get File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 444, in _interpolate_some ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%y-%m-%d_%_.txt' [INFO ] [Kivy ] v1.11.1 [INFO ] [Kivy ] Installed at "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\win32\CalculoUTN.exe" [INFO ] [Python ] v3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] [INFO ] [Python ] Interpreter at "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\win32\CalculoUTN.exe" [ERROR ] [Clock ] Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? Kivy contains Cython code which needs to be compiled. A missing kivy._clock often indicates the Cython code has not been compiled. Please follow the installation instructions and make sure to compile Kivy Traceback (most recent call last): File "main.py", line 5, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\app\user_interface\main_ui.py", line 1, in from panda3d_kivy.app import App File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\panda3d_kivy-0.1.2-py3-none-any.whl\panda3d_kivy\app.py", line 2, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\panda3d_kivy-0.1.2-py3-none-any.whl\panda3d_kivy\core\window.py", line 5, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\app.py", line 319, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\base.py", line 26, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\__whl_cache__\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\clock.py", line 363, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "kivy._clock", line 1, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\imp.py", line 342, in load_dynamic return _load(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 696, in _load return _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap_external.py", line 1050, in exec_module _bootstrap._call_with_frames_removed(_imp.exec_dynamic, module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 219, in _call_with_frames_removed return f(*args, **kwds) File "kivy\_clock.pyx", line 9, in init kivy._clock File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib\_bootstrap.py", line 965, in _find_and_load_unlocked raise ModuleNotFoundError(_ERR_MSG.format(name), name=name) ModuleNotFoundError: No module named 'kivy.weakmethod' ```
Cheaterman commented 4 years ago

Use pyinstaller.

Le ven. 17 juil. 2020 à 06:19, FrancoTonutti notifications@github.com a écrit :

I use this lib in the following project

https://github.com/FrancoTonutti/Calculo-UTN-FRP http://url

After trying to compile with python setup.py bdist_apps, the generated .exe doesn't work

I think the error is due to the following, but I don't know how to compile panda3d and kivy at the same time

[ERROR ] [Clock ] Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? Kivy contains Cython code which needs to be compiled. A missing kivy._clock often indicates the Cython code has not been compiled. Please follow the installation instructions and make sure to compile Kivy

output.log:

[ERROR ] [Core ] error while reading localconfiguration Traceback (most recent call last): File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\config.py", line 703, in File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\config.py", line 469, in read File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 857, in items File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 857, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 854, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 394, in before_get File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 444, in _interpolatesome ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%y-%m-%d%_.txt' [ERROR ] Error while activating FileHandler logger Traceback (most recent call last): File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\logger.py", line 234, in emit File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\logger.py", line 165, in _configure File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\config.py", line 501, in get File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 799, in get File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 394, in before_get File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\ConfigParser.py", line 444, in _interpolatesome ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%y-%m-%d%_.txt' [INFO ] [Kivy ] v1.11.1 [INFO ] [Kivy ] Installed at "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\win32\CalculoUTN.exe" [INFO ] [Python ] v3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] [INFO ] [Python ] Interpreter at "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build\win32\CalculoUTN.exe" [ERROR ] [Clock ] Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? Kivy contains Cython code which needs to be compiled. A missing kivy._clock often indicates the Cython code has not been compiled. Please follow the installation instructions and make sure to compile Kivy Traceback (most recent call last): File "main.py", line 5, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 983, in _find_and_load return _find_and_loadunlocked(name, import) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 819, in exec_module exec(code, module.dict) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\app\user_interface\main_ui.py", line 1, in from panda3d_kivy.app import App File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 983, in _find_and_load return _find_and_loadunlocked(name, import) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 819, in exec_module exec(code, module.dict) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\panda3d_kivy-0.1.2-py3-none-any.whl\panda3d_kivy\app.py", line 2, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 983, in _find_and_load return _find_and_loadunlocked(name, import) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 819, in exec_module exec(code, module.dict) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\panda3d_kivy-0.1.2-py3-none-any.whl\panda3d_kivy\core\window.py", line 5, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 983, in _find_and_load return _find_and_loadunlocked(name, import) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 819, in exec_module exec(code, module.dict) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\app.py", line 319, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 983, in _find_and_load return _find_and_loadunlocked(name, import) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 819, in exec_module exec(code, module.dict) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\base.py", line 26, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 983, in _find_and_load return _find_and_loadunlocked(name, import) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 819, in exec_module exec(code, module.dict) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP-master\build__whl_cache\win32_cp37m\Kivy-1.11.1-cp37-cp37m-win32.whl\kivy\clock.py", line 363, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 983, in _find_and_load return _find_and_loadunlocked(name, import) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 819, in exec_module exec(code, module.dict) File "kivy._clock", line 1, in File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\imp.py", line 342, in load_dynamic return _load(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 696, in _load return _load_unlocked(spec) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap_external.py", line 1050, in exec_module _bootstrap._call_with_frames_removed(_imp.exec_dynamic, module) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 219, in _call_with_frames_removed return f(*args, **kwds) File "kivy_clock.pyx", line 9, in init kivy._clock File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 983, in _find_and_load return _find_and_loadunlocked(name, import) File "C:\Users\Usuario\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py", line 965, in _find_and_load_unlocked raise ModuleNotFoundError(_ERR_MSG.format(name), name=name) ModuleNotFoundError: No module named 'kivy.weakmethod'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Cheaterman/panda3d-kivy/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANLNR3LKOSJZY4OWPMRCTR37GMDANCNFSM4O5PLNRQ .

rdb commented 4 years ago

Did you get warnings when using Panda's deployment system? What if you explicitly force kivy._clock and kivy.weakmethod to be included in your setup.py?

As an aside, is there a reason you're using a 32-bit version of Python?

FrancoTonutti commented 4 years ago

Thank you very much for your help

With pyinstaller I get this error when executing, and many warnings when compiling

.kivy/logs when executing ``` [INFO ] Logger: Record log in C:\Users\Usuario\.kivy\logs\kivy_20-07-17_5.txt [INFO ] Kivy: v1.11.1 [INFO ] Kivy: Installed at "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\dist\main\kivy\__init__.pyc" [INFO ] Python: v3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] [INFO ] Python: Interpreter at "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\dist\main\main.exe" [INFO ] Factory: 184 symbols loaded [INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) [INFO ] Text: Provider: sdl2 [WARNING] stderr: Traceback (most recent call last): [WARNING] stderr: File "main.py", line 74, in [WARNING] stderr: File "main.py", line 20, in __init__ [WARNING] stderr: File "lib\site-packages\direct\showbase\ShowBase.py", line 289, in __init__ [WARNING] stderr: File "lib\site-packages\direct\showbase\ShowBase.py", line 959, in openDefaultWindow [WARNING] stderr: File "lib\site-packages\direct\showbase\ShowBase.py", line 995, in openMainWindow [WARNING] stderr: File "lib\site-packages\direct\showbase\ShowBase.py", line 707, in openWindow [WARNING] stderr: File "lib\site-packages\direct\showbase\ShowBase.py", line 693, in [WARNING] stderr: File "lib\site-packages\direct\showbase\ShowBase.py", line 759, in _doOpenWindow [WARNING] stderr: File "lib\site-packages\direct\showbase\ShowBase.py", line 598, in makeDefaultPipe [WARNING] stderr: File "lib\site-packages\direct\directnotify\Notifier.py", line 130, in error [WARNING] stderr: Exception: No graphics pipe is available! [WARNING] stderr: Your Config.prc file must name at least one valid panda display [WARNING] stderr: library via load-display or aux-display. ```
pyinstaller main.py ``` 82 INFO: PyInstaller: 3.5 82 INFO: Python: 3.7.4 83 INFO: Platform: Windows-10-10.0.18362-SP0 83 INFO: wrote D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\main.spec 85 INFO: UPX is not available. 86 INFO: Extending PYTHONPATH with paths ['D:\\Bibliotecas\\Documentos\\Python 3\\UTN\\Calculo-UTN-FRP', 'D:\\Bibliotecas\\Documentos\\Python 3\\UTN\\Calculo-UTN-FRP'] 86 INFO: checking Analysis 86 INFO: Building Analysis because Analysis-00.toc is non existent 86 INFO: Initializing module dependency graph... 90 INFO: Initializing module graph hooks... 93 INFO: Analyzing base_library.zip ... 2651 INFO: running Analysis Analysis-00.toc 2653 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by c:\users\usuario\appdata\local\programs\python\python37-32\python.exe 5197 INFO: Caching module hooks... 5203 INFO: Analyzing D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\main.py 6284 INFO: Processing pre-find module path hook distutils 8937 INFO: Processing pre-find module path hook site 8938 INFO: site: retargeting to fake-dir 'c:\\users\\usuario\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\PyInstaller\\fake-modules' 9894 INFO: Processing pre-safe import module hook setuptools.extern.six.moves 12247 INFO: Loading module hooks... 12247 INFO: Loading module hook "hook-distutils.py"... 12249 INFO: Loading module hook "hook-encodings.py"... 12321 INFO: Loading module hook "hook-kivy.py"... [INFO ] [Logger ] Record log in C:\Users\Usuario\.kivy\logs\kivy_20-07-17_0.txt 12340 INFO: [Logger ] Record log in C:\Users\Usuario\.kivy\logs\kivy_20-07-17_0.txt [INFO ] [Kivy ] v1.11.1 12339 INFO: [Kivy ] v1.11.1 [INFO ] [Kivy ] Installed at "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\__init__.py" 12341 INFO: [Kivy ] Installed at "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\__init__.py" [INFO ] [Python ] v3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] 12341 INFO: [Python ] v3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] [INFO ] [Python ] Interpreter at "c:\users\usuario\appdata\local\programs\python\python37-32\python.exe" 12341 INFO: [Python ] Interpreter at "c:\users\usuario\appdata\local\programs\python\python37-32\python.exe" [INFO ] [Factory ] 184 symbols loaded 12349 INFO: [Factory ] 184 symbols loaded [INFO ] [Logger ] Record log in C:\Users\Usuario\.kivy\logs\kivy_20-07-17_1.txt [INFO ] [Kivy ] v1.11.1 [INFO ] [Kivy ] Installed at "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\__init__.py" [INFO ] [Python ] v3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] [INFO ] [Python ] Interpreter at "c:\users\usuario\appdata\local\programs\python\python37-32\python.exe" [INFO ] [Image ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored) [WARNING] [Could not find GStreamer plugins. Possible solution] set GST_PLUGIN_PATH 12682 WARNING: [Could not find GStreamer plugins. Possible solution] set GST_PLUGIN_PATH [INFO ] [Logger ] Record log in C:\Users\Usuario\.kivy\logs\kivy_20-07-17_2.txt [INFO ] [Kivy ] v1.11.1 [INFO ] [Kivy ] Installed at "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\__init__.py" [INFO ] [Python ] v3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] [INFO ] [Python ] Interpreter at "c:\users\usuario\appdata\local\programs\python\python37-32\python.exe" [INFO ] [Audio ] Providers: (audio_ffpyplayer, audio_sdl2 ignored) [INFO ] [Image ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored) [INFO ] [Camera ] Provider: opencv(['camera_picamera', 'camera_gi'] ignored) [INFO ] [Clipboard ] Provider: winctypes [INFO ] [Factory ] 184 symbols loaded [CRITICAL] [Window ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes sdl2 - ImportError: DLL load failed: No se puede encontrar el módulo especificado. File "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\__init__.py", line 63, in core_select_lib fromlist=[modulename], level=0) File "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\window\window_sdl2.py", line 27, in from kivy.core.window._window_sdl2 import _WindowSDL2Storage [CRITICAL] [Spelling ] Unable to find any valuable Spelling provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes enchant - ModuleNotFoundError: No module named 'enchant' File "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\__init__.py", line 63, in core_select_lib fromlist=[modulename], level=0) File "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\spelling\spelling_enchant.py", line 12, in import enchant [CRITICAL] [Text ] Unable to find any valuable Text provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes sdl2 - ImportError: DLL load failed: No se puede encontrar el módulo especificado. File "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\__init__.py", line 63, in core_select_lib fromlist=[modulename], level=0) File "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\text\text_sdl2.py", line 13, in from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents, pil - ModuleNotFoundError: No module named 'PIL' File "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\__init__.py", line 63, in core_select_lib fromlist=[modulename], level=0) File "c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\text\text_pil.py", line 7, in from PIL import Image, ImageFont, ImageDraw [CRITICAL] [App ] Unable to get a Text provider, abort. 15380 INFO: Excluding import 'twisted' 15384 INFO: Removing import of twisted from module kivy.support 15385 INFO: Import to be excluded not found: 'tkinter' 15385 INFO: Import to be excluded not found: '_tkinter' 15386 INFO: Loading module hook "hook-lib2to3.py"... 15390 INFO: Loading module hook "hook-numpy.core.py"... 15499 INFO: Loading module hook "hook-numpy.py"... 15500 INFO: Loading module hook "hook-pkg_resources.py"... 15902 INFO: Processing pre-safe import module hook win32com 16013 INFO: Loading module hook "hook-pydoc.py"... 16014 INFO: Loading module hook "hook-pygments.py"... 17292 INFO: Loading module hook "hook-pythoncom.py"... 17517 INFO: Loading module hook "hook-pywintypes.py"... 17737 INFO: Loading module hook "hook-setuptools.py"... c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or e rrors. Please use Setuptools' objects directly or at least import Setuptools first. 17739 WARNING: stderr: c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit unde sirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first. "Distutils was imported before Setuptools. This usage is discouraged " 17739 WARNING: stderr: "Distutils was imported before Setuptools. This usage is discouraged " 18228 INFO: Loading module hook "hook-sysconfig.py"... 18229 INFO: Loading module hook "hook-win32com.py"... 18617 INFO: Loading module hook "hook-xml.dom.domreg.py"... 18618 INFO: Loading module hook "hook-xml.etree.cElementTree.py"... 18618 INFO: Loading module hook "hook-xml.py"... 18619 INFO: Loading module hook "hook-cv2.py"... 18620 INFO: Loading module hook "hook-docutils.py"... 20079 INFO: Looking for ctypes DLLs 20137 INFO: Analyzing run-time hooks ... 20146 INFO: Including run-time hook 'pyi_rth_kivy.py' 20147 INFO: Including run-time hook 'pyi_rth_gstreamer.py' 20149 INFO: Including run-time hook 'pyi_rth_pkgres.py' 20150 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py' 20151 INFO: Including run-time hook 'pyi_rth_multiprocessing.py' 20170 INFO: Looking for dynamic libraries 29607 WARNING: lib not found: libgobject-2.0-0.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\lib\gstplayer\_gstplayer.cp37-win32.pyd 29692 WARNING: lib not found: libglib-2.0-0.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\lib\gstplayer\_gstplayer.cp37-win32.pyd 29770 WARNING: lib not found: libgstreamer-1.0-0.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\lib\gstplayer\_gstplayer.cp37-win32.pyd 36466 WARNING: lib not found: glew32.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\graphics\cgl_backend\cgl_gl.cp37-win32.pyd 37692 WARNING: lib not found: SDL2.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\clipboard\_clipboard_sdl2.cp37-win32.pyd 38029 WARNING: lib not found: SDL2.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\graphics\cgl_backend\cgl_sdl2.cp37-win32.pyd 38667 WARNING: lib not found: SDL2_mixer.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\audio\audio_sdl2.cp37-win32.pyd 38994 WARNING: lib not found: SDL2.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\audio\audio_sdl2.cp37-win32.pyd 39329 WARNING: lib not found: SDL2_image.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\image\_img_sdl2.cp37-win32.pyd 39408 WARNING: lib not found: SDL2.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\core\image\_img_sdl2.cp37-win32.pyd 42204 WARNING: lib not found: glew32.dll dependency of c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\kivy\graphics\cgl_backend\cgl_glew.cp37-win32.pyd 46290 WARNING: lib not found: api-ms-win-core-file-l2-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 46419 WARNING: lib not found: api-ms-win-core-util-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 46548 WARNING: lib not found: api-ms-win-core-errorhandling-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 46674 WARNING: lib not found: api-ms-win-core-namedpipe-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 46801 WARNING: lib not found: api-ms-win-core-memory-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 46927 WARNING: lib not found: api-ms-win-core-handle-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 47053 WARNING: lib not found: api-ms-win-core-file-l1-2-0.dll dependency of C:\Windows\system32\ucrtbase.dll 47179 WARNING: lib not found: api-ms-win-core-rtlsupport-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 47306 WARNING: lib not found: api-ms-win-core-timezone-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 47430 WARNING: lib not found: api-ms-win-core-synch-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 47557 WARNING: lib not found: api-ms-win-core-processthreads-l1-1-1.dll dependency of C:\Windows\system32\ucrtbase.dll 47683 WARNING: lib not found: api-ms-win-core-processenvironment-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 47809 WARNING: lib not found: api-ms-win-core-profile-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 47934 WARNING: lib not found: api-ms-win-core-file-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 48059 WARNING: lib not found: api-ms-win-core-debug-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 48186 WARNING: lib not found: api-ms-win-core-console-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 48314 WARNING: lib not found: api-ms-win-core-processthreads-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 48439 WARNING: lib not found: api-ms-win-core-sysinfo-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 48566 WARNING: lib not found: api-ms-win-core-heap-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 48692 WARNING: lib not found: api-ms-win-core-datetime-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 48819 WARNING: lib not found: api-ms-win-core-interlocked-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 48944 WARNING: lib not found: api-ms-win-core-libraryloader-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 49076 WARNING: lib not found: api-ms-win-core-string-l1-1-0.dll dependency of C:\Windows\system32\ucrtbase.dll 49203 WARNING: lib not found: api-ms-win-core-synch-l1-2-0.dll dependency of C:\Windows\system32\ucrtbase.dll 49335 WARNING: lib not found: api-ms-win-core-localization-l1-2-0.dll dependency of C:\Windows\system32\ucrtbase.dll 49383 INFO: Looking for eggs 49383 INFO: Using Python library c:\users\usuario\appdata\local\programs\python\python37-32\python37.dll 49384 INFO: Found binding redirects: [] 49395 INFO: Warnings written to D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\main\warn-main.txt 49580 INFO: Graph cross-reference written to D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\main\xref-main.html 49628 INFO: checking PYZ 49628 INFO: Building PYZ because PYZ-00.toc is non existent 49629 INFO: Building PYZ (ZlibArchive) D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\main\PYZ-00.pyz 51603 INFO: Building PYZ (ZlibArchive) D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\main\PYZ-00.pyz completed successfully. 51643 INFO: checking PKG 51643 INFO: Building PKG because PKG-00.toc is non existent 51644 INFO: Building PKG (CArchive) PKG-00.pkg 51664 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully. 51666 INFO: Bootloader c:\users\usuario\appdata\local\programs\python\python37-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe 51666 INFO: checking EXE 51666 INFO: Building EXE because EXE-00.toc is non existent 51667 INFO: Building EXE from EXE-00.toc 51667 INFO: Appending archive to EXE D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\main\main.exe 51673 INFO: Building EXE from EXE-00.toc completed successfully. 51675 INFO: checking COLLECT 51676 INFO: Building COLLECT because COLLECT-00.toc is non existent 51676 INFO: Building COLLECT COLLECT-00.toc 52869 INFO: Building COLLECT COLLECT-00.toc completed successfully. ```

If I add kivy._clock and kivy.weakmethod to setup.py (in options = {'plugins': [..., 'kivy._clock', 'kivy.weakmethod']}), the result is the same. I get missing dll warnings I don't know why I was using that interpreter, now I changed the base interpreter of my venv to to C:\Panda3D-1.10.6-x64\python\python.exe

warning: build_apps: ``` There are some missing modules: ['Leap', 'Numeric', 'PyQt5.QtCore', 'PyQt5.QtGui', 'PySide2.QtCore', 'PySide2.QtGui', 'StringIO', '__builtin__', '__svn_version__', '_curses', '_posixsubprocess', '_scproxy', '_uuid', 'android', 'backpor ts.ssl_match_hostname', 'cffi', 'collections.Iterable', 'collections.MutableMapping', 'com.sun', 'com.sun.jna', 'com.sun.jna.platform', 'compat.long', 'compat.unicode', 'core.abs', 'core.max', 'core.min', 'core.round', 'dummy.Process', 'grp', 'ios', 'jnius', 'kivy.core.text._text_pango', 'multiprocessing.AuthenticationError', 'multiprocessing.BufferTooShort', 'multiprocessing.Event', 'multiprocessing.TimeoutError', 'multiprocessing.get_context', 'multiprocessing.get _start_method', 'multiprocessing.set_start_method', 'nose', 'nose.plugins', 'nose.plugins.base', 'nose.plugins.builtin', 'nose.plugins.errorclass', 'nose.util', 'numarray', 'numpy.amax', 'numpy.amin', 'numpy.array', 'numpy.bool_', 'num py.compat.asbytes', 'numpy.compat.asstr', 'numpy.compat.asunicode', 'numpy.compat.bytes', 'numpy.compat.contextlib_nullcontext', 'numpy.compat.integer_types', 'numpy.compat.is_pathlib_path', 'numpy.compat.isfileobj', 'numpy.compat.long ', 'numpy.compat.npy_load_module', 'numpy.compat.open_latin1', 'numpy.compat.os_PathLike', 'numpy.compat.os_fspath', 'numpy.compat.pickle', 'numpy.compat.unicode', 'numpy.core.Inf', 'numpy.core.add', 'numpy.core.all', 'numpy.core.amax' , 'numpy.core.amin', 'numpy.core.arange', 'numpy.core.argsort', 'numpy.core.array', 'numpy.core.array2string', 'numpy.core.array_repr', 'numpy.core.asanyarray', 'numpy.core.asarray', 'numpy.core.atleast_1d', 'numpy.core.atleast_2d', 'n umpy.core.atleast_3d', 'numpy.core.bool_', 'numpy.core.cdouble', 'numpy.core.complexfloating', 'numpy.core.conjugate', 'numpy.core.count_nonzero', 'numpy.core.csingle', 'numpy.core.divide', 'numpy.core.dot', 'numpy.core.double', 'numpy .core.dtype', 'numpy.core.empty', 'numpy.core.empty_like', 'numpy.core.errstate', 'numpy.core.fastCopyAndTranspose', 'numpy.core.finfo', 'numpy.core.float32', 'numpy.core.float_', 'numpy.core.geterrobj', 'numpy.core.hstack', 'numpy.cor e.iinfo', 'numpy.core.inexact', 'numpy.core.inf', 'numpy.core.intc', 'numpy.core.integer', 'numpy.core.intp', 'numpy.core.isfinite', 'numpy.core.isinf', 'numpy.core.isnan', 'numpy.core.isnat', 'numpy.core.isscalar', 'numpy.core.linspac e', 'numpy.core.matmul', 'numpy.core.moveaxis', 'numpy.core.multiply', 'numpy.core.ndarray', 'numpy.core.newaxis', 'numpy.core.number', 'numpy.core.object_', 'numpy.core.ones', 'numpy.core.product', 'numpy.core.result_type', 'numpy.cor e.roll', 'numpy.core.sign', 'numpy.core.signbit', 'numpy.core.single', 'numpy.core.sort', 'numpy.core.sqrt', 'numpy.core.sum', 'numpy.core.swapaxes', 'numpy.core.take', 'numpy.core.transpose', 'numpy.core.ufunc', 'numpy.core.vstack', ' numpy.core.zeros', 'numpy.deprecate', 'numpy.dtype', 'numpy.expand_dims', 'numpy.eye', 'numpy.frombuffer', 'numpy.histogramdd', 'numpy.integer', 'numpy.intp', 'numpy.iscomplexobj', 'numpy.lib.i0', 'numpy.lib.imag', 'numpy.lib.iscomplex obj', 'numpy.lib.real', 'numpy.linalg.eigvals', 'numpy.linalg.inv', 'numpy.linalg.lstsq', 'numpy.linalg.matrix_power', 'numpy.ma.MAError', 'numpy.ma.MaskedArray', 'numpy.ma.filled', 'numpy.ma.getdata', 'numpy.ma.getmaskarray', 'numpy.m a.make_mask_descr', 'numpy.ma.masked', 'numpy.ma.masked_array', 'numpy.ma.nomask', 'numpy.matrix', 'numpy.ndarray', 'numpy.recarray', 'numpy.testing.IS_PYPY', 'numpy.testing.jiffies', 'numpy.testing.memusage', 'numpy_distutils', 'numpy _distutils.command.build_flib', 'numpy_distutils.command.cpuinfo', 'numpy_distutils.cpuinfo', 'numpy_distutils.fcompiler', 'ordereddict', 'org.python.modules.posix.PosixModule', 'oscpy.server', 'pickle5', 'pkg_resources.extern.appdirs' , 'pkg_resources.extern.packaging', 'pkg_resources.extern.six', 'pkg_resources.extern.six.moves', 'psutil', 'pygame', 'pygame.joystick', 'pytest', 'scipy', 'setuptools.extern.ordered_set', 'setuptools.extern.packaging', 'setuptools.ext ern.packaging.specifiers', 'setuptools.extern.packaging.tags', 'setuptools.extern.packaging.utils', 'setuptools.extern.packaging.version', 'setuptools.extern.six', 'setuptools.extern.six.moves', 'setuptools.extern.six.moves.configparse r', 'sitecustomize', 'smb.SMBHandler', 'testing.Tester', 'urllib2', 'win32com.gen_py', 'win32com.shell', 'wincertstore'] warning: build_apps: could not find dependency VERSION.dll (referenced by python37.dll) warning: build_apps: could not find dependency VCRUNTIME140.dll (referenced by python37.dll) warning: build_apps: could not find dependency VCRUNTIME140.dll (referenced by deploy-stubw.exe) warning: build_apps: could not find dependency SETUPAPI.dll (referenced by libpanda.dll) warning: build_apps: could not find dependency NETAPI32.dll (referenced by win32wnet.pyd) warning: build_apps: could not find dependency MPR.dll (referenced by win32wnet.pyd) warning: build_apps: could not find dependency pywintypes37.dll (referenced by win32wnet.pyd) warning: build_apps: could not find dependency CRYPT32.dll (referenced by _ssl.pyd) warning: build_apps: could not find dependency bcrypt.dll (referenced by libcrypto-1_1.dll) warning: build_apps: could not find dependency VERSION.dll (referenced by win32api.pyd) warning: build_apps: could not find dependency MSWSOCK.dll (referenced by win32file.pyd) ```
output.log ``` [ERROR ] [Core ] error while reading localconfiguration Traceback (most recent call last): File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\Kivy-1.11.1-cp37-cp37m-win_amd64.whl\kivy\config.py", line 703, in File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\Kivy-1.11.1-cp37-cp37m-win_amd64.whl\kivy\config.py", line 469, in read File "C:\Panda3D-1.10.6-x64\python\lib\ConfigParser.py", line 857, in items File "C:\Panda3D-1.10.6-x64\python\lib\ConfigParser.py", line 857, in File "C:\Panda3D-1.10.6-x64\python\lib\ConfigParser.py", line 854, in File "C:\Panda3D-1.10.6-x64\python\lib\ConfigParser.py", line 394, in before_get File "C:\Panda3D-1.10.6-x64\python\lib\ConfigParser.py", line 444, in _interpolate_some ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%y-%m-%d_%_.txt' [ERROR ] Error while activating FileHandler logger Traceback (most recent call last): File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\Kivy-1.11.1-cp37-cp37m-win_amd64.whl\kivy\logger.py", line 234, in emit File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\Kivy-1.11.1-cp37-cp37m-win_amd64.whl\kivy\logger.py", line 165, in _configure File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\Kivy-1.11.1-cp37-cp37m-win_amd64.whl\kivy\config.py", line 501, in get File "C:\Panda3D-1.10.6-x64\python\lib\ConfigParser.py", line 799, in get File "C:\Panda3D-1.10.6-x64\python\lib\ConfigParser.py", line 394, in before_get File "C:\Panda3D-1.10.6-x64\python\lib\ConfigParser.py", line 444, in _interpolate_some ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%y-%m-%d_%_.txt' [INFO ] [Kivy ] v1.11.1 [INFO ] [Kivy ] Installed at "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\win_amd64\CalculoUTN.exe" [INFO ] [Python ] v3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)] [INFO ] [Python ] Interpreter at "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\win_amd64\CalculoUTN.exe" [ERROR ] [Clock ] Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? Kivy contains Cython code which needs to be compiled. A missing kivy._clock often indicates the Cython code has not been compiled. Please follow the installation instructions and make sure to compile Kivy Traceback (most recent call last): File "main.py", line 5, in File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\app\user_interface\main_ui.py", line 1, in from panda3d_kivy.app import App File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\panda3d_kivy-0.1.2-py3-none-any.whl\panda3d_kivy\app.py", line 2, in File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\panda3d_kivy-0.1.2-py3-none-any.whl\panda3d_kivy\core\window.py", line 5, in File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\Kivy-1.11.1-cp37-cp37m-win_amd64.whl\kivy\app.py", line 319, in File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\Kivy-1.11.1-cp37-cp37m-win_amd64.whl\kivy\base.py", line 26, in File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "D:\Bibliotecas\Documentos\Python 3\UTN\Calculo-UTN-FRP\build\__whl_cache__\win_amd64_cp37m\Kivy-1.11.1-cp37-cp37m-win_amd64.whl\kivy\clock.py", line 363, in File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 967, in _find_and_load_unlocked module = _load_unlocked(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 819, in exec_module exec(code, module.__dict__) File "kivy._clock", line 1, in File "C:\Panda3D-1.10.6-x64\python\lib\imp.py", line 342, in load_dynamic return _load(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 696, in _load return _load_unlocked(spec) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 677, in _load_unlocked spec.loader.exec_module(module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap_external.py", line 1050, in exec_module _bootstrap._call_with_frames_removed(_imp.exec_dynamic, module) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 219, in _call_with_frames_removed return f(*args, **kwds) File "kivy\_clock.pyx", line 9, in init kivy._clock File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 983, in _find_and_load return _find_and_load_unlocked(name, import_) File "C:\Panda3D-1.10.6-x64\python\lib\importlib\_bootstrap.py", line 965, in _find_and_load_unlocked raise ModuleNotFoundError(_ERR_MSG.format(name), name=name) ModuleNotFoundError: No module named 'kivy.weakmethod' ```
Cheaterman commented 4 years ago

Yeah, I'm not that surprised. Kivy's officially supported packaging system is pyinstaller, while as rdb noted Panda3D has their own method to freeze executables. There might be issues in each framework when using the other's packaging system :-/

On that note, I suspect it might be easier to tweak Kivy into behaving with Panda's system, rather than the other way around - probably less work to do overall (Kivy being the smaller of the two).

Moguri commented 4 years ago

Looks like Kivy provides some useful hooks for this kind of thing that PyInstaller is also making use of: https://github.com/pyinstaller/pyinstaller/blob/develop/PyInstaller/hooks/hook-kivy.py.

You can try adding these hidden imports to your setup.py:

import kivy.tools.packaging.pyinstaller_hooks as kivy_hooks

...

setup(
  ...
  options: {
    'build_apps': {
      ...
      include_modules = [
        ...
      ] + kivy_hooks.get_deps_all()['hiddenimports'] + list(set(
        kivy_hooks.get_factory_modules() + kivy_hooks.kivy_modules + kivy_hooks.hiddenimports
      ))
    }
  }
)
FrancoTonutti commented 4 years ago

I tried, but kivy_hooks.hiddenimports raises an attribute error AttributeError: module 'kivy.tools.packaging.pyinstaller_hooks' has no attribute 'hiddenimports'

So I tried this setup.py, however it doesn't work, I get the same output.log and the same warnings

from setuptools import setup
import kivy.tools.packaging.pyinstaller_hooks as kivy_hooks

setup(
    name="CalculoUTN",
    options={
        'build_apps': {
            'include_patterns': [
                '**/*.png',
                '**/*.jpg',
                '**/*.egg',
            ],
            'console_apps': {
                'CalculoUTN': 'main.py',
            },
            'platforms': [
                'win_amd64'
            ],
            'log_filename': '$USER_APPDATA/CalculoUTN/output.log',
            'log_append': False,
            'plugins': [
                'pandagl',
                'Kivy',
                'Pillow',
                'panda3d_kivy',
                'Kivy-Garden',
                'kivy-deps.glew',
                'kivy-deps.sdl2',
                'pywin32',
                'numpy'

            ],
            'include_modules': ['kivy._clock', 'kivy.weakmethod'] + kivy_hooks.get_deps_all()['hiddenimports'] + list(set(
                kivy_hooks.get_factory_modules() + kivy_hooks.kivy_modules

                ))
        }
    }
)
Cheaterman commented 4 years ago

I feel like you're on the right track, do keep us in touch if you find anything 🙂

Cheaterman commented 3 years ago

Let's keep this issue open for whoever makes progress on packaging for desktop OSes - I changed the title accordingly. Thanks in advance :-)