First sorry if you did get my mail earlier and responded to it.
I didn't receive any reply because my account was unconfirmed.
I just confirmed y email and got a welcome message.
So I m sorry to ask twice
Here is my problem:
Iist glad to meet you all;
I am looking for help to set up a bot for my own mediawiki, I have python 2.6
installed.
Here is my user-config.py
http://pastebin.com/AtFUHPeq
In families folder I created a file ncdb_family.py, content:
http://pastebin.com/0KW4EVBY
I edited config.py
http://pastebin.com/Zz3hrbHX
I edited family.py:
http://pastebin.com/0pEwKR9h
And finally I edited the wikipedia.py
http://pastebin.com/gEPEqNZs
I tried to follow the tutorial but I still run in some trouble when I use
login.py or replace.py
D:\Development\python>python.exe D:\development\pymw\login.py
Traceback (most recent call last):
File "D:\development\pymw\login.py", line 58, in <module>
import re, os, query
File "d:\development\pymw\query.py", line 28, in <module>
import wikipedia, time
File "d:\development\pymw\wikipedia.py", line 4618, in <module>
class Site(object):
File "d:\development\pymw\wikipedia.py", line 4789, in Site
def __init__(self, code, fam=ncdb, user=root, persistent_http = False ):
NameError: name 'ncdb' is not defined
D:\Development\python>python.exe D:\development\pymw\replace.py
Traceback (most recent call last):
File "D:\development\pymw\replace.py", line 147, in <module>
import wikipedia as pywikibot
File "d:\development\pymw\wikipedia.py", line 4618, in <module>
class Site(object):
File "d:\development\pymw\wikipedia.py", line 4789, in Site
def __init__(self, code, fam=ncdb, user=root, persistent_http = False ):
NameError: name 'ncdb' is not defined
Could you please help me setting my python bot :)
Thanks