Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ Python
➜ Trouble with starting Python 3.6
Trouble with starting Python 3.6
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Fracch
(3 posts) Bio
|
Date
| Wed 22 Mar 2017 06:56 PM (UTC) |
Message
| 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! | Top |
|
Posted by
| Nick Gammon
Australia (23,099 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 22 Mar 2017 11:23 PM (UTC) |
Message
| 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:
- Do you absolutely need Python 3.6? Would using Python 2.x be acceptable for your project?
- What version of Windows are you using?
- Is your PC 32-bit or 64-bit?
- 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.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fracch
(3 posts) Bio
|
Date
| Reply #2 on Wed 22 Mar 2017 11:52 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,099 posts) Bio
Forum Administrator |
Date
| Reply #3 on Thu 23 Mar 2017 04:18 AM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fracch
(3 posts) Bio
|
Date
| Reply #4 on Thu 23 Mar 2017 04:24 AM (UTC) |
Message
| 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! | Top |
|
Posted by
| Nick Gammon
Australia (23,099 posts) Bio
Forum Administrator |
Date
| Reply #5 on Thu 23 Mar 2017 09:03 PM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #6 on Fri 24 Mar 2017 01:59 PM (UTC) Amended on Fri 24 Mar 2017 02:16 PM (UTC) by Fiendish
|
Message
| |
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
24,809 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top