Python.dll revisited (possible resolution)

A place for people to post strange occurances that could be potential bugs.

Moderator: Board moderators

Leaf
Forum Aficionado
Posts: 1994
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Python.dll revisited (possible resolution)

Post by Leaf »

Bug # [ 1294859 ] python wont load

Anyone else having problems or seeing errors with Python with the last two Windows Server Snapshots?

If so, could you report the details here on at SF?
https://sourceforge.net/tracker/index.p ... tid=113833

The suggested configuration changes didn't work for me, but it seems the latest snapshot has resolved the problem. If others can confirm, I'll go ahead and close the bug.

Thanks.
"Put another, more succinct way: don't complain, contribute. It's more satisfying in the long run, and it's more constructive."
Eric Meyer
User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

Post by bencha »

on the last windows server snapshot, i still have the bug and needed to delete the plugin_python.dll. Even if i don't know what it does, the new animator plugin loads well.
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post by Ryo »

Do you have Python installed? Is the python.dll (or python24.dll) file somewhere in your path?
User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

Post by bencha »

yes it is, and that's why it doesn't work. i.e.
no python => "can't find python.dll"
python => "fatal error, shall i send a message to microsoft ?"
and, before you ask, it's a recent version too. 2.4.1 i think.
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post by Ryo »

What Python package did you install?
User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

Post by bencha »

It was python 2.4.1 from pyhon.org.
I removed it and switched to ActivePython-2.4.2.10 as recommended by Leaf but i still have the bug

Code: Select all

Initializing plugins
Plugins directory is share/plugins/
 -> Loading plugin : plugin_animator.dll
CFAnim 2.0a init
CFAnim 2.0a post init
 -> Loading plugin : plugin_python.dll
CFPython 2.0a init
CFPython 2.0a post init
and then the fatal error caused by crossfire32.exe in ntdll.dll
Removing the plugin_python.dll makes the server run
Xypher
Luser
Posts: 14
Joined: Wed Jun 29, 2005 11:16 pm

Post by Xypher »

I have the same problem. It's caused by the running of the Crossfire Python startup script, via this line:

Code: Select all

PyRun_SimpleFile(scriptfile, cf_get_maps_directory("python/events/python_init.py"));
It's in cfpython.c, line 874. I'm trying to create a patch...
Xypher
Luser
Posts: 14
Joined: Wed Jun 29, 2005 11:16 pm

Post by Xypher »

Mmmm... its a problem with Python 2.4 and the server. Use 2.3 and it will work fine. I'm not sure why, but that seems to be the solution...
User avatar
bencha
Junior member
Posts: 110
Joined: Tue Feb 22, 2005 3:24 pm
Location: Paris

Post by bencha »

Maybe the best solution is to drop out python and use a real modern language like ruby :wink:

</troll>
techolous
Regular
Posts: 77
Joined: Thu Jun 17, 2004 2:41 am
Location: Eastern Coast of the United States

Post by techolous »

bencha wrote:Maybe the best solution is to drop out python and use a real modern language like ruby :wink:

</troll>
If anything it will probably be lua, or something else with as small of a footprint.
Post Reply