Python 2.6 error

Posted by Poromenos on Sun 15 Mar 2009 09:50 PM — 6 posts, 24,191 views.

Greece #0
I just installed Python 2.6 and tried to run MC, and upon loading a plugin which depends on sqlobject I get:


Script error
Plugin: Roster (called from world: Poromenos)
Execution of line 145 column 0
Immediate execution
Traceback (most recent call last):
  File "<Script Block >", line 145, in <module>
    from sqlobject import *
  File "i:\libs\python26\lib\site-packages\sqlobject-0.11dev_r3792-py2.6.egg\sqlobject\__init__.py", line 5, in <module>
    from main import *
  File "i:\libs\python26\lib\site-packages\sqlobject-0.11dev_r3792-py2.6.egg\sqlobject\main.py", line 32, in <module>
    import dbconnection
  File "i:\libs\python26\lib\site-packages\sqlobject-0.11dev_r3792-py2.6.egg\sqlobject\dbconnection.py", line 10, in <module>
    import urllib
  File "I:\libs\Python26\lib\urllib.py", line 26, in <module>
    import socket
  File "I:\libs\Python26\lib\socket.py", line 46, in <module>
    import _socket
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

Line in error: 
from sqlobject import *
Error context in script:
 141 :  
 142 : 
 143 : 
 144 : import re
 145*: from sqlobject import *
 146 : 
 147 : roster_chars = []



Any idea why?
Amended on Sun 15 Mar 2009 09:51 PM by Poromenos
Netherlands #1
A bit of googling found this post on their mailing list: http://mail.python.org/pipermail/python-list/2009-February/698953.html

Basically the issue is that you need to install a redistributable set of dll's which have been so common that the installer seems to have overlooked it. Imo, a stupid mistake on both the side of the Python maintainers, although the technical story makes me want to blame Microsoft too. It seems like such a messy and cluttered system. >_<
Greece #2
I don't know, I have VS2008 so the files should already have been there...
Greece #3
I just installed the updated pack (with SP1) and nothing... For some reason, Python can't load its own _socked.pyd...

The interpreter loads this fine, so I'm thinking it's a MUSHclient problem...

When I try to load the plugin, I also get:


---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!

Program: I:\Program Files\MUSHclient\mushclient.exe

R6034

An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.


Amended on Mon 16 Mar 2009 05:39 AM by Nick Gammon
Netherlands #4
I can't help, although it seems those side-by-side assemblies mentioned in the link I gave you might be your answer. But that's about all I can do for you right now.
Greece #5
Well, thanks for your help, I'll see if I can get this to work...