Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
First of all what version of kivy are you using and how did you import it in the first place? game/python-packages/kivy/__init__.py and finding the line starting with
make sure that the file game/python-packages/kivy/app.py is not corrupted and contains the correct definition of the App class. You can check this by opening the file in a text editor and making sure it contains the line class App(EventDispatcher):.
try deleting the file game/python-packages/kivy/__pycache__/app.cpython-*.pyc if it exists. This file may contain compiled code that is causing the import error, and deleting it may help fix the problem.
Andredron wrote: ↑Sun Mar 31, 2024 11:20 am
First of all what version of kivy are you using and how did you import it in the first place? game/python-packages/kivy/__init__.py and finding the line starting with
make sure that the file game/python-packages/kivy/app.py is not corrupted and contains the correct definition of the App class. You can check this by opening the file in a text editor and making sure it contains the line class App(EventDispatcher):.
try deleting the file game/python-packages/kivy/__pycache__/app.cpython-*.pyc if it exists. This file may contain compiled code that is causing the import error, and deleting it may help fix the problem.
but I didn't find line contains __version__ = in __init__.py
Then I can't help you, because it's not clear how you imported kivy into renpy, maybe you are trying to import the latest kivy in renpy version of python 2.7, which doesn't support ancient python, and vice versa.
As Mr. Python rightly pointed out, kivy and renpy are a huge hassle to merge, I'm speaking as someone who tried to port kivy before renpy with python 3.10 support was available