question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows - can not import kivy after installation

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
KeyWeeUsrcommented, Jul 1, 2016

@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.

0reactions
niccokunzmanncommented, Jul 4, 2016

@KeyWeeUsr This works for me. Now I can stop installing and start creating applications with kivy.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found