[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Python
. . -> [Subject]  Python loading woes once more!
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Python loading woes once more!

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Thu 24 Dec 2009 05:34 AM (UTC)
Message
I'm giving Python another shot with the latest MUSHclient, latest Python etc. And now I got an error different than the usual one, so it definitely is not the 'scripting engine is not registered' issue that causes trouble so often.

setting site
World: Untitled world
Error -2147467259 occurred when setting site:

Unspecified error


I bet it is a problem in Python, but I'd love to know.. what is this 'setting site' event? I got the sources for 4.43 and searched for that string, but no luck there. If it is a bug in Python I'd like to be able to point out what function call goes wrong when writing a bug report. :)

For what it matters, I am using english W7 Ultimate 64-bit, with Python 3.1.1 and the latest pywin32 for that same version.

(I don't have a compiler installed and I don't really want to go through the MUSHclient woes of getting it compiling either, so I hope Nick or someone else might be able to point out what bit goes wrong here... or if the fault is in MUSHclient, fix it in MUSH. =P)
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #1 on Thu 24 Dec 2009 05:50 AM (UTC)

Amended on Thu 24 Dec 2009 06:07 AM (UTC) by Worstje

Message
Ok, nevermind. I seem to have found the relevant code by manually searching on ShowError instead. Weird. :/

Edit: searching subdirectories was turned off.. yeah, that'll cause such silly mistakes. :)
[Go to top] top

Posted by Fraun   (2 posts)  [Biography] bio
Date Reply #2 on Mon 01 Feb 2010 12:22 AM (UTC)
Message
I'm getting the same thing. So, what was the problem?

I had Python 2.5 installed, scripting worked fine. I think I have 2.7 and 3.1 installed now, and suddenly scripting got broken.

Should I just upgrade my copy of MUSHclient? I wasn't planning on searching the source code since somebody else apparently had the problem.
[Go to top] top

Posted by Fraun   (2 posts)  [Biography] bio
Date Reply #3 on Mon 01 Feb 2010 12:36 AM (UTC)
Message
Searched this site and found a discussion on python "installation:"
http://www.gammon.com.au/forum/?id=9844

Basically, it involves running this python file, which is part of the win32com package, registering the runtime as a COM object (a la axscript):
C:\Python27\Lib\site-packages\win32comext\axscript\client\pyscript.py --register

Change version/install location as necessary.
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #4 on Mon 01 Feb 2010 07:39 AM (UTC)

Amended on Mon 01 Feb 2010 07:41 AM (UTC) by Worstje

Message
The ActiveScripting/WSH facility in the pywin32 package for Python is broken in the 3.0 branches. Install 2.6 and the pywin32 package for it, and to register it properly, just doubleclick the C:\Python2x\Lib\site-packages\win32comext\axscript\client\pyscript.py file.

I have already bugged the fact that the 3.x branch is bugged as hell for active scripting, but to my knowledge it isn't fixed yet.

Oh, and I am using 2.6 by the way. Not 2.7 because it was two days out or so when I installed, and there was no proper pywin32 package available for it yet at that time. :)

Edit: Just to clarify, this is a PYTHON issue, not a MUSHclient one. There's some annoying visual glitches when using MUSH @ W7, though. :(
[Go to top] top

Posted by Hurriedcorgi   USA  (6 posts)  [Biography] bio
Date Reply #5 on Mon 20 Aug 2012 11:26 AM (UTC)

Amended on Mon 20 Aug 2012 11:42 AM (UTC) by Hurriedcorgi

Message
I am having this problem too. I am using the latest version of Python and the windows package. I can't find anyone else having this problem except with MUSHclient. I am not trying to bash on MC - I love it and it's the only client I'll use but it sucks that I can't script in Python on it...

Hope someone figures out a fix soon.
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Tue 21 Aug 2012 01:39 AM (UTC)
Message
I can't help but maybe a Python user will know.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Hurriedcorgi   USA  (6 posts)  [Biography] bio
Date Reply #7 on Tue 21 Aug 2012 06:55 AM (UTC)
Message
I'd guess it's safe to say Python /does not/ work with MUSHclient for whatever reason any more. I have tried every single set of instructions to be found on the forum dealing with this subject from start to finish with fresh installs. I am relatively new to python and scripting in MUSHclient but not new to working with development environments so I am pretty confident that if it had anything to do with following the instructions incorrectly I would of stumbled on it by now. Guess scripting with Python is out. I don't usually give up on something but I have put more time into it at this point than utility I would of gained from being able to script in Python unfortunately.
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #8 on Tue 21 Aug 2012 08:07 PM (UTC)
Message
Lua is better anyway. *shrug*

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Wed 22 Aug 2012 09:08 AM (UTC)
Message
Hurriedcorgi said:

I'd guess it's safe to say Python /does not/ work with MUSHclient for whatever reason any more.


I'm sorry about that, but I don't have any control over what the Python developers release. The Lua interface however is supplied with the client, and should work reliably.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

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.


10,461 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]