OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005005 [python27] regular use block always 2012-09-30 15:27 2013-09-05 16:56
Reporter ghenry View Status public  
Assigned To
Priority normal Resolution won't fix  
Status closed  
Summary 0005005: unable to install virtualenv: ImportError: No module named md5
Description on solaris 10 (sparc), i'm trying to install virtualenv according to:
http://www.pip-installer.org/en/latest/installing.html [^]

it fails with the following messages:

t2000-root% /opt/csw/bin/python virtualenv.py my_new_env
New python executable in my_new_env/bin/python
Installing setuptools......
  Complete output from command /donnees/virtualenv/my_new_env/bin/python -c "#!python
\"\"\"Bootstra...sys.argv[1:])






" --always-copy -U setuptools:
  Traceback (most recent call last):
  File "<string>", line 67, in <module>
ImportError: No module named md5
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
  File "virtualenv.py", line 2471, in <module>
    main()
  File "virtualenv.py", line 942, in main
    never_download=options.never_download)
  File "virtualenv.py", line 1052, in create_environment
    search_dirs=search_dirs, never_download=never_download)
  File "virtualenv.py", line 599, in install_setuptools
    search_dirs=search_dirs, never_download=never_download)
  File "virtualenv.py", line 571, in _install_req
    cwd=cwd)
  File "virtualenv.py", line 1020, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /donnees/virtualenv/my_new_env/bin/python -c "#!python
\"\"\"Bootstra...sys.argv[1:])






" --always-copy -U setuptools failed with error code 1
 
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010538)
pfelecan (developer)
2013-08-25 09:24

Python 2.6 or 2.7 ?
(0010549)
ghenry (reporter)
2013-08-26 09:33

i'm interested in python 2.7
(0010550)
pfelecan (developer)
2013-08-26 09:43

Thank you. You should note that for 2.7 issues the Mantis project is now python27.
(0010553)
pfelecan (developer)
2013-08-27 12:06

what's the output of "python --version" ?

Anyway, the error about no module md5 found is strange as both python environments provide md5.py
(0010554)
maciej (reporter)
2013-08-27 12:22

Was the report copied from the old one or was it rerun again?

I'm asking because we've made major changes to our Python packages and the old behavior doesn't necessarily have anything to do with the new one.

It's very probable thay the virtualenv package needs to be rebuilt against the new python packages and it will fix the issue. I suggest making a new virtualenv package and looking what happens.
(0010555)
pfelecan (developer)
2013-08-27 12:51

You're probably right. Thus, I just released a new package and bumped the version as a side effect.
(0010559)
ghenry (reporter)
2013-08-27 16:25

t2000-root% /opt/csw/bin/python --version
Python 2.6.8
(0010566)
pfelecan (developer)
2013-09-01 17:52

IMHO no need to.
(0010569)
pfelecan (developer)
2013-09-03 16:01

i.e. no need to fix whatever as virtualenv is released for both 2.x interpreters on August 27 2013

have you tried to use the new package? if there is something missing or badly behaving just open a virtualenv issue.
(0010570)
ghenry (reporter)
2013-09-05 15:11
edited on: 2013-09-05 15:17

i am unable to install pip with the latest CSWpython release:
django@t2000:~$ /opt/csw/bin/python get-pip.py
Traceback (most recent call last):
  File "get-pip.py", line 7269, in <module>
    do_exec(entry, locals())
  File "<string>", line 1, in do_exec
  File "<string>", line 9, in <module>
  File "/tmp/unpacker-rDnXZn-scratchdir/pip/__init__.py", line 11, in <module>
  File "/tmp/unpacker-rDnXZn-scratchdir/pip/vcs/subversion.py", line 4, in <module>
  File "/tmp/unpacker-rDnXZn-scratchdir/pip/index.py", line 32, in <module>
  File "/tmp/unpacker-rDnXZn-scratchdir/pip/wheel.py", line 18, in <module>
  File "/tmp/unpacker-rDnXZn-scratchdir/pip/pep425tags.py", line 98, in <module>
  File "/tmp/unpacker-rDnXZn-scratchdir/pip/pep425tags.py", line 61, in get_supported
  File "/opt/csw/lib/python2.6/distutils/sysconfig.py", line 610, in get_config_var
    return get_config_vars().get(name)
  File "/opt/csw/lib/python2.6/distutils/sysconfig.py", line 526, in get_config_vars
    func()
  File "/opt/csw/lib/python2.6/distutils/sysconfig.py", line 383, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /opt/csw/lib/python2.6/config/Makefile (No such file or directory)


django@t2000:~$ ls -l /opt/csw/bin/python
lrwxrwxrwx 1 root other 20 Sep 3 16:50 /opt/csw/bin/python -> /opt/csw/bin/python2
django@t2000:~$ pkgchk -l -p /opt/csw/bin/python
NOTE: Couldn't lock the package database.
django@t2000:~$ pkgchk -l -p /opt/csw/bin/python2
NOTE: Couldn't lock the package database.
django@t2000:~$ ls -l /opt/csw/bin/python2
lrwxrwxrwx 1 root other 22 Sep 3 16:50 /opt/csw/bin/python2 -> /opt/csw/bin/python2.6
django@t2000:~$ pkgchk -l -p /opt/csw/bin/python2.6
NOTE: Couldn't lock the package database.
Pathname: /opt/csw/bin/python2.6
Type: regular file
Expected mode: 0755
Expected owner: root
Expected group: bin
Expected file size (bytes): 6552
Expected sum(1) of contents: 30257
Expected last modification: Aug 08 10:29:08 2013
Referenced by the following packages:
        CSWpython
Current status: installed
django@t2000:~$ pkginfo -l CSWpython
   PKGINST: CSWpython
      NAME: python - A high-level scripting language, 2.6 series
  CATEGORY: application
      ARCH: sparc
   VERSION: 2.6.8,REV=2013.08.08
   BASEDIR: /
    VENDOR: http://python.org/download/releases/2.6.8 [^] packaged for CSW by Peter Felecan
    PSTAMP: pfelecan@unstable10s-20130808103014
  INSTDATE: Sep 03 2013 16:50
   HOTLINE: http://www.opencsw.org/bugtrack/ [^]
     EMAIL: pfelecan@opencsw.org
    STATUS: completely installed
     FILES: 686 installed pathnames
                   3 shared pathnames
                  32 directories
                  97 executables
               23685 blocks used (approx)

(0010571)
maciej (reporter)
2013-09-05 15:26

This these two commands:

missing_file=/opt/csw/lib/python2.6/config/Makefile

curl "http://buildfarm.opencsw.org/pkgdb/rest/catalogs/unstable/i386/SunOS5.10/pkgname-by-filename?filename=${missing_file}"; [^] echo
(0010572)
pfelecan (developer)
2013-09-05 15:35

This is a 2.6 issue, isn't it? Is it possible to report on the relevant project?

Install CSWpython-dev as the missing file is part of it and by doing what you are developing...

You should have found this by using the exact search feature on our site: http://www.opencsw.org/search/ [^] for the missing file /opt/csw/lib/python2.6/config/Makefile


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker