https://bugzilla.wikimedia.org/show_bug.cgi?id=68847
Bug ID: 68847
Summary: Testsuite initialisation fails on Windows when pywin32
isnt installed
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Under python 2.7.8, the default test loader for 'tests' tries to instantiate
all files called '*_tests.py', and fails to instantiate the module 'ui_tests'
when pywin32 is not installed.
> python setup.py test
running test
running egg_info
writing requirements to pywikibot.egg-info\requires.txt
writing pywikibot.egg-info\PKG-INFO
writing top-level names to pywikibot.egg-info\top_level.txt
writing dependency_links to pywikibot.egg-info\dependency_links.txt
reading manifest file 'pywikibot.egg-info\SOURCES.txt'
writing manifest file 'pywikibot.egg-info\SOURCES.txt'
running build_ext
WARNING: Running on Windows and transliteration_target is not set.
Please see
https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Wi
ndows
Traceback (most recent call last):
File "...\setup.py", line 94, in <module>
use_2to3=False
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "build\bdist.win-amd64\egg\setuptools\command\test.py", line 138, in run
File "build\bdist.win-amd64\egg\setuptools\command\test.py", line 118, in
with
_project_on_sys_path
File "build\bdist.win-amd64\egg\setuptools\command\test.py", line 164, in
run_
tests
File "C:\Python27\lib\unittest\main.py", line 94, in __init__
self.parseArgs(argv)
File "C:\Python27\lib\unittest\main.py", line 149, in parseArgs
self.createTests()
File "C:\Python27\lib\unittest\main.py", line 158, in createTests
self.module)
File "C:\Python27\lib\unittest\loader.py", line 128, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "C:\Python27\lib\unittest\loader.py", line 103, in loadTestsFromName
return self.loadTestsFromModule(obj)
File "build\bdist.win-amd64\egg\setuptools\command\test.py", line 35, in
loadT
estsFromModule
File "C:\Python27\lib\unittest\loader.py", line 100, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'ui_tests'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=63327
Bug ID: 63327
Summary: Migrate i18n file format to JSON
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: i18n
Severity: normal
Priority: Unprioritized
Component: i18n
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: siebrand(a)kitano.nl
CC: niklas.laxstrom(a)gmail.com, valhallasw(a)arctus.nl
Web browser: ---
Mobile Platform: ---
We've recently started using JSON for i18n files in MediaWiki and for some
other products. We think it's a good non-executable format for i18n/L10n.
It would be nice if Pywikibot would also start using this format. It would also
allow us to remove the less than excellent Python file format support in the
Translate extension.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68898
Bug ID: 68898
Summary: Move Wikibase specific code out of page.py and site.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Web browser: ---
Mobile Platform: ---
Wikibase is an extension, and should have a wikibase.py instead of being in
page.py and site.py
We already keep the tests in wikibase_tests.py.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70336
Bug ID: 70336
Summary: Add write tests
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55192
Web browser: ---
Bug ID: 55192
Summary: Rewrite Performance (multiple API request)
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
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/bugs/1470/
Reported by: xqt
Created on: 2012-06-21 13:44:27
Subject: Rewrite Performance (multiple API request)
Original description:
There are multiple user info queries which slows down the performance:
c:\Pywikipedia\rw>pwb.py basic.py user:xqt/Test -simulate -v
Pywikipediabot r10326 2012-06-08 12:08:53Z
Python 2.7.3 \(default, Apr 10 2012, 23:24:47\) \[MSC v.1500 64 bit \(AMD64\)\]
Retrieving 1 pages from wikipedia:de.
Starting 1 threads...
API action query: userinfo
Found 1 wikipedia:de processes running, including this one.
>>> Benutzer:Xqt/Test <<<
\- Test
\+ Test Test
Comment: Bot: Ändere ...
Do you want to accept these changes? \(\[y\]es, \[N\]o\) y
API action query: userinfo
API action query: userinfo
Cosmetic changes for wikipedia-de enabled.
API action query: siteinfo|userinfo
API action query: userinfo
API action edit:
SIMULATION: edit action blocked.
Page \[\[Benutzer:Xqt/Test\]\] saved without any changes.
Page \[\[Benutzer:Xqt/Test\]\] saved
Dropped throttle\(s\).
Waiting for threads to finish...
All threads finished.
Dropped throttle\(s\).
c:\Pywikipedia\rw>
--
You are receiving this mail because:
You are the assignee for the bug.
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=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=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=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=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.