-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find any valuable Window provider at all! #3957
Comments
@matham ping. 👅 |
There's not enough information here to understand what the issue is, especially without a traceback of the issue and full detail on how it was installed. For example, what does it means that the system PATH does not contain sdl2 dlls? Why should it? It's automatically added to the path when kivy is imported.if kivy.deps.sdl2 was installed. gstreamer should be unrelated to sdl2 and adding it to the path should not affect this. |
Hi [INFO ] Kivy: v1.9.2-dev0 [CRITICAL ] App: Unable to get a Window, abort. I have noticed that default.png can't be loaded Little bit googling and I found info that sdl2 can't load libpng16-16.dll bacause can't find it I found libpng16-16.dll in C:\Python27\share\gstreamer\bin Now the most mystery - on my second laptop I didn't add C:\Python27\share\gstreamer\bin to the path and everything works properly - can't explain that. This looks pretty similar: |
On the computer that doesn't work, have you ever used kivy before? If so, have you changed the system paths? The wheels may not work if you have previous dlls on the PATH. You have to make sure that the PATH is clean with no python/kivy stuff added to it or at least no previous kivy dlls is on the path. Then it should work. If it still doesn't work, can you completely uninstall kivy and all the deps and then reinstall? But tell us the exact command you use to install. Infact, can you post the result of running the following code:
|
Don't know
Don't know Bacause of my answers I decided to fully reinstal kivy but before I run requested program:
Then I uninstall kivy:
But problem remains but with different callstack
|
From the pip output:
It says that sdl2 and glew were already installed. You probably had an older version. Make sure you remove these as well, i.e. all the kivy.deps.* packages and then reinstall. |
I had a problem during instalation of kivy.deps.gstreamer twice. Now I did following: manual remove (don't know If I should) after that my windows search didn't find kivy at all pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew kivy.deps.gstreamer --extra-index-url https://kivy.org/downloads/package pip install kivy known result: Sorry but I can't remove kivy better it is too complex for me at this stage |
Well, at this point it should work, and I'm not aware of other systems with similar issues using the latest deps. The only possibilities that I can think for causing this is that you have some leftover dlls from a previous portable kivy package. Otherwise, I'm not sure. If you want to try a few things, can you post the output of: import os
for f in os.environ['PATH'].split(';'):
print f
import kivy
for f in os.environ['PATH'].split(';'):
print f That should tell us if the PATH is messed up and has locations that should not be there or if the deps are adding the wrong paths. Ideally, we'd see that share/sdl2/bin and share/glew/bin are added to the path after the import. The best tool to investigate this kind of problem is dependency walker. That will tell you exactly which dll it cannot find, if you're willing to investigate further. To use it, make sure you start it from a env which has the same PATH as the one that runs python after the kivy import. I.e. from python Now, from the file menu there browse to the kivy installation and select the kivy/graphics/texture.pyd file. After a moment the program will tell you which dlls are missing etc. Save the report and upload it as a gist. |
due to lack of time I made just one PATH test. in cmd I cleanup my huge sys PATH
|
In that case I'll close it, because it's something wrong with the PATH on that system. Your original PATH likely included a location with old sdl2/gstreamer dlls which caused this. Cleaning the PATH should fix this. |
If you want me to continue investigation we have to wait because I am out If you think that prb exist only with my PC then close issue to not waste
|
Well, if it's a problem with e.g. git, which is a common program and not specific to your system, it's worth to investigate more. However, so far we haven't gotten similar issues from other people. So if you have time, sure, investigate further. Where did you get git from? |
Git 99% comes from official download page. 2016-02-12 20:22 GMT+01:00 matham notifications@github.com:
|
Ok, great! |
Hi, here is my gist git causing problems
|
In windows if i rename libz.dll in "C:\Program Files (x86)\git\bin;" or completely remove that dir from PATH it works fine. |
I have the same problem in Windows 7 with another program. It is gnuwin32. The dll zlib1.dll in the path under gnuwin32/bin stop kivy. I must remove/rename the dll library or change the path. |
Hi
I have installed kivy on two PCs (Win7, python2.7) folowing https://kivy.org/docs/installation/installation-windows.html instructions.
On first one no problem to run examples but I have been fighting with second one for over 4 hours.
Problem is that after kivy installation my sys path does not contain path to any SDL2 dlls required to load *.png
I have added C:\Python27\share\gstreamer\bin to sys path and now is ok.
I am reporting it as crucial problem because it could easly alienate potential users
The text was updated successfully, but these errors were encountered: