registering script engine (python)

Posted by Tartaros on Tue 29 Jul 2003 12:20 AM — 10 posts, 46,461 views.

#0
I have an issue with the registering of python dll. I installed the mushclient (tried 2 times) and my python did not work (actually it works for normal python apps)...it just refused to register the script engine no matter what i did...
I have windows ME btw.
Dunno what to do with it...?

here is what it keeps crying:

Error number: -2147221005
Event: finding CLSID of scripting language "Python"
Description: Error -2147221005 occurred when finding CLSID of scripting language "Python":

Invalid class string

Called by:
Amended on Tue 29 Jul 2003 12:33 AM by Tartaros
Australia Forum Administrator #1
There is a difference between Python apps (which use the executable) and Python scripting (which uses the DLL).

There is a "register" Python app somewhere in the (Python) download - you need to find that and run it. Reinstalling MUSHclient won' t do much.
#2
I'm having the exact same problem, but I can't find a register app. I've installed python and all, searched for anything that will help but I still get the same error.
Australia Forum Administrator #3
Have you read this:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=1666

In particular this sentence: "After installing it, run C:\python22\lib\site-package\win32comext\client\pyscript.py --register to enable the IActiveScript registry entries.".
#4
Ok found it. Apparently python doesn't come with the stuff I need for scripting, and I had python 2.3. I downloaded the windows stuff for 2.3 but there was some bizarre error during install, so I removed both and got python 2.2 and the windows extensions for that and it worked fine. Thanks for the help.
Russia #5
Even though this is old... There was some issue with ActivePython beyond version 2.2.2 (build 224) - which was the last one of the breed that I managed to get to work - that prevented win32 extensions from registering correctly and me from upgrading to Python 2.3. Installing Python 2.3.3 from python.org and win32all 163 on top of that worked like a charm though. So if you want to use the latest version of Python with Mushclient then use the original distributions from python.org.
Canada #6
I'm having a bit of a problem similar to Blasphemy. I installed python 2.4 from the python.org site, but I can't locate the pyscript file. The "site-packages" directory exists, but is completely empty.

Did they remove all pacakages from the base installation of python?

I tried searching for the pyscript download, but what I got didn't seem to help the problem much. Any help would be appreciated.
Russia #7
You need Python (which you have) plus the package called "pywin32". A link to that is usually present on the www.python.org download page for each new version. Install pywin32 and it should start working.
Canada #8
Thanks Ked! Python scripting seems to be working dandy now.

For those who are wondering, you can get python at:
www.python.org


You can download the pywin32 package from sourceforge:
http://sourceforge.net/project/showfiles.php?group_id=78018&package_id=79063

After installing it, you'll find the pyscript.py file in
\Python24\Lib\site-packages\win32comext\axscript\client\pyscript.py

Which is a slightly different location than described in previous posts.
Amended on Tue 15 Mar 2005 04:03 PM by Bobble
#9
I know it's been a while on this forum post. But has anyone had any luck getting Python3.1 to work. I've tried ActivePython and pywin32. I have been unfortunate in getting getting windows 7 to register python as a scripting engine for MUSH.