Bugs item #2926171, was opened at 2010-01-05 12:16
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Yr Wyddfa (yrwyddfa)
Assigned to: Nobody/Anonymous (nobody)
Summary: Errorkey: query
Initial Comment:
Hi!
I've got a problem activating pywikipediabot - scripts at our private wiki, and since today, the same error message while logging in.
I'm using Linux ubuntu 9.04 and MediaWiki 1.14.0
Here is the terminal output:
/pywikipedia$ python login.py
Password for user weBot on Dairpedia:de:
Logging in to Dairpedia:de as weBot
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5897, in postData
self._getUserDataOld(text, sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 6168, in _getUserDataOld
blocked = self._getBlock(sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5500, in _getBlock
data = query.GetData(params, self)['query']['userinfo']
KeyError: 'query'
This KeyError also occured, when the login was successful and I tried to start any script.
Please tell me if you need any additional data.
Thanks a lot in advance!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171&group_…
Bugs item #2922896, was opened at 2009-12-29 17:25
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2922896&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Mercy (wikimercy)
>Assigned to: xqt (xqt)
Summary: Bot corrupting characters on eo.wp
Initial Comment:
See http://en.wikipedia.org/w/index.php?title=User_talk:Mercy&diff=334694634&ol… for more information.
An example of a wrong edit can be found here: http://eo.wikipedia.org/w/index.php?title=Maigret&diff=2662069&oldid=2500605
The whole situation happened when I used the feature.py script to add Link_FA templates to the articles.
I'm using Python 2.6.3.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-05 18:44
Message:
done in r7857
pagetext must not decodeEsperantoX() if loaded via API
----------------------------------------------------------------------
Comment By: Mercy (wikimercy)
Date: 2009-12-29 19:15
Message:
Hi, my current SVN revision is nr. 7844 and I'm using the API.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-29 19:03
Message:
I need further informations:
- the actual release of pywikipediabot you are using
- is use_api=True in your user-config.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2922896&group_…
Support Requests item #2926171, was opened at 2010-01-05 12:16
Message generated for change (Settings changed) made by yrwyddfa
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2926171&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
>Private: No
Submitted By: Yr Wyddfa (yrwyddfa)
Assigned to: Nobody/Anonymous (nobody)
Summary: Errorkey: query
Initial Comment:
Hi!
I've got a problem activating pywikipediabot - scripts at our private wiki, and since today, the same error message while logging in.
I'm using Linux ubuntu 9.04 and MediaWiki 1.14.0
Here is the terminal output:
/pywikipedia$ python login.py
Password for user weBot on Dairpedia:de:
Logging in to Dairpedia:de as weBot
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5897, in postData
self._getUserDataOld(text, sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 6168, in _getUserDataOld
blocked = self._getBlock(sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5500, in _getBlock
data = query.GetData(params, self)['query']['userinfo']
KeyError: 'query'
This KeyError also occured, when the login was successful and I tried to start any script.
Please tell me if you need any additional data.
Thanks a lot in advance!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2926171&group_…
Support Requests item #2926171, was opened at 2010-01-05 12:16
Message generated for change (Tracker Item Submitted) made by yrwyddfa
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2926171&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: Yes
Submitted By: Yr Wyddfa (yrwyddfa)
Assigned to: Nobody/Anonymous (nobody)
Summary: Errorkey: query
Initial Comment:
Hi!
I've got a problem activating pywikipediabot - scripts at our private wiki, and since today, the same error message while logging in.
I'm using Linux ubuntu 9.04 and MediaWiki 1.14.0
Here is the terminal output:
/pywikipedia$ python login.py
Password for user weBot on Dairpedia:de:
Logging in to Dairpedia:de as weBot
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5897, in postData
self._getUserDataOld(text, sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 6168, in _getUserDataOld
blocked = self._getBlock(sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5500, in _getBlock
data = query.GetData(params, self)['query']['userinfo']
KeyError: 'query'
This KeyError also occured, when the login was successful and I tried to start any script.
Please tell me if you need any additional data.
Thanks a lot in advance!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2926171&group_…
Support Requests item #2923020, was opened at 2009-12-29 21:17
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2923020&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Install Problem
Group: None
>Status: Pending
Priority: 1
Private: No
Submitted By: Keyril (keyril)
>Assigned to: xqt (xqt)
Summary: Login problem
Initial Comment:
Sorry, but nothing i try works.
I just downloaded r7844, tried again the login.py, but failed with new error messages.
It should be easy:
* local installed MediaWiki 1.13.1
* Windows XP
* path: d:\xampp\htdocs\elysium
* Wikiname: Elysium
* user-config.py:
family = 'elysium'
mylang = 'en'
usernames['elysium']['en'] = 'WikiBot'
*
# -*- coding: utf-8 -*- # REQUIRED
import config, family, urllib # REQUIRED
class Family(family.Family): # REQUIRED
def __init__(self): # REQUIRED
family.Family.__init__(self) # REQUIRED
self.name = 'elysium' # REQUIRED; replace with actual name
self.langs = { # REQUIRED
'en': '127.0.0.1/elysium', # Include one line for each wiki in family
}
# IMPORTANT: if your wiki does not support the api.php interface,
# you must uncomment the second line of this method:
def apipath(self, code):
raise NotImplementedError, "%s wiki family does not support api.php" % self.name
return '%s/api.php' % self.scriptpath(code)
# Which version of MediaWiki is used? REQUIRED
def version(self, code):
# Replace with the actual version being run on your wiki
return '1.13.1'
def code2encoding(self, code):
"""Return the encoding for a specific language wiki"""
# Most wikis nowadays use UTF-8, but change this if yours uses
# a different encoding
return 'utf-8'
#def path(self, code):
# return '/elysium'
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-04 10:36
Message:
You may use the following entries in the family file but do not redefine
the path instance:
self.langs = {
'en': 'localhost',
}
def scriptpath(self, code):
return '/elysium'
----------------------------------------------------------------------
Comment By: Keyril (keyril)
Date: 2010-01-01 19:28
Message:
It seems, that the login works fine if you use the default path (which is
not described), e.g. 127.0.0.1/elysium/w/index.php...
In this case you can delete the "def path" definition, uncomment "apipath"
(for unknown reason, because the api is accessible) and then the login
works.
Family file should look like (whole Wiki MUST be under
htdocs\elysium\w\...:
# -*- coding: utf-8 -*- # REQUIRED
import config, family, urllib # REQUIRED
class Family(family.Family): # REQUIRED
def __init__(self): # REQUIRED
family.Family.__init__(self) # REQUIRED
self.name = 'elysium' # REQUIRED; replace with actual name
self.langs = { # REQUIRED
'en': '127.0.0.1/elysium', # Include one line for each wiki
in family
}
# IMPORTANT: if your wiki does not support the api.php interface,
# you must uncomment the second line of this method:
def apipath(self, code):
raise NotImplementedError, "%s wiki family does not support
api.php" % self.name
return '%s/api.php' % self.scriptpath(code)
# Which version of MediaWiki is used? REQUIRED
def version(self, code):
# Replace with the actual version being run on your wiki
return '1.13.1'
def code2encoding(self, code):
"""Return the encoding for a specific language wiki"""
# Most wikis nowadays use UTF-8, but change this if yours uses
# a different encoding
return 'utf-8'
----------------------------------------------------------------------
Comment By: Keyril (keyril)
Date: 2010-01-01 19:23
Message:
workaround possible (see comment)
----------------------------------------------------------------------
Comment By: Keyril (keyril)
Date: 2009-12-31 08:35
Message:
correct url would be:
http://127.0.0.1/elysium/index.php/Main_Page
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-30 18:27
Message:
What is the right URL to get the Mainpage of your wiki?
----------------------------------------------------------------------
Comment By: Keyril (keyril)
Date: 2009-12-29 21:24
Message:
Sorry, hit the button too quick:
If i try above version of elysium_family.py i get error message for url
127.0.0.1/elysium/w/index.php...
How do i get rid of the "w"?
If i try and uncomment the lowest part with "def path" the path will be
127.0.0.1/elysium/elysium/index.php...
If i set self.langs to 127.0.0.1 without "elysium", the path should be
correct, but the error message is "wrong password or CAPTCHA answer"
I really don't know how to get it working.
Thanks in advance.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2923020&group_…
Support Requests item #2920435, was opened at 2009-12-24 02:42
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2920435&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Install Problem
Group: None
>Status: Pending
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cant login
Initial Comment:
I am running a private wiki that requires login to view pages and uses pretty urls.
When I run login.py and enter the correct password I am told "timed out
WARNING: Could not open 'http://sitename.com/wiki/index.php?title=Special:Userlogin&useskin=monobook…'. Maybe the server or
your connection is down. Retrying in 1 minutes..." . I checked the Apache access log and it says "POST /wiki/index.php?title=Special:Userlogin&useskin=monobook&action=submit HTTP/1.1" 302 -
Any help is greatly apppreciated.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-04 10:24
Message:
could you give me your user-config.py and the family file of your privat
wiki. And what is the right URL to get your main page?
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-12-31 11:16
Message:
Thanks xqt, I tried that but it didn't make a difference.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-30 18:13
Message:
from config-py I found this hint:
# Some sites will require password identication to access the HTML pages
at
# the site. If you have any such site, add lines to your user-config.py
of
# the following form:
#
# authenticate['en.wikipedia.org'] = ('John','XXXXX')
#
# where John is your login name, and XXXXX your password.
# Note:
# 1. This is only for sites that use authentication in the form that
gives
# you a popup for name and password when you try to access any data,
NOT
# for, for example, wiki usernames
# 2. You must use the hostname of the site, not its family/language pair
If you need this request, you should put the authenticate line to your
user-config.py
----------------------------------------------------------------------
Comment By: Keyril (keyril)
Date: 2009-12-29 20:56
Message:
Hi! I've got the same error.
* I disabled the firewall, checked the status of wiki, mysql, apache
before, then tried it and got the same error message (url was another, of
course).
* I tried the url in Firefox and it worked (opened the Special:Userlogin
page).
* I tried it on two different PCs - one time xampp, one time manually set
up apache, php and mysql, but same error.
* I tried it with sysop account, too, but same error.
Any help is greatly appreciated, too!
Thanks in advance!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2920435&group_…
Bugs item #2905091, was opened at 2009-11-27 19:28
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2905091&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: xqt (xqt)
Summary: interwiki revert war - emptyy pages
Initial Comment:
See
http://de.wikipedia.org/w/index.php?title=Microsoft_Windows_7&action=history
Bot strating from ug: adds interwiki. But bots strarting from other languages found empty page and remove link.
It should be
Getting 60 pages from wikipedia ug...
NOTE: [[ug:Windows 7]] is empty, skipping
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-04 10:17
Message:
fixed in r7851
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-28 18:32
Message:
revert bugfix in r7839 since page must be preloaded for this test
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-28 11:44
Message:
done in r7835 (skipping the start page if page.isEmpty())
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-11-27 19:35
Message:
What's the point of having empty pages? This can be fixed by either
* Removing the empty page check and just add the interwiki
* Check if the starting page is empty and skip it
I would prefer the second option.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2905091&group_…
Bugs item #2913687, was opened at 2009-12-13 13:44
Message generated for change (Settings changed) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2913687&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Don't use interwiki link
Initial Comment:
Hi,
I don't know if it's an error or not but when create warnfiles i've :
WARNING: wikipedia: [[fr:Albert Schweitzer (documentaire)]] links to incorrect [[de:Albert Schweitzer (Film)]]
but i think this must be :
WARNING: wikipedia: [[:fr:Albert Schweitzer (documentaire)]] links to incorrect [[:de:Albert Schweitzer (Film)]]
With ":" before langtype, otherwise this will be understand like a interwiki and not a link to another wikipedia.
Thanks.
pywikipedia trunk r7768
python 2.5.2
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2010-01-04 02:24
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-15 10:37
Message:
what is the related script? I guess you get the lines from the logfile and
put it to a project page?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2913687&group_…
Support Requests item #2924822, was opened at 2010-01-02 10:51
Message generated for change (Settings changed) made by w00sf
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2924822&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Install Problem
Group: None
>Status: Closed
Priority: 8
Private: No
Submitted By: w00sf (w00sf)
Assigned to: xqt (xqt)
Summary: cannot generate user-config.py
Initial Comment:
I encounter an error when executing generate_user_files.py and select to generate user-config.py. I use version r7848 of Pywikipedia Bot on Windows XP.
>C:\Python26\python.exe D:\pywiki\generate_
user_files.py
1: Create user_config.py file
2: Create user_fixes.py file
3: The two files
What do you do? 1
Traceback (most recent call last):
File "D:\pywiki\generate_user_files.py", line 132, in <module>
create_user_config()
File "D:\pywiki\generate_user_files.py", line 47, in create_user_config
know_families = re.findall(r'(.+)_family.py\b', '\n'.join(os.listdir(os.path
.join(base_dir, "families"))))
WindowsError: [Error 3] : 'families/*.*'
version.py output:
>C:\Python26\python.exe D:\pywiki\version.p
y
No user-config.py found in directory 'D:\pywiki'
Creating...
No user-config.py found in directory 'D:\pywiki'
Creating...
No user-config.py found in directory 'D:\pywiki'
Creating...
Traceback (most recent call last):
File "D:\pywiki\version.py", line 74, in <module>
print 'Pywikipedia %s' % getversion()
File "D:\pywiki\version.py", line 20, in getversion
return '%(tag)s (r%(rev)s, %(date)s)' % getversiondict()
File "D:\pywiki\version.py", line 32, in getversiondict
import wikipedia
File "D:\pywiki\wikipedia.py", line 148, in <module>
import config, login, query, version
File "D:\pywiki\config.py", line 86, in <module>
_base_dir = _wt.get_base_dir()
File "D:\pywiki\wikipediatools.py", line 51, in get_base_dir
create_user_config_file()
File "D:\pywiki\wikipediatools.py", line 6, in create_user_config_file
generate_user_files.create_user_config()
File "D:\pywiki\generate_user_files.py", line 47, in create_user_config
know_families = re.findall(r'(.+)_family.py\b', '\n'.join(os.listdir(os.path
.join(base_dir, "families"))))
WindowsError: [Error 3] : 'families/*.*'
----------------------------------------------------------------------
>Comment By: w00sf (w00sf)
Date: 2010-01-03 18:02
Message:
This was not a bug but my mistake.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-03 14:16
Message:
First change your directory path to D:\pywiki\
cd D:\pywiki\
Then try again:
python.exe generate_
user_files.p
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2924822&group_…
Support Requests item #2924822, was opened at 2010-01-02 08:51
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2924822&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Install Problem
Group: None
Status: Pending
Priority: 8
Private: No
Submitted By: w00sf (w00sf)
Assigned to: xqt (xqt)
Summary: cannot generate user-config.py
Initial Comment:
I encounter an error when executing generate_user_files.py and select to generate user-config.py. I use version r7848 of Pywikipedia Bot on Windows XP.
>C:\Python26\python.exe D:\pywiki\generate_
user_files.py
1: Create user_config.py file
2: Create user_fixes.py file
3: The two files
What do you do? 1
Traceback (most recent call last):
File "D:\pywiki\generate_user_files.py", line 132, in <module>
create_user_config()
File "D:\pywiki\generate_user_files.py", line 47, in create_user_config
know_families = re.findall(r'(.+)_family.py\b', '\n'.join(os.listdir(os.path
.join(base_dir, "families"))))
WindowsError: [Error 3] : 'families/*.*'
version.py output:
>C:\Python26\python.exe D:\pywiki\version.p
y
No user-config.py found in directory 'D:\pywiki'
Creating...
No user-config.py found in directory 'D:\pywiki'
Creating...
No user-config.py found in directory 'D:\pywiki'
Creating...
Traceback (most recent call last):
File "D:\pywiki\version.py", line 74, in <module>
print 'Pywikipedia %s' % getversion()
File "D:\pywiki\version.py", line 20, in getversion
return '%(tag)s (r%(rev)s, %(date)s)' % getversiondict()
File "D:\pywiki\version.py", line 32, in getversiondict
import wikipedia
File "D:\pywiki\wikipedia.py", line 148, in <module>
import config, login, query, version
File "D:\pywiki\config.py", line 86, in <module>
_base_dir = _wt.get_base_dir()
File "D:\pywiki\wikipediatools.py", line 51, in get_base_dir
create_user_config_file()
File "D:\pywiki\wikipediatools.py", line 6, in create_user_config_file
generate_user_files.create_user_config()
File "D:\pywiki\generate_user_files.py", line 47, in create_user_config
know_families = re.findall(r'(.+)_family.py\b', '\n'.join(os.listdir(os.path
.join(base_dir, "families"))))
WindowsError: [Error 3] : 'families/*.*'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-03 12:16
Message:
First change your directory path to D:\pywiki\
cd D:\pywiki\
Then try again:
python.exe generate_
user_files.p
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2924822&group_…