colinhowe / monner

monner
Apache License 2.0
270 stars 18 forks source link

psutil dependency >= 4.0 #3

Closed theresia closed 12 years ago

theresia commented 12 years ago

Installation failure:

Installed /usr/local/py2.6/lib/python2.6/site-packages/monner-0.2.0-py2.6.egg Processing dependencies for monner==0.2.0 Searching for psutil>=4.0 Reading http://pypi.python.org/simple/psutil/ Reading http://code.google.com/p/psutil/ No local packages or download links found for psutil>=4.0 Best match: None Traceback (most recent call last): File "setup.py", line 26, in long_description=long_desc, File "/usr/local/py2.6/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/local/py2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/usr/local/py2.6/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "build/bdist.linux-x86_64/egg/setuptools/command/install.py", line 76, in run File "build/bdist.linux-x86_64/egg/setuptools/command/install.py", line 104, in do_egg_install File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 211, in run File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 427, in easy_install File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 478, in install_item File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 519, in process_distribution File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 563, in resolve File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 799, in best_match File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 811, in obtain File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 434, in easy_install File "build/bdist.linux-x86_64/egg/setuptools/package_index.py", line 475, in fetch_distribution AttributeError: 'NoneType' object has no attribute 'clone'

I tried installing psutil separately using pip:

Downloading/unpacking psutil Downloading psutil-0.5.1.tar.gz (125Kb): 125Kb downloaded Running setup.py egginfo for package psutil warning: no files found matching '.html' under directory 'docs' warning: no files found matching '.dia' under directory 'docs' warning: no files found matching '.png' under directory 'docs' Installing collected packages: psutil Running setup.py install for psutil building '_psutil_linux' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/py2.6/include/python2.6 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.6/psutil/_psutil_linux.o gcc -pthread -shared build/temp.linux-x86_64-2.6/psutil/_psutil_linux.o -o build/lib.linux-x86_64-2.6/_psutil_linux.so building '_psutil_posix' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/py2.6/include/python2.6 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.6/psutil/_psutil_posix.o gcc -pthread -shared build/temp.linux-x86_64-2.6/psutil/_psutil_posix.o -o build/lib.linux-x86_64-2.6/_psutilposix.so warning: no files found matching '.html' under directory 'docs' warning: no files found matching '.dia' under directory 'docs' warning: no files found matching '.png' under directory 'docs' Successfully installed psutil Cleaning up...

But the error persists. What is the minimum requirement? I have Python 2.6.

Thank you for this, looks like a super useful tool.

Regards, Theresia Tanzil

masterkain commented 12 years ago
[ruby-1.9.3-p194@global] 18:07 ~/src/monner (master)$ python setup.py install
running install
running bdist_egg
running egg_info
creating monner.egg-info
writing requirements to monner.egg-info/requires.txt
writing monner.egg-info/PKG-INFO
writing top-level names to monner.egg-info/top_level.txt
writing dependency_links to monner.egg-info/dependency_links.txt
writing manifest file 'monner.egg-info/SOURCES.txt'
reading manifest file 'monner.egg-info/SOURCES.txt'
writing manifest file 'monner.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.8-x86_64/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

creating build
creating build/bdist.macosx-10.8-x86_64
creating build/bdist.macosx-10.8-x86_64/egg
creating build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
installing scripts to build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying monner.py -> build/scripts-2.7
changing mode of build/scripts-2.7/monner.py from 644 to 755
creating build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.7/monner.py -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.macosx-10.8-x86_64/egg/EGG-INFO/scripts/monner.py to 755
copying monner.egg-info/PKG-INFO -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
copying monner.egg-info/SOURCES.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
copying monner.egg-info/dependency_links.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
copying monner.egg-info/requires.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
copying monner.egg-info/top_level.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/monner-0.2.0-py2.7.egg' and adding 'build/bdist.macosx-10.8-x86_64/egg' to it
removing 'build/bdist.macosx-10.8-x86_64/egg' (and everything under it)
Processing monner-0.2.0-py2.7.egg
creating /usr/local/lib/python2.7/site-packages/monner-0.2.0-py2.7.egg
Extracting monner-0.2.0-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding monner 0.2.0 to easy-install.pth file
Installing monner.py script to /usr/local/share/python

Installed /usr/local/lib/python2.7/site-packages/monner-0.2.0-py2.7.egg
Processing dependencies for monner==0.2.0
Searching for psutil>=4.0
Reading http://pypi.python.org/simple/psutil/
Reading http://code.google.com/p/psutil/
No local packages or download links found for psutil>=4.0
error: Could not find suitable distribution for Requirement.parse('psutil>=4.0')
theresia commented 12 years ago

It installs successfully if I changed line 18 to: install_requires=['psutil >= 0.4'],

masterkain commented 12 years ago

yes, apparently there has been an error writing out the dependency.

colinhowe commented 12 years ago

eugh, well that's embarrassing. Line looked ok... should have tested it properly :)

theresia commented 12 years ago

Closing this then :)