Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Development (http://www.linux-archive.org/fedora-development/)
-   -   Python-config no help (http://www.linux-archive.org/fedora-development/197740-python-config-no-help.html)

"Oscar Victorio Calixto Bacho" 11-21-2008 10:01 PM

Python-config no help
 
Hi Guys

One python newby question

why /usr/bin/python-config --help say this

Traceback (most recent call last):
* File "/usr/bin/python2.5-config", line 26, in <module>
*** pyver = sysconfig.get_config_var('VERSION')

* File "/usr/lib/python2.5/distutils/sysconfig.py", line 535, in get_config_var
*** return get_config_vars().get(name)
* File "/usr/lib/python2.5/distutils/sysconfig.py", line 493, in get_config_vars

*** func()
* File "/usr/lib/python2.5/distutils/sysconfig.py", line 352, in _init_posix
*** raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.5/config/Makefile (No such file or directory)


This is correct

Thanks

Oscar Bacho

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Toshio Kuratomi 11-22-2008 07:03 AM

Python-config no help
 
Oscar Victorio Calixto Bacho wrote:
> Hi Guys
>
> One python newby question
>
> why /usr/bin/python-config --help say this
>
> Traceback (most recent call last):
> File "/usr/bin/python2.5-config", line 26, in <module>
> pyver = sysconfig.get_config_var('VERSION')
> File "/usr/lib/python2.5/distutils/sysconfig.py", line 535, in
> get_config_var
> return get_config_vars().get(name)
> File "/usr/lib/python2.5/distutils/sysconfig.py", line 493, in
> get_config_vars
> func()
> File "/usr/lib/python2.5/distutils/sysconfig.py", line 352, in _init_posix
> raise DistutilsPlatformError(my_msg)
> distutils.errors.DistutilsPlatformError: invalid Python installation:
> unable to open /usr/lib/python2.5/config/Makefile (No such file or
> directory)
>
> This is correct
>
You need to
yum -y install python-devel

Unless upstream python fixes:
http://bugs.python.org/issue4359

-Toshi

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


All times are GMT. The time now is 09:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.