Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Ubuntu wacky error on kivy import

43 views
Skip to first unread message

Alan Etkin

unread,
Mar 31, 2025, 8:36:00 PMMar 31
to Kivy users support
Hi everyone

I'm starting to test kivy, I'm a complete beginner. When I try to import kivy on a Python Interpreter it logs this

(kivy_venv) alan@alan-MS-7721:~/kivy_venv/lib/python3.12$ python
Python 3.12.3 (main, Feb  4 2025, 14:48:35) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
[ERROR  ] Error when copying logo directory
Traceback (most recent call last):
  File "/home/alan/kivy_venv/lib/python3.12/site-packages/kivy/__init__.py", line 372, in <module>
    shutil.copytree(join(kivy_data_dir, 'logo'), icon_dir)
  File "/usr/lib/python3.12/shutil.py", line 598, in copytree
    with os.scandir(src) as itr:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/alan/kivy_venv/lib/python3.12/site-packages/kivy/data/logo'
[INFO   ] [Logger      ] Record log in /home/alan/.kivy/logs/kivy_25-03-31_1.txt
[INFO   ] [Kivy        ] v2.3.1
[INFO   ] [Kivy        ] Installed at "/home/alan/kivy_venv/lib/python3.12/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.12.3 (main, Feb  4 2025, 14:48:35) [GCC 13.3.0]
[INFO   ] [Python      ] Interpreter at "/home/alan/kivy_venv/bin/python"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
>>>

OS: Ubuntu 24.04.2 LTS
I think I installed precompiled wheels with this instructions https://kivy.org/doc/stable/gettingstarted/installation.html#pre-compiled-wheels

There is no reference on the web about this issue. Any help apreciated

Alan Etkin

ElliotG

unread,
Mar 31, 2025, 8:42:10 PMMar 31
to Kivy users support
You can't run kivy from the REPL.   Open a file write your code, then execute the code.
Message has been deleted

Alan Etkin

unread,
Apr 1, 2025, 1:30:11 PMApr 1
to Kivy users support
Thank you! Executed the pong example and it worked. What is the reason you can't pass code to the interpreter?

Alan

elli...@cox.net

unread,
Apr 1, 2025, 7:26:09 PMApr 1
to kivy-...@googlegroups.com
There is a difference between the REPL and the interpreter.  
The REPL is for executing code line by line.  Kivy, at its core has an event loop.  The event loop is what runs when you call App.run().  The loop is waiting for events and then calling into your code.   The REPL does not allow the loop to run.

The event loop is described here: https://kivy.org/doc/stable/guide/events.html



From: kivy-...@googlegroups.com <kivy-...@googlegroups.com> on behalf of Alan Etkin <spam...@gmail.com>
Sent: Tuesday, April 1, 2025 10:30 AM
To: Kivy users support <kivy-...@googlegroups.com>
Subject: [kivy-users] Re: Ubuntu wacky error on kivy import
 
--
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 visit https://groups.google.com/d/msgid/kivy-users/63605397-6e1c-4447-b243-2f8b7ca8a511n%40googlegroups.com.

Norbert Omangelo

unread,
Apr 3, 2025, 5:29:46 PMApr 3
to Kivy users support

j'ai une question ?

ElliotG

unread,
Apr 3, 2025, 5:32:06 PMApr 3
to Kivy users support
Just ask your question.  If it is not related to this thread, I would request you start a new conversation. 
Reply all
Reply to author
Forward
0 new messages