Getting Python to work with Mushclient

Posted by Delu on Mon 13 Dec 2010 02:17 AM — 5 posts, 28,863 views.

#0
My friend is having problems getting Python to work with Mushclient. She has ActivePython 2.66 installed.

These are the errors she's getting when she tries to install a plugin written in Python (this plugin works perfectly fine for me):

Quote:

[WARNING] C:\Working folder\joy documents\MUSH\MUSHclient\worlds\plugins\Loki_System.xml
Line 124: Could not initialise script engine (Cannot load)


Quote:

Error number: -2147221164
Event: loading scripting engine
Description: Error -2147221164 occurred when loading scripting engine: Class not registered
Amended on Mon 13 Dec 2010 02:19 AM by Delu
Australia Forum Administrator #1
Search this forum for "2147221164". There are a few posts about it. Make sure your friend downloaded the 32-bit installer (x86) and not the 64-bit one.

The latest version seems to be ActivePython 2.7.1.3 from this site:

http://www.activestate.com/activepython/downloads

#2
Yes, she downloaded the 32-bit installer.

I've looked through the threads in this forum for that error, but most of them seem to have to do with the python.org install of Python, and recommend ActivePython as the solution. As she started out with ActivePython in the first place, I'm not quite sure what she's supposed to do.

She's also tried running PythonPath}\Lib\site-packages\win32comext\axscript\client\pyscript.py.
Netherlands #3
Upto now, I haven't been able to figure out what makes it work for some people and not for others, as I never was able to troubleshoot these installation issues with someone who had them. I've had a couple of friends who have had these issues, but somehow they either never solved it or it never came up again. Personally, I haven't had that problem.

My best guess is that you ought to make sure to run as an administrator when you install Python. The COM related stuff requires administrator privileges, and maybe something is bugged in there that it doesn't ask you to give it those privileges, and that it silently fails.

Again: I'm just guessing. But running the appropriate stuff as an admin might help (be it the installer, the ax_client.py script, or both.)
USA #4
In addition to the ActivePython, you need to ensure you have the pywin32 bindings downloaded and installed

http://sourceforge.net/projects/pywin32/

After that, run the ax_client script and restart MUSH.