No module named kivy.setupconfig
See original GitHub issueHi,
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:
- Created 7 years ago
- Reactions:1
- Comments:8
Top GitHub Comments
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.
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.