[Bug 477595] New: easy_install does not work out-of-the-box
https://bugzilla.novell.com/show_bug.cgi?id=477595 Summary: easy_install does not work out-of-the-box Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86 OS/Version: openSUSE 11.1 Status: NEW Severity: Minor Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: novell@wayoverthere.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/4.2; Linux; X11; en-US, en) KHTML/4.2.0 (like Gecko) SUSE Trying to use easy_install (from python-setuptools) to install Python eggs doesn't work. It is trying to use /usr/local/lib/python2.6/site-packages, which doesn't exist. I was able to fix it with "mkdir -p /usr/local/lib/python2.6/site-packages/", but I'm sure either the python-devel or python-setuptools packages should have created that directory. Reproducible: Always Steps to Reproduce: 1. easy_install psyco (as root) 2. 3. Actual Results: /usr/lib/python2.6/site-packages/setuptools/package_index.py:7: DeprecationWarning: the md5 module is deprecated; use hashlib instead from md5 import md5 error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/site-packages/test-easy-install-1643.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.6/site-packages/ This directory does not currently exist. Please create it and try again, or choose a different installation directory (using the -d or --install-dir option). Expected Results: /usr/lib/python2.6/site-packages/setuptools/package_index.py:7: DeprecationWarning: the md5 module is deprecated; use hashlib instead from md5 import md5 Searching for psyco Reading http://pypi.python.org/simple/psyco/ Reading http://psyco.sourceforge.net/ Best match: psyco snapshot Downloading http://wyvern.cs.uni-duesseldorf.de/psyco/psyco-snapshot.tar.gz Processing psyco-snapshot.tar.gz Running psyco-dist/setup.py -q bdist_egg --dist-dir /tmp/easy_install-BvjvwO/psyco-dist/egg-dist-tmp-39unO9 PROCESSOR = 'i386' c/codegen.c:128: warning: ‘psyco_source_condition’ defined but not used c/codegen.c:748: warning: ‘integer_lshift’ defined but not used c/Objects/plistobject.c:116: warning: ‘PsycoList_SingletonNew’ defined but not used zip_safe flag not set; analyzing archive contents... psyco.__init__: module references __path__ Adding psyco 1.6 to easy-install.pth file Installed /usr/local/lib/python2.6/site-packages/psyco-1.6-py2.6-linux-i686egg Processing dependencies for psyco Finished processing dependencies for psyco I think (not 100% sure) that this problem existed in 11.0 also. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=477595 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=477595#c3 --- Comment #3 from Jan Matejek <jmatejek@novell.com> 2009-02-19 08:51:16 MST --- just for completeness, distutils would try and create the directory by themselves, there was never a problem with that. it's possible that setuptools don't do that - and we're using /usr/local by default since 10.3, so you may be right about it not working earlier. i'll have a look -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=477595 User kuba.talas@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=477595#c4 Jakub Talas <kuba.talas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kuba.talas@gmail.com --- Comment #4 from Jakub Talas <kuba.talas@gmail.com> 2009-03-23 08:53:37 MST --- Also broken in 64bit version. Workaround is: # mkdir -p /usr/local/lib64/python2.6/site-packages/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=477595 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=477595#c5 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Jan Matejek <jmatejek@novell.com> 2009-03-30 06:03:47 MDT --- fix submitted to Factory and OBS devel:languages:python project -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com