[Pythonmac-SIG] Problem installing a module

Just van Rossum just@letterror.com
Tue, 17 Sep 2002 21:48:25 +0200


Robin Siebler wrote:

> I downloaded a logging module for Python and uncompressed it.  The
> icon for all of the .py files in the folder is a blank document icon.
>  Get info for the .py files show they will be handled by the Python
> Interpreter.  However, if I double-click on setup.py, I get the
> following error message: "This is not a script.  It is probably an
> auxiliary Python file such as an application template or a preference
> file."  Obviously, this is a bogus error message.  How do I fix this?
> I can install it just fine using the command-line version of Python,
> but I need it for the GUI version.

It's probably the file type that is wrong. It should (for this version of
MacPython, apparently) be TEXT. You can chage it with ResEdit or FileTyper or
possibly many other utilities. Depending on the version of MacPython you're
actually using, you might need to change the line endings to "Mac" (ie. \r).
This can be done with BBEdit, or the IDE.

Just