https://bugzilla.wikimedia.org/show_bug.cgi?id=70069
Amir Ladsgroup <ladsgroup(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|Unprioritized |Highest
Status|UNCONFIRMED |NEW
CC| |aude.wiki(a)gmail.com,
| |ladsgroup(a)gmail.com,
| |lydia.pintscher(a)wikimedia.d
| |e
Ever confirmed|0 |1
Severity|normal |critical
--- Comment #2 from Amir Ladsgroup <ladsgroup(a)gmail.com> ---
The new system literally broke anything, I think Wikidata people should make an
announcement about API output changes but it seems this change was not
intentional and they are working on it to fix it ASAP, if they don't want to
work on it. I will write a wrapper in pywikibot to make the output of
wbgetentity the same as before.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70069
Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |legoktm.wikipedia(a)gmail.com
Component|API |Wikidata
Version|1.24-git |compat (1.0)
Assignee|wikibugs-l(a)lists.wikimedia. |Pywikipedia-bugs(a)lists.wiki
|org |media.org
Product|MediaWiki |Pywikibot
--- Comment #1 from Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> ---
I think the Wikidata serialization broke whatever compat was relying on.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68663
Bug ID: 68663
Summary: misspelling doesnt quit on user input 'q'
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: ---
misspelling uses solve_disambiguation, which asks for user input and offers a
quit option. solve_disambiguation quits when 'q' is entered. misspelling does
not.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=67488
Bug ID: 67488
Summary: Cache broken with non-ascii username/user namespace
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: valhallasw(a)arctus.nl
CC: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Reported on IRC.
Password for user UserBot on mywiki:ar (no characters will be shown):
Logging in to mywiki:ar as UserBot
Could not load cache: UnicodeDecodeError('ascii', 'Site("ar",
"mywiki")User(\xd9\x85\xd8\xb3\xd8\xaa\xd8\xae\xd8\xaf\xd9\x85:UserBot)[(\'action\',
\'paraminfo\'), (\'format\', \'json\'), (\'maxlag\', \'5\'), (\'querymodules\',
\'info|revisions\')]', 31, 32, 'ordinal not in range(128)')
Traceback (most recent call last):
File "pwb.py", line 153, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/pagefromfile.py", line 274, in <module>
main()
File "scripts/pagefromfile.py", line 271, in main
bot.run()
File "scripts/pagefromfile.py", line 85, in run
self.save(title, contents)
File "scripts/pagefromfile.py", line 141, in save
page.save(comment, minor=self.getOption('minor'))
File "/Users/user/shell/core/pywikibot/__init__.py", line 423, in wrapper
return method(*__args, **__kw)
File "/Users/user/shell/core/pywikibot/page.py", line 886, in save
**kwargs)
File "/Users/user/shell/core/pywikibot/page.py", line 896, in _save
watch=watchval, bot=botflag, **kwargs)
File "/Users/user/shell/core/pywikibot/site.py", line 557, in callee
return fn(self, *args, **kwargs)
File "/Users/user/shell/core/pywikibot/site.py", line 2787, in editpage
lastrev = page.latestRevision()
File "/Users/user/shell/core/pywikibot/page.py", line 364, in latestRevision
self.site.loadrevisions(self)
File "/Users/user/shell/core/pywikibot/site.py", line 1922, in loadrevisions
step=step, total=total, **rvargs)
File "/Users/user/shell/core/pywikibot/site.py", line 693, in _generator
gen = gen_class(type_arg, site=self, **args)
File "/Users/user/shell/core/pywikibot/data/api.py", line 885, in __init__
QueryGenerator.__init__(self, prop=prop, **kwargs)
File "/Users/user/shell/core/pywikibot/data/api.py", line 560, in __init__
self.update_limit() # sets self.prefix
File "/Users/user/shell/core/pywikibot/data/api.py", line 654, in
update_limit
for param in self._modules[mod].get("parameters", []):
File "/Users/user/shell/core/pywikibot/data/api.py", line 604, in _modules
data = paramreq.submit()
File "/Users/user/shell/core/pywikibot/data/api.py", line 510, in submit
self._write_cache(self._data)
File "/Users/user/shell/core/pywikibot/data/api.py", line 503, in
_write_cache
with open(self._cachefile_path(), 'wb') as f:
File "/Users/user/shell/core/pywikibot/data/api.py", line 478, in
_cachefile_path
return os.path.join(self._get_cache_dir(), self._create_file_name())
File "/Users/user/shell/core/pywikibot/data/api.py", line 474, in
_create_file_name
self._uniquedescriptionstr().encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd9 in position 31:
ordinal not in range(128)
<type 'exceptions.UnicodeDecodeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
We should add a test with a non-ascii username/namespace (or we should just
test on arwiki instead of enwiki :-p)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69889
Bug ID: 69889
Summary: unexpected keywrod argument 'site' while moving
category
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: category.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
I want to rename category. I usually do it in compat, but this time I tried
core, because developers says that compat is deprecated.
pwb.py category move -lang:sk -from:Obce_v_Lypoveckom_rajóne
-to:Dediny_v_Lypoveckom_rajóne
Retrieving 50 pages from wikipedia:sk.
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 171, in <module>
run_python_file(fn, argv, argvu)
File "D:\Py\rewrite\pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "D:\Py\rewrite\scripts\category.py", line 1173, in <module>
main()
File "D:\Py\rewrite\scripts\category.py", line 1162, in main
bot.run()
File "D:\Py\rewrite\scripts\category.py", line 548, in run
self._change(pagegenerators.CategorizedPageGenerator(self.oldcat))
File "D:\Py\rewrite\scripts\category.py", line 580, in _change
inPlace=self.inplace)
File "D:\Py\rewrite\pywikibot\page.py", line 1709, in change_category
site=self.site)
File "D:\Py\rewrite\pywikibot\tools.py", line 310, in wrapper
return method(*__args, **__kw)
TypeError: __init__() got an unexpected keyword argument 'site'
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Note: sk is not my default language, target category already exists
In compat it works as expected
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69896
Bug ID: 69896
Summary: upload.py ignores the -simulate global option
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: ---
Running upload.py with the -simulate argument makes no difference. Files are
uploaded to the wiki regardless of -simulate meaning "do not write anything to
the wiki".
I tested it on a wiki when it allowed uploads. I've also tested it on a test
wiki where uploads are not enabled, so it pops an error with a traceback, that
will be more meaningful:
$ python pwb.py upload.py -simulate -family:test-1-23 TestFile.png test
> The filename on the target wiki will default to: TestFile.png
> Enter a better name, or press enter to accept:
> The suggested description is:
> test
> Do you want to change this description? ([y]es, [N]o)
> Uploading file to test-1-23:es via API....
> ERROR: Upload error:
> Traceback (most recent call last):
> File "scripts/upload.py", line 218, in upload_image
> ignore_warnings=self.ignoreWarning)
> File "/path/pywikibot/tools.py", line 310, in wrapper
> return method(*__args, **__kw)
> File "/path/pywikibot/site.py", line 3938, in upload
> result = req.submit()
> File "/path/pywikibot/data/api.py", line 458, in submit
> raise APIError(code, info, **result["error"])
> APIError: uploaddisabled: Uploads are not enabled. Make sure $wgEnableUploads
> is set to true in LocalSettings.php and the PHP ini setting file_uploads is
> true
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69852
Bug ID: 69852
Summary: upload.py: Add an option to automatically abort
uploads if the file already exists
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: martineznovo(a)gmail.com
Web browser: ---
Mobile Platform: ---
If we are trying to upload a lot of files and some of them already exist, it
would be nice to have an option to automatically skip those uploads (because of
resuming the batch upload operation, or because of manual upload of some of
them)
There's still no option to do a "batch upload", but I handle it with a script
that runs a list of pywikibot commands in a batch. And it gets stuck waiting
for a user response when it receives a warning, which is annoying.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69829
Bug ID: 69829
Summary: CategoryRemoveRobot can not be instantiated
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: copyright.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
CategoryRemoveRobot.__init__ is wrapped in decorator
@deprecated('CategoryMoveRobot.__init__()')
As __init__ is special, it needs to be invoked differently by the deprecated
wrapper.
WARNING: CategoryRemoveRobot.__init__ is DEPRECATED, use
CategoryMoveRobot.__init__() instead.
Traceback (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/cfd.py", line 178, in <module>
main()
File "scripts/cfd.py", line 131, in main
useSummaryForDeletion=True, inPlace=True)
File "../pywikibot/__init__.py", line 448, in wrapper
return method(*args, **kwargs)
File "scripts/category.py", line 686, in __init__
pagesonly=pagesonly)
TypeError: unbound method __init__() must be called with CategoryMoveRobot
instance as first argument (got nothing instead)
script cfd also uses this class.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55014
Web browser: ---
Bug ID: 55014
Summary: Let bots use canonical namespaces
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/332/
Reported by: pathoschild
Created on: 2013-02-23 02:45:38
Subject: Let bots use canonical namespaces
Original description:
Let bots use canonical namespaces instead of translations from the family
files. This is useful for crosswiki bots, where invalid namespace names may not
be detected by the operator \(most recently \[1\]\[2\]\).
The attached patch implements this by adding an optional constructor argument
to Page. For example, the current behaviour is unchanged:
ns = wikipedia.Page\(site, title\).namespaceName\(\) \# Utilisateur:Pathoschild
But a constructor argument enables canonical namespaces:
ns = wikipedia.Page\(site, title, translateNamespace=False\).namespaceName\(\)
\# User:Pathoschild
\[1\]
http://meta.wikimedia.org/wiki/User\_talk:Pathoschild?oldid=5269904\#Probl.…
\[2\]
http://meta.wikimedia.org/wiki/User\_talk:Pathoschild?oldid=5269904\#Polish…
--
You are receiving this mail because:
You are the assignee for the bug.