import kivyfrom kivy.app import Appfrom kivy.uix.label import Label
class MyApp(App): def build(self): return Label(text="tech with tim")
if __name__ == "__main__": MyApp().run()
[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 causessdl2 - ImportError: DLL load failed: The specified module could not be found. File "C:\Users\JordonMMG\AppData\Roaming\Python\Python37\site-packages\kivy\core\__init__.py", line 63, in core_select_lib fromlist=[modulename], level=0) File "C:\Users\JordonMMG\AppData\Roaming\Python\Python37\site-packages\kivy\core\window\window_sdl2.py", line 27, in <module> from kivy.core.window._window_sdl2 import _WindowSDL2Storage
[CRITICAL] [App ] Unable to get a Window, abort.from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='Hello World')
TestApp().run()
Traceback (most recent call last):
File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python37\Scripts\pip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callablepip listpython -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.1.22 kivy_deps.glew==0.1.12
python -m pip install kivy_deps.gstreamer==0.1.17
C:\Users\JordonMMG>pip listTraceback (most recent call last): File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\program files\python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Program Files\Python37\Scripts\pip.exe\__main__.py", line 9, in <module>TypeError: 'module' object is not callablepython -m pip install --upgrade pip wheel setuptools virtualenv
The issue is I think only about Kivy because Kivy install asks for the versions of other tools to be current. Kivy is not installed.
This I suspect a Python/pip install issue, but what?
No offense intended, but the question I need to ask myself is what might a noob do? ;)
Did you close and open the Command Prompt after installing Python?
My friend Google showed me some similar history, but not a resolution.
https://github.com/pypa/pip/issues/2824
There is a Linux example https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main
Is it possible Python was ever installed with Admin privilege?
Personally I have never used that line in the instructions.
Because I don't use virtualenv, and I keep pip current whenever pip tells me to using pip's instructions.
You could try (after uninstall and install Python 3.7) the pip install and upgrade pip on its own first.
python -m pip install --upgrade pip
C:\Users\YOU\AppData\Local\Programs\Python\Python37\Scripts\
C:\Users\YOU\AppData\Local\Programs\Python\Python37\Looks like you might have python installed in 2 places, at least you have env variables pointing in 2 places…
One is your user directory C:\Users…
And the other is your Program Files… C:\Program Files…
On my Windows System I have Python installed at c:\Users…
NOT at C:\Program Files
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/67d0b124-82cb-498f-bd6c-6fd33ad47017%40googlegroups.com.
Looks like you might have python installed in 2 places, at least you have env variables pointing in 2 places…
One is your user directory C:\Users…
And the other is your Program Files… C:\Program Files…
On my Windows System I have Python installed at c:\Users…
NOT at C:\Program Files
From: JordonMMG
Sent: Wednesday, November 20, 2019 10:28 PM
To: Kivy users support
Subject: [kivy-users] Re: sdl2 error - dll load failed
I only have one login for the account, not sure how to view for admin other than what i see for my user account. The first one is for the top box, the second one is from the bottom box. If you're asking if these are removed when I do the uninstallation, I haven't even tried to check these. I can give it a whirl after I post this. I do recall seeing a post where someone suggested that the folder ending in a slash could be causing problems.
Here is the pip list image:
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
Should i be concerned about the warnings despite it working?
my not having CMD in the kivy_env i think may have been part of the problem as well.