Kivy: Unable to install kivy.deps.sdl2 kivy.deps.glew to use with pyinstaller

Created on 25 Sep 2018  Â·  4Comments  Â·  Source: kivy/kivy

Versions

Description

I am trying to use pyinstaller to build an executable inside a docker container. I can get pyinstaller to make an executable, but the package is missing the SDL binaries it needs to run.

The docs say to use:

from kivy.deps import sdl2, glew

and

coll = COLLECT(exe, Tree('examples-path\\demo\\touchtracer\\'),
               a.binaries,
               a.zipfiles,
               a.datas,
               *[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
               strip=False,
               upx=True,
               name='touchtracer')

but I get this when trying to install those dependencies

pi@raspberrypi:~/ $ sudo pip install kivy.deps.sdl2
Collecting kivy.deps.sdl2
  Could not find a version that satisfies the requirement kivy.deps.sdl2 (from versions: )
No matching distribution found for kivy.deps.sdl2

These packages are available in pip search though

kivy.deps.angle (0.1.7)           - Repackaged binary dependency of Kivy.
kivy.deps.glew (0.1.10)           - Repackaged binary dependency of Kivy.
kivy.deps.glew_dev (0.1.10)       - Repackaged binary dependency of Kivy.
kivy.deps.gstreamer (0.1.13)      - Repackaged binary dependency of Kivy.
kivy.deps.gstreamer_dev (0.1.13)  - Repackaged binary dependency of Kivy.
kivy.deps.sdl2 (0.1.18)           - Repackaged binary dependency of Kivy.
kivy.deps.sdl2_dev (0.1.18)       - Repackaged binary dependency of Kivy.

When running:

[INFO   ] [Logger      ] Record log in /usr/src/app/logs/kivy_18-09-25_0.txt
[INFO   ] [Kivy        ] v1.11.0.dev0, git-42c0a90, 20180925
[INFO   ] [Python      ] v2.7.13 (default, Nov 24 2017, 17:33:09) 
[GCC 6.3.0 20170516]
[INFO   ] [Factory     ] 195 symbols loaded
[INFO   ] [Image       ] Providers:  (img_tex, img_dds, img_ffpyplayer, img_gif, img_pil, img_sdl2 ignored)
[CRITICAL] [App         ] Unable to get any Image provider, abort.
[INFO   ] [Logger      ] Record log in /usr/src/app/logs/kivy_18-09-25_1.txt
[INFO   ] [Kivy        ] v1.11.0.dev0, git-42c0a90, 20180925
[INFO   ] [Python      ] v2.7.13 (default, Nov 24 2017, 17:33:09) 
[GCC 6.3.0 20170516]

I will note that if I install all the kivy dependencies and run my app like normal inside the docker container, everything works fine.

support

Most helpful comment

Kivy.deps.xxx are only used in windows and those pyinstaller guides you followed were for windows, not linux.

All 4 comments

Kivy.deps.xxx are only used in windows and those pyinstaller guides you followed were for windows, not linux.

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing Kivy, make sure to check out the installation docs for Windows, Linux and macOS.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

try to install
pip3 install kivy-deps.glew
pip3 install kivy-deps.sdl2

or
pip install kivy-deps.glew
pip install kivy-deps.sdl2

The same here. Coudn't install.

[image: Mailtrack]
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&
Remetente
notificado por
Mailtrack
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&
15/09/20
17:57:22

Em ter., 15 de set. de 2020 às 16:45, cristianmejiaarias <
[email protected]> escreveu:

try to install
pip3 install kivy-deps.glew
pip3 install kivy-deps.sdl2

or
pip install kivy-deps.glew
pip install kivy-deps.sdl2

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kivy/kivy/issues/5944#issuecomment-692939183, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AQT5FCXRJZ2O5MHBWFQ7YK3SF676VANCNFSM4FW7ZFYQ
.

Was this page helpful?
0 / 5 - 0 ratings