V
V
VadimTolk2018-06-02 09:57:21
Python
VadimTolk, 2018-06-02 09:57:21

Error when running script in PyCharm (Kivy). What to do?

Hello.
When you run this code:

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='Hello World')
TestApp().run()

An error is thrown like this:
[WARNING] [Config ] Older configuration version detected (19 instead of 20)
[WARNING] [Config ] Upgrading configuration in progress.
[INFO ] [Logger ] Record log in C:\Users\user\.kivy\logs\kivy_18-06-02_2.txt
[ERROR ] [Unable to write the config
Traceback (most recent call last):
File "D:\ PythonLessons\venv\lib\site-packages\kivy\config.py", line 530, in write
with open(self.filename, 'w') as fd:
PermissionError: [Errno 13] Permission denied: 'C:\\ Users\\user\\.kivy\\config.ini'
What should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-06-02
@dimonchik2013

The easiest way to unlock
Permission denied: 'C:\\Users\\user\\.kivy\\config.ini'
is to close the sarm and update from the console

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question