So, I was working from a completely fresh virtualenv, installing a package that had a matplotlib dependency. As it happens to be, the dependencies in this package lists matplotlib prior to numpy, so matplotlib got processed first. For whatever reason, while processing matplotlib, it didn’t seem to think that it depended upon NumPy, but failed anyway when it couldn’t find it. See the following output:
Best match: matplotlib 1.3.0
Downloading https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.3.0/matplotlib-1.3.0.tar.gz
Processing matplotlib-1.3.0.tar.gz
Writing /tmp/easy_install-ZJ_Xb6/matplotlib-1.3.0/setup.cfg
Running matplotlib-1.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZJ_Xb6/matplotlib-1.3.0/egg-dist-tmp-OqRvd1
···
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.3.0]
python: yes [2.7.1 (r271:86832, Dec 8 2011, 15:48:40) [GCC
4.1.2 20080704 (Red Hat 4.1.2-51)]]
platform: yes [linux2]
REQUIRED DEPENDENCIES AND EXTENSIONS
error: Setup script exited with Requires numpy 1.5 or later to build. (Numpy not found)
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File “/usr/local/CentOS5/lib/python2.7/atexit.py”, line 24, in _run_exitfuncs
func(*targs, **kargs)
File “/usr/local/CentOS5/lib/python2.7/multiprocessing/util.py”, line 258, in _exit_function
info('process shutting down')
TypeError: ‘NoneType’ object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
File “/usr/local/CentOS5/lib/python2.7/atexit.py”, line 24, in _run_exitfuncs
func(*targs, **kargs)
File “/usr/local/CentOS5/lib/python2.7/multiprocessing/util.py”, line 258, in _exit_function
info(‘process shutting down’)
TypeError: ‘NoneType’ object is not callable
Thoughts?
Ben Root