Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py egg info error #143

Open
jaapsoft opened this issue Jan 11, 2017 · 2 comments
Open

setup.py egg info error #143

jaapsoft opened this issue Jan 11, 2017 · 2 comments

Comments

@jaapsoft
Copy link

NVPY install (pip) gives this error. Fedora 25. Python 2.7.13.

collecting nvpy
Using cached nvpy-1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-7Ai3NW/nvpy/setup.py", line 3, in
from nvpy import nvpy
File "nvpy/nvpy.py", line 44, in
import view
File "nvpy/view.py", line 8, in
import search_entry
File "nvpy/search_entry.py", line 11, in
import tkinter as Tkinter
ImportError: No module named tkinter

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7Ai3NW/nvpy/

cannot find a solution.

@brightghost
Copy link
Contributor

A dozen relevant search results will come up by pasting your ImportError into a search engine.

The code in question first attempts to import TKinter, the Python2 name for this module, and failing that then tries to import the Python3 version, tkinter. This is where you're getting the ImportError, which suggests your system has neither TKinter nor tkinter. You may have a partial Python install which does not include TKinter. Although this is part of the Python Standard Library, some systems omit certain more obscure modules on their standard Python install to save space; I'm not familiar with Fedora to tell if this is the case here. You may need to install it from a separate package. Also, if you're trying to build with Python3, note the Readme clarifies that Python3 is not yet supported.

@Softskills
Copy link

Brightghost, thanks. The amount of found solutions was overwhelming, but no solution was right for me.
Had to add some parts of Python and import a lot of dependencies. Now it works. If I can go back on that road I will write my solution down .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants