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.

No module named kivy.setupconfig

See original GitHub issue

Hi,

When installing Kivy 1.9.1 as a dependency of one of my packages I get the error ImportError: No module named 'kivy.setupconfig.

My setup.py file looks like this and installs without errors:

from setuptools import setup
CYTHON_REQ = "cython==0.23.4"
setup(
    name = 'MyApp',
    version = "0.1.0",
    author = "MelleB",
    setup_requires = [ CYTHON_REQ ],
    install_requires = [ CYTHON_REQ, 'kivy==1.9.1' ]
)

During the build, the following line is displayed: Updated /tmp/easy_install-4drozlb6/kivy-1.9.1/kivy/setupconfig.py

After digging into kivy’s setup.py, I noticed the setupconfig.py file is generated. From my understanding it seems the setupconfig.py isn’t part of the mItanifest.

A possible solution might be to add a ‘setupconfig.py’ entry to the setup’s package_data (In https://github.com/kivy/kivy/blob/fddade6ce3b8a3be77d22cd3f973c9c930799874/setup.py#L959)

I found a possibliy related bug + PR in #2850

Environment

Platform: Ubuntu 16.04LTS Kivy: 1.9.1 Python: 3.5.1

Steps to reproduce

$ pyenv intall 3.5.1
$ pyenv virtualenv 3.5.1 kivy-setupconfig-issue
$ mkdir kivy-setupconfig-issue && cd kivy-setupconfig-issue
$ pyenv local kivy-setupconfig-issue
$ cat > setup.py
from setuptools import setup
CYTHON_REQ = "cython==0.23.4"
setup(
    name = 'MyApp',
    version = "0.1.0",
    author = "MelleB",
    setup_requires = [ CYTHON_REQ ],
    install_requires = [ CYTHON_REQ, 'kivy==1.9.1' ]
)

$ python setup.py install

After that, the issue can be confirmed with:

$ python
Python 3.5.1 (default, May 30 2016, 14:49:00) 
[GCC 5.3.1 20160413] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
[INFO              ] [Logger      ] Record log in /home/melle/.kivy/logs/kivy_16-06-02_1.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v3.5.1 (default, May 30 2016, 14:49:00) 
[GCC 5.3.1 20160413]
>>> import kivy.setupconfig
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ImportError: No module named 'kivy.setupconfig'
>>>

If you have any further questions, please let me know.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
eratosthenecommented, Jan 20, 2018

Still seeing this issue with Kivy 1.10.0 installed via pip. I’ve actually had quite the headache trying to get my little kivy app working on ReadTheDocs because of how difficult kivy is to install correctly.

0reactions
stale[bot]commented, Oct 7, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named setupconfig" with kivy - Stack Overflow
I found an issue submitted to kivy about "Setupconfig.py not installed with pip", they seems fixed and closed it. However, I fixed the...
Read more >
Error while trying to install Kivy on Windows 10 - Google Groups
ModuleNotFoundError: No module named 'kivy.lang' PS C:\Users\EliasPai\Documents\RIKA\kv_inventario\desk> python -m pip install "kivy[full]" ...
Read more >
Changelog — Kivy 2.1.0 documentation
[#7631]: Fixes some bugs in the TextInput if the text is right-aligned or center-aligned and not multiline. [#7636]: Textinput on double tap improvement....
Read more >
kivy.core.text — Kivy 1.11.0 documentation
`font_name`: str, defaults to DEFAULT_FONT Font name of the text `font_family`: str, ... If no size is given, the label size will be...
Read more >
Buildozer android ImportError: No module named bottomsheet
Buildozer android ImportError: No module named bottomsheet ... /dists/novatest/private/lib/python2.7/site-packages/kivy/setupconfig.py .
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