This is on behalf of a former CfA colleague who is having trouble with pip install of APLpy into an anaconda environment. It appears that the following is returning None
when a string is expected. I'm filing this in astropy-helpers, but if this is really an APLpy issue then let me know.
stdio_encoding = locale.getdefaultlocale()[1]
------------------------------------------------------------
/Users/henghao/anaconda/bin/pip run on Tue Jul 22 08:54:06 2014
Downloading/unpacking aplpy
Getting page https://pypi.python.org/simple/aplpy/
URLs to search for versions for aplpy:
* https://pypi.python.org/simple/aplpy/
Analyzing links from page https://pypi.python.org/simple/APLpy/
Found link https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.10.tar.gz#md5=049317adf7a08ede6e7e0d5c7e18d722 (from https://pypi.python.org/simple/APLpy/), version: 0.9.10
Found link https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.11.tar.gz#md5=53a2130136dd6e0b2fbf1c8e8b15d3e6 (from https://pypi.python.org/simple/APLpy/), version: 0.9.11
Found link https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.12.tar.gz#md5=aeff0c49f43847819ab5e94e63abd74c (from https://pypi.python.org/simple/APLpy/), version: 0.9.12
Found link https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.5.tar.gz#md5=241951320d7ddcb7efff141f836ee061 (from https://pypi.python.org/simple/APLpy/), version: 0.9.5
Found link https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.6.tar.gz#md5=bfd8e61ea1139dcc3d8bdf94eee03df3 (from https://pypi.python.org/simple/APLpy/), version: 0.9.6
Found link https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.7.tar.gz#md5=4f667fdd71ae91e4c976f15bf43f7e97 (from https://pypi.python.org/simple/APLpy/), version: 0.9.7
Found link https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.8.tar.gz#md5=a93848f72951e3114c5b7a618750ca82 (from https://pypi.python.org/simple/APLpy/), version: 0.9.8
Found link https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.9.tar.gz#md5=10d247bdf42f920bc9ca01368a5e13b8 (from https://pypi.python.org/simple/APLpy/), version: 0.9.9
Skipping link http://aplpy.github.com (from https://pypi.python.org/simple/APLpy/); not a file
Skipping link http://aplpy.github.com/ (from https://pypi.python.org/simple/APLpy/); not a file
Skipping link http://aplpy.github.io (from https://pypi.python.org/simple/APLpy/); not a file
Skipping link http://aplpy.sourceforge.net (from https://pypi.python.org/simple/APLpy/); not a file
Skipping http://cloud.github.com/downloads/aplpy/aplpy/APLpy-0.9.7.tar.gz (from https://pypi.python.org/simple/APLpy/) because it is externally hosted.
Skipping http://cloud.github.com/downloads/aplpy/aplpy/APLpy-0.9.8.tar.gz (from https://pypi.python.org/simple/APLpy/) because it is externally hosted.
Skipping http://voxel.dl.sourceforge.net/sourceforge/aplpy/APLpy-0.9.4.tar.gz (from https://pypi.python.org/simple/APLpy/) because it is externally hosted.
Skipping https://github.com/downloads/aplpy/aplpy/APLpy-0.9.5.tar.gz (from https://pypi.python.org/simple/APLpy/) because it is externally hosted.
Using version 0.9.12 (newest of versions: 0.9.12, 0.9.11, 0.9.10, 0.9.9, 0.9.8, 0.9.7, 0.9.6, 0.9.5)
Downloading from URL https://pypi.python.org/packages/source/A/APLpy/APLpy-0.9.12.tar.gz#md5=aeff0c49f43847819ab5e94e63abd74c (from https://pypi.python.org/simple/APLpy/)
Running setup.py (path:/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/setup.py) egg_info for package aplpy
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/setup.py", line 8, in <module>
import ah_bootstrap
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 716, in <module>
_main()
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 713, in _main
use_astropy_helpers(**kwargs)
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 202, in use_astropy_helpers
is_submodule = _check_submodule(path, use_git=use_git)
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 392, in _check_submodule
return _check_submodule_using_git(path)
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 435, in _check_submodule_using_git
stderr = stderr.decode(stdio_encoding)
TypeError: decode() argument 1 must be str, not None
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/setup.py", line 8, in <module>
import ah_bootstrap
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 716, in <module>
_main()
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 713, in _main
use_astropy_helpers(**kwargs)
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 202, in use_astropy_helpers
is_submodule = _check_submodule(path, use_git=use_git)
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 392, in _check_submodule
return _check_submodule_using_git(path)
File "/private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy/ah_bootstrap.py", line 435, in _check_submodule_using_git
stderr = stderr.decode(stdio_encoding)
TypeError: decode() argument 1 must be str, not None
----------------------------------------
Cleaning up...
Removing temporary dir /private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy
Exception information:
Traceback (most recent call last):
File "/Users/henghao/anaconda/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Users/henghao/anaconda/lib/python3.4/site-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/henghao/anaconda/lib/python3.4/site-packages/pip/req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "/Users/henghao/anaconda/lib/python3.4/site-packages/pip/req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "/Users/henghao/anaconda/lib/python3.4/site-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /private/var/folders/rj/1_zbz2gd3_71h7m32_hjp1wm0000gn/T/pip_build_henghao/aplpy