No module named setuptools #16

Closed
opened 2016-05-02 01:04:50 +02:00 by dannymichel · 5 comments
dannymichel commented 2016-05-02 01:04:50 +02:00 (Migrated from gitlab.com)

Traceback (most recent call last):
File "setup.py", line 5, in
from setuptools import setup
ImportError: No module named setuptools

Traceback (most recent call last): File "setup.py", line 5, in <module> from setuptools import setup ImportError: No module named setuptools
coderkun commented 2016-05-02 13:18:45 +02:00 (Migrated from gitlab.com)

Created by: coderkun

Are setuptools for Python 3 installed on your system?

*Created by: coderkun* Are [setuptools](https://pypi.python.org/pypi/setuptools) for Python 3 installed on your system?
dannymichel commented 2016-05-02 13:29:44 +02:00 (Migrated from gitlab.com)
danny@danny:~$ sudo apt-get install python3
[sudo] password for danny: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.5.1-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
danny@danny:~$ sudo apt-get install python-setuptools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-setuptools is already the newest version (20.7.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
danny@danny:~$ cd mcg
danny@danny:~/mcg$ sudo /usr/bin/python3.5 setup.py install
running install
Checking .pth file support in /usr/local/lib/python3.5/dist-packages/
/usr/bin/python3.5 -E -c pass
TEST PASSED: /usr/local/lib/python3.5/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing entry points to MPD_Cover_Grid.egg-info/entry_points.txt
writing top-level names to MPD_Cover_Grid.egg-info/top_level.txt
writing requirements to MPD_Cover_Grid.egg-info/requires.txt
writing MPD_Cover_Grid.egg-info/PKG-INFO
writing dependency_links to MPD_Cover_Grid.egg-info/dependency_links.txt
reading manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt'
writing manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
installing package data to build/bdist.linux-x86_64/egg
running install_data
warning: install_data: setup script did not provide a directory for 'data/MPDCoverGridGTK.desktop' -- installing right in 'build/bdist.linux-x86_64/egg'

warning: install_data: setup script did not provide a directory for 'gschemas.compiled' -- installing right in 'build/bdist.linux-x86_64/egg'

error: can't copy 'gschemas.compiled': doesn't exist or not a regular file
danny@danny:~/mcg$
``` danny@danny:~$ sudo apt-get install python3 [sudo] password for danny: Reading package lists... Done Building dependency tree Reading state information... Done python3 is already the newest version (3.5.1-3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. danny@danny:~$ sudo apt-get install python-setuptools Reading package lists... Done Building dependency tree Reading state information... Done python-setuptools is already the newest version (20.7.0-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. danny@danny:~$ cd mcg danny@danny:~/mcg$ sudo /usr/bin/python3.5 setup.py install running install Checking .pth file support in /usr/local/lib/python3.5/dist-packages/ /usr/bin/python3.5 -E -c pass TEST PASSED: /usr/local/lib/python3.5/dist-packages/ appears to support .pth files running bdist_egg running egg_info writing entry points to MPD_Cover_Grid.egg-info/entry_points.txt writing top-level names to MPD_Cover_Grid.egg-info/top_level.txt writing requirements to MPD_Cover_Grid.egg-info/requires.txt writing MPD_Cover_Grid.egg-info/PKG-INFO writing dependency_links to MPD_Cover_Grid.egg-info/dependency_links.txt reading manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt' writing manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py installing package data to build/bdist.linux-x86_64/egg running install_data warning: install_data: setup script did not provide a directory for 'data/MPDCoverGridGTK.desktop' -- installing right in 'build/bdist.linux-x86_64/egg' warning: install_data: setup script did not provide a directory for 'gschemas.compiled' -- installing right in 'build/bdist.linux-x86_64/egg' error: can't copy 'gschemas.compiled': doesn't exist or not a regular file danny@danny:~/mcg$ ```
coderkun commented 2016-05-02 13:33:25 +02:00 (Migrated from gitlab.com)

Created by: coderkun

Just fixed the location of some files. Please try again and reopen if it still does not work.

Thanks for testing!

*Created by: coderkun* Just fixed the location of some files. Please try again and reopen if it still does not work. Thanks for testing!
dannymichel commented 2016-05-02 13:36:01 +02:00 (Migrated from gitlab.com)
danny@danny:~/mcg$ sudo /usr/bin/python3.5 setup.py install
running install
Checking .pth file support in /usr/local/lib/python3.5/dist-packages/
/usr/bin/python3.5 -E -c pass
TEST PASSED: /usr/local/lib/python3.5/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating MPD_Cover_Grid.egg-info
writing top-level names to MPD_Cover_Grid.egg-info/top_level.txt
writing entry points to MPD_Cover_Grid.egg-info/entry_points.txt
writing dependency_links to MPD_Cover_Grid.egg-info/dependency_links.txt
writing MPD_Cover_Grid.egg-info/PKG-INFO
writing requirements to MPD_Cover_Grid.egg-info/requires.txt
writing manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt'
reading manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt'
writing manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/mcg
copying mcg/__init__.py -> build/lib/mcg
copying mcg/mcg.py -> build/lib/mcg
copying mcg/mcgGtk.py -> build/lib/mcg
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/mcg
copying build/lib/mcg/__init__.py -> build/bdist.linux-x86_64/egg/mcg
copying build/lib/mcg/mcg.py -> build/bdist.linux-x86_64/egg/mcg
copying build/lib/mcg/mcgGtk.py -> build/bdist.linux-x86_64/egg/mcg
byte-compiling build/bdist.linux-x86_64/egg/mcg/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/mcg/mcg.py to mcg.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/mcg/mcgGtk.py to mcgGtk.cpython-35.pyc
installing package data to build/bdist.linux-x86_64/egg
running install_data
warning: install_data: setup script did not provide a directory for 'data/MPDCoverGridGTK.desktop' -- installing right in 'build/bdist.linux-x86_64/egg'

copying data/MPDCoverGridGTK.desktop -> build/bdist.linux-x86_64/egg
warning: install_data: setup script did not provide a directory for 'data/gschemas.compiled' -- installing right in 'build/bdist.linux-x86_64/egg'

copying data/gschemas.compiled -> build/bdist.linux-x86_64/egg
warning: install_data: setup script did not provide a directory for 'data/noise-texture.png' -- installing right in 'build/bdist.linux-x86_64/egg'

copying data/noise-texture.png -> build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying MPD_Cover_Grid.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying MPD_Cover_Grid.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying MPD_Cover_Grid.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying MPD_Cover_Grid.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying MPD_Cover_Grid.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying MPD_Cover_Grid.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
mcg.__pycache__.mcgGtk.cpython-35: module references __file__
creating dist
creating 'dist/MPD_Cover_Grid-0.4-py3.5.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing MPD_Cover_Grid-0.4-py3.5.egg
creating /usr/local/lib/python3.5/dist-packages/MPD_Cover_Grid-0.4-py3.5.egg
Extracting MPD_Cover_Grid-0.4-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding MPD-Cover-Grid 0.4 to easy-install.pth file
Installing frontend script to /usr/local/bin

Installed /usr/local/lib/python3.5/dist-packages/MPD_Cover_Grid-0.4-py3.5.egg
Processing dependencies for MPD-Cover-Grid==0.4
Searching for python-gobject
Reading https://pypi.python.org/simple/python-gobject/
Couldn't find index page for 'python-gobject' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for python-gobject
error: Could not find suitable distribution for Requirement.parse('python-gobject')
danny@danny:~/mcg$ 

``` danny@danny:~/mcg$ sudo /usr/bin/python3.5 setup.py install running install Checking .pth file support in /usr/local/lib/python3.5/dist-packages/ /usr/bin/python3.5 -E -c pass TEST PASSED: /usr/local/lib/python3.5/dist-packages/ appears to support .pth files running bdist_egg running egg_info creating MPD_Cover_Grid.egg-info writing top-level names to MPD_Cover_Grid.egg-info/top_level.txt writing entry points to MPD_Cover_Grid.egg-info/entry_points.txt writing dependency_links to MPD_Cover_Grid.egg-info/dependency_links.txt writing MPD_Cover_Grid.egg-info/PKG-INFO writing requirements to MPD_Cover_Grid.egg-info/requires.txt writing manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt' reading manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt' writing manifest file 'MPD_Cover_Grid.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build creating build/lib creating build/lib/mcg copying mcg/__init__.py -> build/lib/mcg copying mcg/mcg.py -> build/lib/mcg copying mcg/mcgGtk.py -> build/lib/mcg creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/mcg copying build/lib/mcg/__init__.py -> build/bdist.linux-x86_64/egg/mcg copying build/lib/mcg/mcg.py -> build/bdist.linux-x86_64/egg/mcg copying build/lib/mcg/mcgGtk.py -> build/bdist.linux-x86_64/egg/mcg byte-compiling build/bdist.linux-x86_64/egg/mcg/__init__.py to __init__.cpython-35.pyc byte-compiling build/bdist.linux-x86_64/egg/mcg/mcg.py to mcg.cpython-35.pyc byte-compiling build/bdist.linux-x86_64/egg/mcg/mcgGtk.py to mcgGtk.cpython-35.pyc installing package data to build/bdist.linux-x86_64/egg running install_data warning: install_data: setup script did not provide a directory for 'data/MPDCoverGridGTK.desktop' -- installing right in 'build/bdist.linux-x86_64/egg' copying data/MPDCoverGridGTK.desktop -> build/bdist.linux-x86_64/egg warning: install_data: setup script did not provide a directory for 'data/gschemas.compiled' -- installing right in 'build/bdist.linux-x86_64/egg' copying data/gschemas.compiled -> build/bdist.linux-x86_64/egg warning: install_data: setup script did not provide a directory for 'data/noise-texture.png' -- installing right in 'build/bdist.linux-x86_64/egg' copying data/noise-texture.png -> build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/EGG-INFO copying MPD_Cover_Grid.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying MPD_Cover_Grid.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying MPD_Cover_Grid.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying MPD_Cover_Grid.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying MPD_Cover_Grid.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying MPD_Cover_Grid.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... mcg.__pycache__.mcgGtk.cpython-35: module references __file__ creating dist creating 'dist/MPD_Cover_Grid-0.4-py3.5.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing MPD_Cover_Grid-0.4-py3.5.egg creating /usr/local/lib/python3.5/dist-packages/MPD_Cover_Grid-0.4-py3.5.egg Extracting MPD_Cover_Grid-0.4-py3.5.egg to /usr/local/lib/python3.5/dist-packages Adding MPD-Cover-Grid 0.4 to easy-install.pth file Installing frontend script to /usr/local/bin Installed /usr/local/lib/python3.5/dist-packages/MPD_Cover_Grid-0.4-py3.5.egg Processing dependencies for MPD-Cover-Grid==0.4 Searching for python-gobject Reading https://pypi.python.org/simple/python-gobject/ Couldn't find index page for 'python-gobject' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ No local packages or download links found for python-gobject error: Could not find suitable distribution for Requirement.parse('python-gobject') danny@danny:~/mcg$ ```
coderkun commented 2016-05-02 13:50:38 +02:00 (Migrated from gitlab.com)

Created by: coderkun

Two things to do here:

*Created by: coderkun* Two things to do here: - #17 - #18
Sign in to join this conversation.
No description provided.