[Python-bugs-list] [ python-Bugs-409430 ] pydoc shouldn't use #!/usr/bin/env

noreply@sourceforge.net noreply@sourceforge.net
Sun, 10 Jun 2001 21:56:21 -0700


Bugs item #409430, was updated on 2001-03-17 10:04
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=409430&group_id=5470

Category: Installation
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Michael Hudson (mwh)
Assigned to: Ka-Ping Yee (ping)
Summary: pydoc shouldn't use #!/usr/bin/env

Initial Comment:
I've moaned about this on python-dev but I want to make
sure it doesn't get forgotten.

I've just built from CVS, installed in /usr/local, and:

$ pydoc -g
Traceback (most recent call last):
  File "/usr/local/bin/pydoc", line 3, in ?
    import pydoc
ImportError: No module named pydoc

because the /usr/bin/env python thing hits the older
python in /usr first.

Don't really know how best to implement this, not being
a distutils whiz.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2001-06-10 21:56

Message:
Logged In: NO 

I am having similar problems with the win 2.1 ver
it seems none of my saved .py files are recognised.
Is this simply a case of not configed as an executable or a 
version clash?
(solutions as well as opinions would be nice)
I can however import string,sys and other modules if that 
muddies the water any.

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-04-10 12:11

Message:
Logged In: YES 
user_id=6380

OK, ping-pong.  Ping, do you have any bright ideas?

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

Comment By: A.M. Kuchling (akuchling)
Date: 2001-04-10 10:57

Message:
Logged In: YES 
user_id=11375

The pydoc script is Ping's, really.  Fixing this requires
Distutils 
hackery, and I don't see that this is worth fixing.  Leaving
it to someone else to make the decision to close it, though.

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

Comment By: Tim Peters (tim_one)
Date: 2001-03-17 22:23

Message:
Logged In: YES 
user_id=31435

Assigned to Andrew because I seem to recall he wrote the 
pydoc script.

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

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