Hello guys,
I have problem to login, my wiki is locate on localhost/wikiSimpop
Here my user-config.py : *
mylang = 'fr'
family = 'wikiSimpop'
usernames['wikiSimpop']['fr'] = u'abotsimpop'*
Here my family wikiSimpop_family.py :
*
# -*- coding: utf-8
-*-
import family
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'wikiSimpop'
self.langs = {
'fr':
'wikiSimpop',
}
self.namespaces[4] = {
'_default': [u'wikiSimpop', self.namespaces[4]['_default']],
'fr': u'wikiSimpop',
}
def scriptpath(self, code):
return '/wikiSimpop'*
*
And the probleme is : *
*
srey@ubuntu:~/STAGE2/RSYNC/DEV/SANDBOX/PYTHON/pywikipedia$ python login.py
-v -v -pass:postgres*
DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without
decoder!
File "login.py", line 316, in <module>
main()
File "login.py", line 274, in main
for arg in wikipedia.handleArgs():
File
"/home/srey/STAGE2/RSYNC/DEV/SANDBOX/PYTHON/pywikipedia/wikipedia.py", line
6498, in handleArgs
output('Pywikipediabot %s' % (version.getversion()))
File
"/home/srey/STAGE2/RSYNC/DEV/SANDBOX/PYTHON/pywikipedia/wikipedia.py", line
6820, in output
print traceback.print_stack()
None
DBG> Attempting to recover, but please report this problem
Pywikipediabot nightly:pywikipedia (r6998, juin 25 2009, 14:41:11)
DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without
decoder!
File "login.py", line 316, in <module>
main()
File "login.py", line 274, in main
for arg in wikipedia.handleArgs():
File
"/home/srey/STAGE2/RSYNC/DEV/SANDBOX/PYTHON/pywikipedia/wikipedia.py", line
6499, in handleArgs
output('Python %s' % (sys.version))
File
"/home/srey/STAGE2/RSYNC/DEV/SANDBOX/PYTHON/pywikipedia/wikipedia.py", line
6820, in output
print traceback.print_stack()
None
DBG> Attempting to recover, but please report this problem
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3]
WARNING: Using -v -v on login.py might leak private data. When sharing,
please double check your password is not readable and log out your bots
session.
Logging in to wikiSimpop:fr as abotsimpop
self.site.postData(/w/index.php?title=Sp%C3%A9cial:Userlogin&useskin=monobook&action=submit,
wpSkipCookieCheck=1&wpPassword=XXXXX&wpDomain=&wpRemember=1&wpLoginattempt=Aanmelden%20%26%20Inschrijven&wpName=abotsimpop)
404/Not Found
Date: Fri, 26 Jun 2009 17:58:26 GMT
Server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 261
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /w/index.php was not found on this server.</p>
<hr>
<address>Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch
Server at localhost Port 80</address>
</body></html>
No trace of localhost, no trace of wikiSimpop ... and /w/index.php doesn't
exist for me ... it's api.php and not /w ...
*
Thanks in advance for you help !*
Seb.