Bugs item #2776438, was opened at 2009-04-20 09:13
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2776438&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: confirmed
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Section headers with templates are not correctly recognised
Initial Comment:
Sometimes bot removes valid interwiki which lads to anchor in other article.
See http://cs.wikipedia.org/w/index.php?title=Platnost_(pr%C3%A1vo)&action=hist…
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-18 14:41
Message:
Long story short: it's impossible to do without another API query. We can
use
http://en.wikipedia.org/w/api.php?action=parse&prop=sections&page=Help:Edit…
to do this. We cannot do it using regexps because of template expansions.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-17 15:30
Message:
Based on the wikitext, it's hard to determine whether the section title is
there (evil regexp). We could combine it with a fallback to the API with
action=parse, i.e.
http://de.wikipedia.org/w/api.php?action=parse&text={{:G%C3%BCltigkeit}}
the rewrite doesn't raise SectionErrors altogether.
options:
- stripping the check
- try to get the regexp working
- keep a simple regexp with an API fallback
questions
- how to implement this in the rewrite?
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-17 14:29
Message:
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python interwiki.py
cs:Platnost_%28právo%29
Getting 1 page from wikipedia:cs...
[[cs:Platnost (právo)]]: [[cs:Platnost (právo)]] gives new interwiki
[[de:Gültigkeit#Gültigkeit im Recht]]
Getting 1 page from wikipedia:de...
NOTE: [[de:Gültigkeit#Gültigkeit im Recht]] does not exist. Skipping.
======Post-processing [[cs:Platnost (právo)]]======
Updating links on page [[cs:Platnost (právo)]].
Changes to be made: Robot: Removing [[de:Gültigkeit#Gültigkeit im
Recht]]
- [[de:Gültigkeit#Gültigkeit im Recht]]
ERROR: Found incorrect link to de in [[cs:Platnost (právo)]]
Submit? ([y]es, [n]o, open in [b]rowser, [g]ive up, [a]lways)
tries to refer to
=== {{Anker|Rechtsg\xfcltig}}G\xfcltigkeit im Recht ===\
using #G.C3.BCltigkeit_im_Recht instead does not help
removing {{Anker|...}} does work, if the #Gültigkeit im Recht version is
used...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2776438&group_…
Bugs item #3507957, was opened at 2012-03-18 10:47
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3507957&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: upload.py error with Wikia.com
Initial Comment:
P:\pywikipedia>python version.py
Pywikipedia [http] trunk/pywikipedia (r10023, 2012/03/17, 18:03:32)
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
P:\pywikipedia>python upload.py wikih.jpg
WARNING: Your account on sxerks:en does not have a bot flag. Its edits will be v
isible in the recent changes and it may get blocked.
Reading file wikih.jpg
The filename on the target wiki will default to: wikih.jpg
Enter a better name, or press enter to accept:
The suggested description is:
Do you want to change this description? ([y]es, [N]o) n
Uploading file to sxerks:en via API....
'ascii' codec can't decode byte 0xff in position 622: ordinal not in range(128)
WARNING: Could not open 'http://sxerks.wikia.com/api.php'. Maybe the server or
your connection is down. Retrying in 1 minutes...
Traceback (most recent call last):
File "upload.py", line 472, in <module>
main()
File "upload.py", line 468, in main
bot.run()
File "upload.py", line 440, in run
return self.upload_image()
File "upload.py", line 282, in upload_image
data = query.GetData(params, self.targetSite)
File "P:\pywikipedia\query.py", line 137, in GetData
site.cookies(sysop=sysop)
File "P:\pywikipedia\upload.py", line 46, in post_multipart
cookies=cookies)
File "P:\pywikipedia\wikipedia.py", line 5497, in postData
time.sleep(retry_idle_time * 60)
KeyboardInterrupt
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-18 11:20
Message:
The other bug you refer to is unrelated; that one cast a new exception
within the exception handler that prints the "WARNING..." string.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-18 11:18
Message:
Even in that case, we should not display that message. And a network error
message that's 622 characters long? Really?
The "WARNING: Could not open 'http://sxerks.wikia.com/api.php'. Maybe the
server or your connection is down" displays on *any* error in the
connection, which could still very well be on our part.
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-03-18 11:16
Message:
This is not a Pywikipedia error, this is a connection error, try again
later.
It clearly states: "Could not open 'http://sxerks.wikia.com/api.php'. Maybe
the server or your connection is down."
The line before it may be an encoding error of the network error message
itself, see bug#3153555 at
https://sourceforge.net/tracker/?func=detail&aid=3153555&group_id=93107&ati….
I suppose you have a non-English environment on your computer.
We have nothing to do with wikia server or your network connection.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3507957&group_…
Bugs item #3507957, was opened at 2012-03-18 10:47
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3507957&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: upload.py error with Wikia.com
Initial Comment:
P:\pywikipedia>python version.py
Pywikipedia [http] trunk/pywikipedia (r10023, 2012/03/17, 18:03:32)
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
P:\pywikipedia>python upload.py wikih.jpg
WARNING: Your account on sxerks:en does not have a bot flag. Its edits will be v
isible in the recent changes and it may get blocked.
Reading file wikih.jpg
The filename on the target wiki will default to: wikih.jpg
Enter a better name, or press enter to accept:
The suggested description is:
Do you want to change this description? ([y]es, [N]o) n
Uploading file to sxerks:en via API....
'ascii' codec can't decode byte 0xff in position 622: ordinal not in range(128)
WARNING: Could not open 'http://sxerks.wikia.com/api.php'. Maybe the server or
your connection is down. Retrying in 1 minutes...
Traceback (most recent call last):
File "upload.py", line 472, in <module>
main()
File "upload.py", line 468, in main
bot.run()
File "upload.py", line 440, in run
return self.upload_image()
File "upload.py", line 282, in upload_image
data = query.GetData(params, self.targetSite)
File "P:\pywikipedia\query.py", line 137, in GetData
site.cookies(sysop=sysop)
File "P:\pywikipedia\upload.py", line 46, in post_multipart
cookies=cookies)
File "P:\pywikipedia\wikipedia.py", line 5497, in postData
time.sleep(retry_idle_time * 60)
KeyboardInterrupt
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-18 11:18
Message:
Even in that case, we should not display that message. And a network error
message that's 622 characters long? Really?
The "WARNING: Could not open 'http://sxerks.wikia.com/api.php'. Maybe the
server or your connection is down" displays on *any* error in the
connection, which could still very well be on our part.
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-03-18 11:16
Message:
This is not a Pywikipedia error, this is a connection error, try again
later.
It clearly states: "Could not open 'http://sxerks.wikia.com/api.php'. Maybe
the server or your connection is down."
The line before it may be an encoding error of the network error message
itself, see bug#3153555 at
https://sourceforge.net/tracker/?func=detail&aid=3153555&group_id=93107&ati….
I suppose you have a non-English environment on your computer.
We have nothing to do with wikia server or your network connection.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3507957&group_…
Bugs item #3507957, was opened at 2012-03-18 10:47
Message generated for change (Comment added) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3507957&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: upload.py error with Wikia.com
Initial Comment:
P:\pywikipedia>python version.py
Pywikipedia [http] trunk/pywikipedia (r10023, 2012/03/17, 18:03:32)
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
P:\pywikipedia>python upload.py wikih.jpg
WARNING: Your account on sxerks:en does not have a bot flag. Its edits will be v
isible in the recent changes and it may get blocked.
Reading file wikih.jpg
The filename on the target wiki will default to: wikih.jpg
Enter a better name, or press enter to accept:
The suggested description is:
Do you want to change this description? ([y]es, [N]o) n
Uploading file to sxerks:en via API....
'ascii' codec can't decode byte 0xff in position 622: ordinal not in range(128)
WARNING: Could not open 'http://sxerks.wikia.com/api.php'. Maybe the server or
your connection is down. Retrying in 1 minutes...
Traceback (most recent call last):
File "upload.py", line 472, in <module>
main()
File "upload.py", line 468, in main
bot.run()
File "upload.py", line 440, in run
return self.upload_image()
File "upload.py", line 282, in upload_image
data = query.GetData(params, self.targetSite)
File "P:\pywikipedia\query.py", line 137, in GetData
site.cookies(sysop=sysop)
File "P:\pywikipedia\upload.py", line 46, in post_multipart
cookies=cookies)
File "P:\pywikipedia\wikipedia.py", line 5497, in postData
time.sleep(retry_idle_time * 60)
KeyboardInterrupt
----------------------------------------------------------------------
>Comment By: Bináris (binbot)
Date: 2012-03-18 11:16
Message:
This is not a Pywikipedia error, this is a connection error, try again
later.
It clearly states: "Could not open 'http://sxerks.wikia.com/api.php'. Maybe
the server or your connection is down."
The line before it may be an encoding error of the network error message
itself, see bug#3153555 at
https://sourceforge.net/tracker/?func=detail&aid=3153555&group_id=93107&ati….
I suppose you have a non-English environment on your computer.
We have nothing to do with wikia server or your network connection.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3507957&group_…
Bugs item #3507957, was opened at 2012-03-18 10:47
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3507957&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: upload.py error with Wikia.com
Initial Comment:
P:\pywikipedia>python version.py
Pywikipedia [http] trunk/pywikipedia (r10023, 2012/03/17, 18:03:32)
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
P:\pywikipedia>python upload.py wikih.jpg
WARNING: Your account on sxerks:en does not have a bot flag. Its edits will be v
isible in the recent changes and it may get blocked.
Reading file wikih.jpg
The filename on the target wiki will default to: wikih.jpg
Enter a better name, or press enter to accept:
The suggested description is:
Do you want to change this description? ([y]es, [N]o) n
Uploading file to sxerks:en via API....
'ascii' codec can't decode byte 0xff in position 622: ordinal not in range(128)
WARNING: Could not open 'http://sxerks.wikia.com/api.php'. Maybe the server or
your connection is down. Retrying in 1 minutes...
Traceback (most recent call last):
File "upload.py", line 472, in <module>
main()
File "upload.py", line 468, in main
bot.run()
File "upload.py", line 440, in run
return self.upload_image()
File "upload.py", line 282, in upload_image
data = query.GetData(params, self.targetSite)
File "P:\pywikipedia\query.py", line 137, in GetData
site.cookies(sysop=sysop)
File "P:\pywikipedia\upload.py", line 46, in post_multipart
cookies=cookies)
File "P:\pywikipedia\wikipedia.py", line 5497, in postData
time.sleep(retry_idle_time * 60)
KeyboardInterrupt
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3507957&group_…
Bugs item #3473828, was opened at 2012-01-14 09:37
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3473828&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: Accepted
Priority: 5
Private: No
Submitted By: GanZ (ganz-ru)
>Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetic_changes.py and <code>
Initial Comment:
Here:
http://ru.wikipedia.org/w/index.php?diff=40245627&oldid=39731202http://ru.wikipedia.org/w/index.php?diff=40765267&oldid=39425330
cosmetic_changes.py replaced the internal internal html-text of <code>...</code> with unicode symbols. That's not good, since the tag <code> is for an original representation of codes, including the html-code. So, I propose to add this tag to the elist of exceptions.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-03-17 18:06
Message:
@ganz-du: unfortunatelly this part of code does not use replaceExcept() and
we have no exceptions list where to add that tag.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-17 06:34
Message:
Feel free to submit a patch.
----------------------------------------------------------------------
Comment By: GanZ (ganz-ru)
Date: 2012-03-17 04:00
Message:
As I see, it just necessary to add this tag into arrays of exceptions and
it does not requir editing of any other parts of code. So please accelerate
the processing of of this bug.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3473828&group_…
Bugs item #2776438, was opened at 2009-04-20 09:13
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2776438&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: confirmed
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Section headers with templates are not correctly recognised
Initial Comment:
Sometimes bot removes valid interwiki which lads to anchor in other article.
See http://cs.wikipedia.org/w/index.php?title=Platnost_(pr%C3%A1vo)&action=hist…
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-17 15:30
Message:
Based on the wikitext, it's hard to determine whether the section title is
there (evil regexp). We could combine it with a fallback to the API with
action=parse, i.e.
http://de.wikipedia.org/w/api.php?action=parse&text={{:G%C3%BCltigkeit}}
the rewrite doesn't raise SectionErrors altogether.
options:
- stripping the check
- try to get the regexp working
- keep a simple regexp with an API fallback
questions
- how to implement this in the rewrite?
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-17 14:29
Message:
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python interwiki.py
cs:Platnost_%28právo%29
Getting 1 page from wikipedia:cs...
[[cs:Platnost (právo)]]: [[cs:Platnost (právo)]] gives new interwiki
[[de:Gültigkeit#Gültigkeit im Recht]]
Getting 1 page from wikipedia:de...
NOTE: [[de:Gültigkeit#Gültigkeit im Recht]] does not exist. Skipping.
======Post-processing [[cs:Platnost (právo)]]======
Updating links on page [[cs:Platnost (právo)]].
Changes to be made: Robot: Removing [[de:Gültigkeit#Gültigkeit im
Recht]]
- [[de:Gültigkeit#Gültigkeit im Recht]]
ERROR: Found incorrect link to de in [[cs:Platnost (právo)]]
Submit? ([y]es, [n]o, open in [b]rowser, [g]ive up, [a]lways)
tries to refer to
=== {{Anker|Rechtsg\xfcltig}}G\xfcltigkeit im Recht ===\
using #G.C3.BCltigkeit_im_Recht instead does not help
removing {{Anker|...}} does work, if the #Gültigkeit im Recht version is
used...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2776438&group_…