https://bugzilla.wikimedia.org/show_bug.cgi?id=69370
Bug ID: 69370
Summary: Unexpected CircularRedirect exception
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: redirect.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Web browser: ---
Mobile Platform: ---
redirect.py get an unexpected CircularRedirect exception:
>>> User:EvanBlass/sandbox <<<
Links to: [[Draft:Evan Blass]].
Links to: [[Evan Blass]].
- #REDIRECT [[Draft:Evan Blass]]
+ #REDIRECT [[Evan Blass]]
.Page [[User:EvanBlass/sandbox]] saved
..Traceback (most recent call last):
File "C:\pwb\core\pwb.py", line 171, in <module>
run_python_file(fn, argv, argvu)
File "C:\pwb\core\pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "C:\pwb\core\scripts\redirect.py", line 820, in <module>
main()
File "C:\pwb\core\scripts\redirect.py", line 817, in main
bot.run()
File "C:\pwb\core\scripts\redirect.py", line 726, in run
self.fix_double_redirects()
File "C:\pwb\core\scripts\redirect.py", line 535, in fix_double_redirects
for redir_name in self.generator.retrieve_double_redirects():
File "C:\pwb\core\scripts\redirect.py", line 305, in
retrieve_double_redirects
for redir_page in gen:
File "C:\pwb\core\scripts\redirect.py", line 365, in
get_moved_pages_redirects
redirectsOnly=True):
File "C:\pwb\core\pywikibot\page.py", line 770, in getReferences
content=content
File "C:\pwb\core\pywikibot\site.py", line 1997, in pagereferences
namespaces=namespaces, step=step, content=content),
File "C:\pwb\core\pywikibot\site.py", line 1946, in pagebacklinks
if redir.getRedirectTarget() == page:
File "C:\pwb\core\pywikibot\page.py", line 1322, in getRedirectTarget
return self.site.getredirtarget(self)
File "C:\pwb\core\pywikibot\site.py", line 1800, in getredirtarget
raise pywikibot.CircularRedirect(target_title)
pywikibot.exceptions.CircularRedirect: Page User talk:Belam is a circular
redire
ct.
<class 'pywikibot.exceptions.CircularRedirect'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72943
Bug ID: 72943
Summary: interwiki dump format
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: Windows 7
Status: NEW
Severity: normal
Priority: Unprioritized
Component: interwiki.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
Created attachment 17010
--> https://bugzilla.wikimedia.org/attachment.cgi?id=17010&action=edit
try to remove or add one line
intwerwiki dump format in core is weird - I am not able to edit it, because it
opens in hexa mode.
Compat format was simple .txt
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73124
Bug ID: 73124
Summary: additional space causes crash
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: interwiki.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
When is in interwiki link space betveen namespace and name, bot crashes:
pwb.py interwiki -async -family:wiktionary -cleanup -continue
...
Retrieving pages from wiktionary:fr.
WARNING: loadpageinfo: Query on [[fr:Categorie: Abreviations en italien]]
returned data on 'Categorie:Abreviations en italien'
Dump cs (wiktionary) written.
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 178, in <module>
run_python_file(fn, argv, argvu)
File "D:\Py\rewrite\pwb.py", line 75, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "D:\Py\rewrite\scripts\interwiki.py", line 2646, in <module>
main()
File "D:\Py\rewrite\scripts\interwiki.py", line 2621, in main
bot.run()
File "D:\Py\rewrite\scripts\interwiki.py", line 2365, in run
self.queryStep()
File "D:\Py\rewrite\scripts\interwiki.py", line 2338, in queryStep
self.oneQuery()
File "D:\Py\rewrite\scripts\interwiki.py", line 2334, in oneQuery
subject.batchLoaded(self)
File "D:\Py\rewrite\scripts\interwiki.py", line 1305, in batchLoaded
if not page.exists():
File "D:\Py\rewrite\pywikibot\page.py", line 564, in exists
return self.site.page_exists(self)
File "D:\Py\rewrite\pywikibot\site.py", line 2288, in page_exists
return page._pageid > 0
AttributeError: 'Page' object has no attribute '_pageid'
<type 'exceptions.AttributeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Because of impossibility of change dumpfile
(https://bugzilla.wikimedia.org/show_bug.cgi?id=72943 )
I modified this page
https://cs.wiktionary.org/w/index.php?title=Kategorie:Italské_zkratky&diff=…
so if anyone wants to reproduce, must edit another page
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70970
Bug ID: 70970
Summary: use DeprecationWarning system
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
pywikibot includes a lot of deprecation methods and parameters to support old
code. The deprecation messages are logged using the normal python logging
system, but are not routed through warnings.DeprecationWarning, which allows
command line control over whether they are displayed (and defaults to not being
displayed)
https://docs.python.org/2/library/warnings.html#warnings.warn
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73398
Bug ID: 73398
Summary: claimit.py should get list of Q for a property
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: reza.energy(a)gmail.com
Web browser: ---
Mobile Platform: ---
I want to add add multy Q to a property like below but code doesn't support
multiple Q input
python pwb.py claimit -page:foo P140 Q47740,Q432,Q9585 -exists:pt -pt:0
please add this possibility
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70702
Bug ID: 70702
Summary: claimit and harvest_template - add another value for
one property
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
Some items needs to have two values for one property.
typical example is p31
instance of castle + instance of cultural monument
harvest_template and claimit should
- check, if this property exists
- if no
-- add property with new value
- if yes
-- check value
-- if same
--- skip
--if another
--- add another value
(claimit -pagegenerator P31 Q123)
Additionally these script should be able to replace one value with another
(P123: Q123 -> Q456)
(claimit -pagegenerator P31 Q456 -overwrite:Q123)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55002
Web browser: ---
Bug ID: 55002
Summary: claimit.py sample: add option to allow checking for
identical statement (same property with same value)
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/344/
Reported by: apac1
Created on: 2013-08-29 03:55:55.886000
Subject: claimit.py sample: add option to allow checking for identical
statement (same property with same value)
Original description:
Currently statements are not created if there is already an existing statement
with the same property.
A new option could allow to add statement if the same property, but different
values.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=67284
Bug ID: 67284
Summary: claimit.py should add another value but not duplicate
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
When some item have P12=Q1234, claimit.py does not change this value
when using -exists:ptq, script will add new value, but also can create
duplicate statement with same value
https://www.wikidata.org/w/index.php?title=Q11723060&diff=141220723&oldid=8…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73410
Bug ID: 73410
Summary: Use an external package for transliteration
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Pywikibot allows transliteration of text before writing to files/ttys.
pywikibot/userinterfaces/transliteration.py - 108K
There are existing packages which try to achieve similar goals, such as
https://pypi.python.org/pypi/translithttps://pypi.python.org/pypi/Unidecode
If any of the above are *functional* sufficient for pywikibot needs, we should
use it. If there are minor gaps in support for languages, where pywikibot has
better transliteration tables, we can push our improvements into the external
package.
Otherwise, we start a new project with the pywikibot code so others can reuse
and help develop/maintain the code.
--
You are receiving this mail because:
You are the assignee for the bug.