Trouble with starting Python 3.6

Posted by Fracch on Wed 22 Mar 2017 06:56 PM — 7 posts, 36,738 views.

#0
When trying to select Python as my scripting language, I get the following error
Error -2147221005 occurred when finding CLSID of scripting language "Python":

Invalid class string

After looking around online, mostly this forum, I've only been able to find help regarding older editions of Python. I am using Python 3.6 (the 32 bit version, as per suggestions I found on this forum), and would really appreciate any help on getting it to work!
Australia Forum Administrator #1
I can reproduce your problem. (I don't use Python much with MUSHclient, so I haven't tried it for years).

Can I clarify these:

  1. Do you absolutely need Python 3.6? Would using Python 2.x be acceptable for your project?
  2. What version of Windows are you using?
  3. Is your PC 32-bit or 64-bit?
  4. If possible, can you use Lua instead? Lua is embedded with the MUSHclient releases, and definitely works. Lua is different to Python, but that that much different. You have functions, variables, and tables keyed by strings, numbers, and other things.
#2
Thanks for the quick response!

I'm using Windows 7, and my PC is 64 bit.

I would strongly prefer to use Python 3.6, as I've already done a substantial amount of work, to the point of really only needing to interface with MUSHclient to be done the project.

If it is completely impossible to use Python 3.6, I will likely do my best to learn and change it to Lua in the time frame.
Australia Forum Administrator #3
I'm a little surprised you have got so far through your project without actually using the MUSHclient/Python interface.

Possibly you could control MUSHclient via the COM interface - however I don't know enough about Python to advise how this might be achieved.

Depending on how much code you have, and what it does, you may find that a conversion to Lua is quite practical.
#4
Well, essentially, I'm building a maze solving bot. I simply need to pull the room description into a script (I've set up rooms that have weights etc) to allow for dijkstra's algorithm to run, and then feed movement commands back into the client based on the algorithm's best path to the exit.

At this point, if your suggestion is that Python 3.6 can't be implemented, and to use lua, I'll have to see if that is more feasible than simulating the input I want from MUSHclient in python instead.

Regardless, thank you very much for your help, and for creating MUSHclient in the first place!
Australia Forum Administrator #5
OK, I've given up getting Python to work. This is one of the reasons I favour Lua these days, at least it is supplied with the client, and any scripts I publish using it will work "out of the box" for other users.

As for your maze, you may want to read this thread:

https://www.gammon.com.au/forum/?id=7306

Read all the pages, it's quite interesting. We tackled the issue of finding the fastest way from A to B in there. Note that (my solution at least) did not consider weightings, but you could add that in.

The same algorithm is in the MUSHclient mapper, so that you can find the fastest way to (say) the weapons shop in a given MUD.
USA Global Moderator #6
All problems are old problems

http://mushclient.com/forum/?id=7794#42
http://gammon.com.au/forum/?id=9844

You're probably missing pywin32.