[Python-bugs-list] [ python-Bugs-233259 ] Ugly traceback for DistutilsPlatformError

noreply@sourceforge.net noreply@sourceforge.net
Thu, 06 Dec 2001 13:41:34 -0800


Bugs item #233259, was opened at 2001-02-20 08:23
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=233259&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Greg Ward (gward)
>Assigned to: Nobody/Anonymous (nobody)
Summary: Ugly traceback for DistutilsPlatformError

Initial Comment:
>From Chad Lester:

> I was setting up a new redhat machine, and had forgotten to install the
> python-devel rpm.  The distutils provide a fairly ugly stack trace / error
> message.  Luckily, it meant something to me... but it's not terribly user
> friendly!
>    
> ...
>   File "/usr/lib/python1.5/site-packages/distutils/sysconfig.py", line
> 368, in get_config_vars
>     func()
>   File "/usr/lib/python1.5/site-packages/distutils/sysconfig.py", line
> 280, in _init_posix
>     raise DistutilsPlatformError, my_msg
> distutils.errors.DistutilsPlatformError: invalid Python
> installation: unable to open /usr/lib/python1.5/config/Makefile (No such
> file or directory)
> 
> 



----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2001-12-06 08:18

Message:
Logged In: YES 
user_id=11375

Greg, I don't understand your last comment on this bug.  
Surely the traceback will still be ugly for people running
Python 2.2 or whatever who don't have the python-devel RPM
installed?  I don't see how this is only a 1.5.2 or a
"installing Distutils" question. 


----------------------------------------------------------------------

Comment By: Greg Ward (gward)
Date: 2001-02-20 08:24

Message:
This only applies for people installing Distutils
under Python 1.5.2, so it will only be fixed if
there is another Distutils release to support 1.5.2 --
which is unlikely.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=233259&group_id=5470