[Distutils] distribute doesn't use pip?

Tom Davis tom at recursivedream.com
Sat Jan 30 00:08:23 CET 2010


Tested; failed with the following:

  File "setup.py", line 203, in setup_package

  File "/tmp/easy_install-cmuJYo/numpy/numpy/distutils/core.py", line 186,
in setup
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File
"/deploy/ENV/lib/python2.5/site-packages/distribute-0.6.10-py2.5.egg/setuptools/command/bdist_egg.py",
line 167, in run
    self.run_command("egg_info")
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/tmp/easy_install-cmuJYo/numpy/numpy/distutils/command/egg_info.py",
line 8, in run
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File
"/tmp/easy_install-cmuJYo/numpy/numpy/distutils/command/build_src.py", line
152, in run
  File
"/tmp/easy_install-cmuJYo/numpy/numpy/distutils/command/build_src.py", line
169, in build_sources
  File
"/tmp/easy_install-cmuJYo/numpy/numpy/distutils/command/build_src.py", line
328, in build_extension_sources
  File
"/tmp/easy_install-cmuJYo/numpy/numpy/distutils/command/build_src.py", line
385, in generate_sources
  File "/deploy/repo/setup.py", line 390, in generate_config_h

  File "/deploy/repo/setup.py", line 41, in check_types

  File "/deploy/repo/setup.py", line 255, in check_types

SystemError: Cannot compiler 'Python.h'. Perhaps you need to install
python-dev|python-devel.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/tmp/easy_install-cmuJYo/numpy/numpy/distutils/misc_util.py", line
250, in clean_up_temporary_directory
SystemError: Parent module 'numpy.distutils' not loaded
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/tmp/easy_install-cmuJYo/numpy/numpy/distutils/misc_util.py", line
250, in clean_up_temporary_directory
SystemError: Parent module 'numpy.distutils' not loaded
zsh: exit 1     python setup.py install


I'm not sure if the former is an issue with numpy or something else (issue
with Python.h). Although i am positive my dev headers are installed (and
numpy still installs fine with pip), I don't know if distutils is having
trouble finding them for some unrelated-to-numpy reason. I can't think of
another package offhand that requires the headers or I'd test that theory.

On Fri, Jan 29, 2010 at 5:51 PM, Robert Kern <robert.kern at gmail.com> wrote:

> On 2010-01-29 16:47 PM, Tom Davis wrote:
>
>> Oops, my apologies! The new error location is:
>>
>>    File "/tmp/easy_install-JJUS9R/numpy/numpy/distutils/misc_util.py",
>>    line 1278, in add_include_dirs
>>    AttributeError: 'NoneType' object has no attribute 'extend'
>>
>
> Thank you for the traceback! Try r8081. I fixed a couple of other places
> where lists may not be initialized properly.
>
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma
>  that is made terrible by our own mad attempt to interpret it as though it
> had
>  an underlying truth."
>  -- Umberto Eco
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100129/ff68fb98/attachment-0001.htm>


More information about the Distutils-SIG mailing list