https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
Web browser: --- Bug ID: 60042 Summary: Problem with uploading files Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: massari.fen@gmail.com Classification: Unclassified Mobile Platform: ---
Getting: ERROR: Upload error: Traceback (most recent call last): File "scripts/upload.py", line 214, in upload_image ignore_warnings=self.ignoreWarning) File "/root/mybot/core/pywikibot/site.py", line 3246, in upload raise ValueError("APISite.upload: cannot upload file without " ValueError: APISite.upload: cannot upload file without a summary/description.
Even with -noverify I get the same error. And if I try to change the desc I get: Could not load GUI modules: No module named gui and the error from above!
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
Ivailo Stoianov massari.fen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS|All |Linux
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |info@gno.de Ever confirmed|0 |1
--- Comment #1 from xqt info@gno.de --- Neither there is a standard module gui nor an external library is included in the framework.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |High CC| |ladsgroup@gmail.com
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=68645
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- Regarding gui, that is bug 68645. You can set 'editor=vi' in your config to work around that bug, or 'editor=notepad' for Windows users :P.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |69069 Depends on| |68645 OS|Linux |All
--- Comment #3 from John Mark Vandenberg jayvdb@gmail.com --- It definitely needs to provide a nicer set of errors. If Site.upload() requires a summary, then upload.py should get one from the user before calling Site.upload()
$ python pwb.py -family:wikidata -lang:wikidata scripts/upload.py No input filename given File or URL where image is now: blahblah.png The filename on the target wiki will default to: blahblah.png Enter a better name, or press enter to accept: The suggested description is:
Do you want to change this description? ([y]es, [N]o) y Could not load GUI modules: No module named gui Uploading file to wikidata:wikidata via API.... Reading file blahblah.png ERROR: Upload error: Traceback (most recent call last): File "scripts/upload.py", line 216, in upload_image ignore_warnings=self.ignoreWarning) File ".../pywikibot/site.py", line 3399, in upload raise ValueError("APISite.upload: cannot upload file without " ValueError: APISite.upload: cannot upload file without a summary/description.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042 Bug 60042 depends on bug 68645, which changed state.
Bug 68645 Summary: pywikibot.ui.editText imports gui which does not exist in core https://bugzilla.wikimedia.org/show_bug.cgi?id=68645
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mpaa.wiki@gmail.com
--- Comment #4 from Mpaa mpaa.wiki@gmail.com --- Patch: https://gerrit.wikimedia.org/r/#/c/157355/
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
--- Comment #5 from Mpaa mpaa.wiki@gmail.com --- Patch: https://gerrit.wikimedia.org/r/#/c/157355/ merged.
pywikipedia-bugs@lists.wikimedia.org