View Issue Details

IDProjectCategoryView StatusLast Update
0002694Slicer4Core: Scripting (Wrapping, Python)public2014-03-06 04:55
Reportermgrauer Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.1.1 
Target VersionSlicer 4.2.1Fixed in VersionSlicer 4.2.1 
Summary0002694: pip won't install on Slicer, on Mac OS X
Description

On the 2012-10-26 nightly binary, trying to install pip, we had a failure.

The get_distribute.py worked, but then pip failed.

We tried both

./Slicer get_pip.py

and

./Slicer --launch get_pip.py

and

./Slicer --launch /path/to/python26 get_pip.py

and even a "sudo" in case it was a perms error.

Additional Information

./Slicer --no-main-window --python-script get_pip.py
Number of registered modules: 113
Register compression libraries
Number of instantiated modules: 113
Number of loaded modules: 113
Downloading/unpacking pip
Exception:
Traceback (most recent call last):
File "/var/folders/4m/wlsjfw5j6qbb5kxzl_23lql00000gn/T/unpacker-rA3TsE-scratchdir/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/var/folders/4m/wlsjfw5j6qbb5kxzl_23lql00000gn/T/unpacker-rA3TsE-scratchdir/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/var/folders/4m/wlsjfw5j6qbb5kxzl_23lql00000gn/T/unpacker-rA3TsE-scratchdir/pip/req.py", line 955, in prepare_files
self.unpack_url(url, location, self.is_download)
File "/var/folders/4m/wlsjfw5j6qbb5kxzl_23lql00000gn/T/unpacker-rA3TsE-scratchdir/pip/req.py", line 1072, in unpack_url
return unpack_http_url(link, location, self.download_cache, only_download)
File "/var/folders/4m/wlsjfw5j6qbb5kxzl_23lql00000gn/T/unpacker-rA3TsE-scratchdir/pip/download.py", line 441, in unpack_http_url
download_hash = _download_url(resp, link, temp_location)
File "/var/folders/4m/wlsjfw5j6qbb5kxzl_23lql00000gn/T/unpacker-rA3TsE-scratchdir/pip/download.py", line 381, in _download_url
logger.end_progress('%s downloaded' % format_size(downloaded))
File "/var/folders/4m/wlsjfw5j6qbb5kxzl_23lql00000gn/T/unpacker-rA3TsE-scratchdir/pip/log.py", line 97, in end_progress
"Tried to end_progress without start_progress")
AssertionError: Tried to end_progress without start_progress

TagsNo tags attached.

Activities

mgrauer

mgrauer

2012-10-29 06:27

reporter   ~0006836

I tried this with Linux nightly binary 2012-10-24. I got the same behavior (error and same error message) as on the Mac with

./Slicer get_pip.py

But the following worked successfully to install pip:

./Slicer --launch /usr/bin/python get_pip.py

jcfr

jcfr

2012-11-08 13:01

administrator   ~0007125

Fixed in r21331
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21331

jcfr

jcfr

2012-11-08 13:03

administrator   ~0007126

$ ./Slicer distribute_setup.py
[...]
Installed /home/jchris/Projects/Slicer4-Superbuild-Debug/python-build/lib/python2.6/site-packages/distribute-0.6.30-py2.6.egg
Processing dependencies for distribute==0.6.30
Finished processing dependencies for distribute==0.6.30

$ ./Slicer get-pip.py
Downloading/unpacking pip
Running setup.py egg_info for package pip
[...]
Successfully installed pip

jcfr

jcfr

2012-11-08 13:09

administrator   ~0007127

Also tested from an installed tree.

jcfr

jcfr

2014-03-06 04:53

administrator   ~0010752

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2012-10-26 14:06 mgrauer New Issue
2012-10-26 14:06 mgrauer Status new => assigned
2012-10-26 14:06 mgrauer Assigned To => jcfr
2012-10-29 06:27 mgrauer Note Added: 0006836
2012-10-31 14:40 jcfr Target Version => Slicer 4.2.1
2012-11-08 13:01 jcfr Note Added: 0007125
2012-11-08 13:01 jcfr Status assigned => resolved
2012-11-08 13:01 jcfr Fixed in Version => Slicer 4.2.1
2012-11-08 13:01 jcfr Resolution open => fixed
2012-11-08 13:03 jcfr Note Added: 0007126
2012-11-08 13:09 jcfr Note Added: 0007127
2014-03-06 04:53 jcfr Note Added: 0010752
2014-03-06 04:55 jcfr Status resolved => closed