Python libs on Windows ME

2010-08-31 Thread hexusne...@gmail.com
I'm not guessing that this is a problem on Windows 98, but on Windows
ME modules in /Lib don't seem to load.  Examples include site.py and
os.py which are both located in the top level Lib directory.  The same
thing happens with Python 2.3, 2.4, and 2.5.  I can't get IDLE to load
and the Python interpreter always complains that it can't load the
"site" module even if Python is run from the same directory as the
module (note: this does not happen if a module is loaded from the
current working directory while in the interpreter).

I would use another os like Linux or Windows 2000, but this particular
computer can't even seem to handle even the most minimal graphical
Linux distributions.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Installing Python as Scripting Language in IIS

2010-08-31 Thread hexusne...@gmail.com
On Aug 30, 6:55 pm, naugiedoggie  wrote:
> Hello,
>
> Windows 2003, 64-bit, standard edition server with IIS 6.0.  I
> followed the MS instruction sheets on setting up CGI application with
> Python as scripting engine.  I'm just getting 404 for the test script,
> whereas an html file in the same virtual directory is properly
> displayed.
>
> Here:
>
> Creating Applications in IIS 6.0 (IIS 
> 6.0)http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Librar...
>
> Setting Application Mappings in IIS 6.0 (IIS 
> 6.0)http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Librar...
>
> I mapped the exe thus:  c:\Python26\python.exe -u "%s %s"
> to extension `py' for all verbs and checked the `script engine' box.
>
> There are no errors in the script itself, i ran it from the command
> line to be sure.  Further, I enabled ASP and tried using python as the
> scripting language.  That generates this error:
>
> 
> Active Server Pages error 'ASP 0129'
> Unknown scripting language
> /cgi/index.asp, line 1
> The scripting language 'Python' is not found on the server.
> 
>
> I can't find any good references for dealing with this, either.
>
> I've dicked around with this for so long, now I don't know which way
> is up, anymore.
>
> Any thoughts on where I might be going wrong, much appreciated.
>
> Thanks.
>
> mp

I had the same problem with Python 2.5 and IIS on Windows XP.  I
wonder if using ActivePython would make any difference?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python libs on Windows ME

2010-08-31 Thread hexusne...@gmail.com
On Aug 31, 2:04 pm, Thomas Jollans  wrote:
> On Tuesday 31 August 2010, it occurred to hexusne...@gmail.com to exclaim:
>
> > I'm not guessing that this is a problem on Windows 98, but on Windows
> > ME modules in /Lib don't seem to load.  Examples include site.py and
> > os.py which are both located in the top level Lib directory.  The same
> > thing happens with Python 2.3, 2.4, and 2.5.  I can't get IDLE to load
> > and the Python interpreter always complains that it can't load the
> > "site" module even if Python is run from the same directory as the
> > module (note: this does not happen if a module is loaded from the
> > current working directory while in the interpreter).
>
> What is sys.path set to ?
>
> python.exe -c "import sys; print(sys.path)"
>
> It sounds like the stdlib directory is not on sys.path. Couldn't say why
> though...
>
>
>
> > I would use another os like Linux or Windows 2000, but this particular
> > computer can't even seem to handle even the most minimal graphical
> > Linux distributions.
>
> Really? I'm sure you can get Linux on there somehow. It might not be trivial,
> but it should definitely be possible. Out of interest: what distros did you
> try?

I think Puppy Linux might work, but I'd need GTK for wxPython, and I
assume that means version 2 of GTK which I'm not sure comes with Puppy
Linux and I've experienced problems in the past compiling GTK with './
configure && make' and so on.

Yeah, for some reason, the sys.path variable was set with 'python'
instead of 'Python25'.  Funny how I never had that problem on Windows
XP.  Renaming the directory or appending to sys.path fixes that
problem.
-- 
http://mail.python.org/mailman/listinfo/python-list