https://bugzilla.wikimedia.org/show_bug.cgi?id=71646
Bug ID: 71646
Summary: missing end of line in replace.py output
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
when running replace.py with manual confirming of each replace, bot have often
some pages in save queue. In compat all messages about saving appeared after
confirming some of next
>>>Page 1<<<
- FOO
+ BAR
Do you fant to accept... [y/n]y
Page [[Lorem]] saved
Page [[Ipsum]]saved
In core these messages sometimes appears before confirming
No changes were necessary in [[Ivan Král vydá po dvanácti letech nové album]]
Page [[Izrael popřel, že by střílel na vozidlo OSN]] saved
>>> Je zvažováno obnovení meziměstské tramvaje mezi Bratislavou a Vídní <<<
- | odkaz na periodikum = IDnes
+ | odkaz na periodikum = IDNES.cz
Do you want to accept these changes? ([y]es, [N]o, [e]dit, open in [b]rowser,
[a
]ll, [q]uit) Page [[Italka odpojená po letech od vyživovacích přístrojů
zemřela]
] saved
y
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69895
Bug ID: 69895
Summary: Calling any script passing the -help argument,
performs an api call to the default configured wiki
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: martineznovo(a)gmail.com
Web browser: ---
Mobile Platform: ---
When calling any script with the -help argument to see the parameters it can
handle, the bot makes a call to the api of the default configured wiki.
I noticed it because my default configured wiki is a test wiki hosted locally,
and I have the webserver stopped when I don't need it running. When I need to
run the bot, I manually specify -family:WHATEVER
Under that circumstances, every attempt to run -help on any script causes an
error because the default configured wiki-family is not accessible:
$ python pwb.py replace.py -help
> ERROR: Traceback (most recent call last):
> File "/path/pywikibot/data/api.py", line 341, in submit
> body=paramstring)
> File "/path/pywikibot/comms/http.py", line 184, in request
> raise request.data
> error: [Errno 111] Connection refused
>
> WARNING: Waiting 5 seconds before retrying.
> ^CTraceback (most recent call last):
> File "pwb.py", line 171, in <module>
> run_python_file(fn, argv, argvu)
> File "pwb.py", line 69, in run_python_file
> exec(compile(source, filename, "exec"), main_mod.__dict__)
> File "scripts/replace.py", line 685, in <module>
> main()
> File "scripts/replace.py", line 483, in main
> local_args = pywikibot.handleArgs(*args)
> File "/path/pywikibot/bot.py", line 666, in handleArgs
> init_handlers()
> File "/path/pywikibot/bot.py", line 248, in init_handlers
> writelogheader()
> File "/path/pywikibot/bot.py", line 318, in writelogheader
> log(u'SITE VERSION: %s' % unicode(site.live_version()))
> File "/path/pywikibot/site.py", line 1877, in live_version
> expiry=0 if force else 1)
> File "/path/pywikibot/site.py", line 1097, in get
> preloaded = self._get_general(key, expiry)
> File "/path/pywikibot/site.py", line 1043, in _get_general
> default_info = self._get_siteinfo(props, expiry)
> File "/path/pywikibot/site.py", line 967, in _get_siteinfo
> siprop='|'.join(props)).submit()
> File "/path/pywikibot/data/api.py", line 580, in submit
> self._data = super(CachedRequest, self).submit()
> File "/path/pywikibot/data/api.py", line 358, in submit
> self.wait()
> File "/path/pywikibot/data/api.py", line 469, in wait
> time.sleep(self.retry_wait)
> KeyboardInterrupt
> <type 'exceptions.KeyboardInterrupt'>
Of course, it works when I have apache running, but such connections seem
unnecessary when the bot doesn't have to run anything.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68941
Bug ID: 68941
Summary: Add ignore templates to commonscat.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: dan.mac22(a)gmail.com
Web browser: ---
Mobile Platform: ---
Please update the ignoreTemplates['pt'] in commonscat.py:
- 'pt': [u'Correlatos'],
+ 'pt': [u'Correlatos', u'Commons', u'Commons cat multi', u'Commons1',
u'Commons2'],
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
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=71788
Bug ID: 71788
Summary: version.getfileversion does not work on py3, and
should be rewritten
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
In verbose logging, the log is supposed to contain a list of the pywikibot
modules loaded at startup, however on py3 it logs not modules.
The problem is the eval does not set local variable __version__
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/9ca1b85c367b381947426c26…
In addition, the algorithm is dodgy.
It checks every module name to see if it is a part of pywikibot, which is
problematic if pywikibot has a module which has the same name as another
package, and this approach also unnecessarily tries to stat many files which
will not exist.
If it does find a pywikibot file, it reads the file to find __version__ even
though Python has already loaded the module. it then exec's the first line
which contains __version__, assuming it is an assignment to __version__.
module versions could be merged into version.package_versions(), as it already
supports different types of entries (builtins, standard library)
--
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=72118
Bug ID: 72118
Summary: Pywikibot 3.0 changes [tracking]
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
pwb2.0 has been in beta since August 2013, and bot operators encouraged to
migrate to it.
http://git.wikimedia.org/commit/pywikibot%2Fcore.git/5f3fcec2791960d283e594…
The expectation is that it is fairly stable.
We have been making minor adjustments to the API since August 2013, but usually
backwards compatibility has been kept where feasible.
Using the definitions at http://semver.org/ , non-backwards compatible API
changes should occur after pwb2.0 (bug 70936) has been branched.
This bug is to track enhancement requests which will require breaking changes,
which should be done after master becomes 3.0.0-dev1.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72074
Bug ID: 72074
Summary: Consistent naming of wikibase/wikidata scrips
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: federicoleva(a)tiscali.it
Web browser: ---
Mobile Platform: ---
While preparing https://gerrit.wikimedia.org/r/#/c/166629/ I initially didn't
find all wikibase-related scripts, in particular I knew about
harvest_template.py ad claimit.py but not newitem.py. It would be nice to have
some prefix or other system to quickly tell all such scripts apart.
--
You are receiving this mail because:
You are the assignee for the bug.