python problems

Requests for assistance and other HOWTOs.

Moderator: Board moderators

woo
Senior member
Posts: 427
Joined: Tue Jun 15, 2004 10:32 pm
Location: Atlanta, GA
Contact:

python problems

Post by woo »

Trying to do some work on a new guild system, thought about using a python powered board where a the GM (Guild Master) can add or remove names of those allowed to enter easily.

So I went to use the DM & IPO boards as an example - except when I start the map ediitor, and open the dmboard, i get (in the shell i stared the map editor from):
Found event_say_options without plugin name. Setting to "Python".

When I start the server, and stand near the board, and do:
say list

I get the following (in the shell i started the server from - not to the logfile):
PYTHON - HandleEvent:: got script file >/python/IPO/board.py<
Traceback (most recent call last):
File "/usr/games/crossfire/share/crossfire/maps/python/IPO/board.py", line 26, in ?
import CFBoard
ImportError: No module named CFBoard
PYTHON - HandleEvent:: script loaded (/python/IPO/board.py)!

The server however seems to be working somewhat, as start gives me:
[root@lilwoo bin]# /usr/games/crossfire/bin/crossfire
CFPython Plugin loading.....
PYTHON - Start initCFPython.
[Done]
PYTHON - Start postinitPlugin.

FYI stuff:
[root@lilwoo bin]# rpm -q python
python-2.2.3-5
[root@lilwoo bin]# uname -a
Linux lilwoo 2.4.21-20.EL #1 Wed Aug 18 20:58:25 EDT 2004 i686 i686 i386 GNU/Linux
[root@lilwoo bin]#

Anyone have any ideas?
User avatar
Salathar
Junior member
Posts: 245
Joined: Mon Apr 26, 2004 12:21 am

Post by Salathar »

Did you pass any options to ./configure ?
Do you have python/CFBoard.py in the directory where server looks for maps ?
woo
Senior member
Posts: 427
Joined: Tue Jun 15, 2004 10:32 pm
Location: Atlanta, GA
Contact:

Post by woo »

No, I didn't pass anything to configure. I'll try telling it where python is, but I'm going to wait for CVS to let me download (seems down) the latest before I try again.
Post Reply