[spambayes-bugs] [ spambayes-Support Requests-1255409 ] Install problems in Linux: setup.py dies
SourceForge.net
noreply at sourceforge.net
Wed Aug 10 03:29:24 CEST 2005
Support Requests item #1255409, was opened at 2005-08-09 21:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498104&aid=1255409&group_id=61702
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Install Problem (example)
Group: None
Status: Open
Priority: 5
Submitted By: VWFeature (vwfeature)
Assigned to: Nobody/Anonymous (nobody)
Summary: Install problems in Linux: setup.py dies
Initial Comment:
Install using Setup gives error:
_"$ python setup.py install
running install
error: invalid Python installation: unable to
open /usr/lib/python2.3/config/Makefile (No such file or
directory)"
Now a Python expert will immediately see what the problem is,
but I'm not; that's why I'm using a script. When it doesn't work,
I'm stuck. The idea of the software looks fabulous. I'm willing to
slog through an put everything in some useable directory, if
you'll explain what the script does- or you could fix the script to
work on more *nix systems.
Other people have had the same problem (see below). What's
needed is a clear explanation of how to set up without using the
script, or a foolproof script. (When engineers make things more
foolproof, God invents better fools.) Here's my setup:
AMD K6-2 at 533, 392 mb
Mepis3.3.1 hd install
Python 2.3.5
Distutils are installed.
I'm a complete LInux newbie.
Same error in 1.1.a1 and 1.0.4, and on this page
http://mail.python.org/pipermail/spambayes/2005-July/017645.html
He's using Mandrake.
and here:
http://mail.python.org/pipermail/spambayes/2005-May/017045.html
> I'm trying to install spambayes 1.0.4 in a *nix account, and
there seems to be a reasonable installation of python 2.3 on the
machine. Nonetheless, after unzipping and de-tarring the
source code, I get the following error:
> % python setup.py install
> running install
> error: invalid Python installation: unable to open
> /usr/lib/python2.3/config/Makefile (No such file or directory)
Comment on prior response below- FWIW, I HAVE Distutils
installed, and it still doesn't work.
My impression-just from using lots of software, that is, as a
user- is that it's a problem in PYTHON. That is, there's no
consistent way to let the OS know where python keeps things, so
there's no way to write scripts that always work. Or the script is
calling a 'makefile' program that's been replaced.
Prior response
I believe (Googling seems to back this up) that this means that
you need to install the python-devel (or however your system
spells it) package to use distutils.
(You can use SpamBayes without running setup.py, of course -
just manually put the spambayes package directory on the
PYTHONPATH, and run the scripts from wherever you like).
HOW? "Can I just copy the required files manually? If so, what
files (or directories) are needed to use spambayes with procmail
(Kmail)?"
I don't know how to set or find the 'PYTHONPATH' to install
spambayes myself- if someone does, would you please explain
it?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498104&aid=1255409&group_id=61702
More information about the Spambayes-bugs
mailing list