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