Windows - can not import kivy after installation
See original GitHub issueI installed Kivy as mentioned in the docs.
Then I imported it and got this error, see the gist
ValueError: invalid interpolation syntax in 'kivy_%y-%m-%d_%h_.txt' at position 5
I was able to fix it by changing the line in config.py
from
Config.setdefault('kivy', 'log_name', 'kivy_%y-%m-%d_%_.txt')
to
Config.setdefault('kivy', 'log_name', 'kivy_%%y-%%m-%%d_%%_.txt')
It worked afterwards, see gist
Also, I noticed that the double %% were in the config.ini file. This change brought more consistiency in my eyes.
Pull-request incoming.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
I can't import kivy in python - Stack Overflow
kivy was installed according to the documentation. After installing kivy I can't import it as I get this error ImportError: No module named...
Read more >Installation on Windows — Kivy 1.10.1 documentation
Ensure you have the latest pip and wheel: python -m pip install --upgrade pip wheel setuptools · Install the dependencies (skip gstreamer (~120MB)...
Read more >Can't install Kivy On Windows - Google Groups
Third: I was successful with building exe under Windows only after creating clean venv and installing only needed libraries inside, according to https://kivy....
Read more >No module named 'kivy'' in Python 3 - Quora
Install kivy using your preferred Python 3 package manager into the current Python environment. Either you don't have kivy installed, or it is...
Read more >How to install the Kivy module in Python? - Educative.io
0 module using pip in Python 3.8+. To start, I highly recommend creating a virtual environment before each use of Kivy. The reason...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@niccokunzmann Try installing non-admin with KivyInstaller, so that it won’t leave dirt in your system. Although I use 3.4.4 if I have to, it shouldn’t be problem to set the version in the batch. You should be able to call
idle
from the batch after installation. I’ve never experienced this issue and for all py2 and py3 win versions it works for me. Delete the folder if you don’t want it after the checking.If it works with the installer, problem is your installation, not kivy.
@KeyWeeUsr This works for me. Now I can stop installing and start creating applications with kivy.