In T212723#4855984, @Dvorapa wrote:@Wesalius Then there are two possibilities:
a) you have bot.py, generate_user_files.py, pwb.py or config2.py in 777 and the user-config.py is created by those files with inherited permissions: you should reset permissions for these files (to 644, ideally for all Pywikibot files)
b) your (file)system defaults new files to 777: there is nothing we can do with this, you can try to change it somehow
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
May 11 2019
May 11 2019
Jan 4 2019
Jan 4 2019
Wesalius added a comment to T212723: generate_user_files creates user-config.py with mode 777 on WSL, and then pywikibot refuse to load the config for security.
Wesalius added a comment to T212723: generate_user_files creates user-config.py with mode 777 on WSL, and then pywikibot refuse to load the config for security.
Resolved with setting correct permissions to user-config.py. The file has to be only readable. The generate-user-files.py produces a 777 user-config.py file.
Jan 3 2019
Jan 3 2019
Wesalius updated the task description for T212837: Commons android app refuses to upload images that had been cropped/edited in smartphone.
Dec 31 2018
Dec 31 2018
Wesalius added a comment to T212723: generate_user_files creates user-config.py with mode 777 on WSL, and then pywikibot refuse to load the config for security.
In T212723#4847052, @Xqt wrote:ERROR: Username for test:test is undefined.
usernames['wikipedia']['cs'] = u'Wesalius'
@Wesalius: Your bot is running on site test:test but you defined a user for wikipedia:cs only.
Wesalius added a comment to T212723: generate_user_files creates user-config.py with mode 777 on WSL, and then pywikibot refuse to load the config for security.
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals
Nov 4 2018
Nov 4 2018
Wesalius added a comment to T153255: Promote the signature button to the toolbar (or somewhere else more prominent) in VE/NWE.
It is a complete nonsense to hide the signature button in three-click depth, this decision is increasing the "cognitive overhead" and not the other way around. Anyone who ever participated in a discussion on a Village pump understands what I am talking about. Decline of this issue seems to me more of "dont bother us" than a thought based resolution.
Sep 26 2018
Sep 26 2018
I would need a mentor myself :-) Ok, leaving it then...
@Xqt I already contributed to pwb, should I leave this to newcomers for their first commit? (reacting to goodfirstbug tag)
Sep 16 2018
Sep 16 2018
Sep 11 2018
Sep 11 2018
Jul 5 2018
Jul 5 2018
In T197841#4398572, @Xqt wrote:I see. In that case a section header should be implemented too.
In T197841#4398566, @Xqt wrote:What would be the reason to keep the outdated list? Isn’t it better to look at version history’s difference?
Jul 4 2018
Jul 4 2018
Wesalius renamed T198812: Hint the user to use the -force option when output already has content from Hint the user to use the -overwrite option when output already has content to Hint the user to use the -force option when output already has content.
Wesalius triaged T198812: Hint the user to use the -force option when output already has content as Medium priority.
In T196851#4397442, @Xqt wrote:In T196851#4396737, @Wesalius wrote:when listifying, the script outputs affected pages fine, when moving categories, there is no output
What output do you expect? Could you give an example.
when listifying, the script outputs affected pages fine, when moving categories, there is no output
Jul 1 2018
Jul 1 2018
Wesalius renamed T196851: Evaluate BaseBot class usage across scripts from 8abaaaaaaa to Evaluate BaseBot class usage across scripts.
Wesalius renamed T197841: Allow to append to the output page on category.py listify from qjaaaaaaaa to Allow to append to the output page on category.py listify.
Wesalius renamed T197830: All pages have an error in the graphs section: unable to write file from 1jaaaaaaaa to All pages have an error in the graphs section: unable to write file.
Jun 30 2018
Jun 30 2018
Framawiki awarded T197998: Normalize script names a Like token.
Jun 23 2018
Jun 23 2018
Probably is, I did not run into the error again since posting.
Wesalius triaged T197841: Allow to append to the output page on category.py listify as Low priority.
I am removing myself since it looks beyond my python knowledge. When creating the task I naively hoped to just add a simple counter to the script that missed the "x pages written output".
Jun 21 2018
Jun 21 2018
Jun 17 2018
Jun 17 2018
I am a noob programer, what is the outcome for me? That it might change again in the future?
I tried your patched version, no error now, works like a charm.
Jun 11 2018
Jun 11 2018
In T196851#4270839, @Xqt wrote:In T196851#4270602, @Wesalius wrote:so the thing to do here is to check where and why the scripts overwrite the basebot run method?
Yes. And which script does not use BaseBot classes.
Wesalius renamed T196851: Evaluate BaseBot class usage across scripts from Add "no. of pages changed" output to pwb scripts to Evaluate BaseBot class usage across scripts.
Jun 10 2018
Jun 10 2018
so the thing to do here is to check where and why the scripts overwrite the basebot run method?
Jun 9 2018
Jun 9 2018
I tested the Change 439446 on 2 different wikis, seems to work fine, no error produced.
Jun 8 2018
Jun 8 2018
Wesalius updated the task description for T196777: AttributeError: 'tuple' object has no attribute 'site' when running pagefromfile.py.
Jun 6 2018
Jun 6 2018
Wesalius awarded T48556: [Epic] Wikidata 3rd party client (Instant Wikidata) a Yellow Medal token.
Jun 5 2018
Jun 5 2018
did not happen again, if someone else gets this error, feel free to reopen
Jun 4 2018
Jun 4 2018
Jun 3 2018
Jun 3 2018
May 25 2018
May 25 2018
Wesalius added a comment to T151438: Edit pages only if edit size/number of characters changed is above threshold.
I am not completely sure what I meant by pwb already estimates that (deleted from the description now, but I guess
it was either that pwb shows for ex. @@ -130,2 +130,2 @@ above the proposed edit or it tells you the bytes it has changed after the save edit (which is not estimating, I know).
Wesalius updated the task description for T151438: Edit pages only if edit size/number of characters changed is above threshold.
Apr 7 2018
Apr 7 2018
Mar 5 2018
Mar 5 2018
Thibaut120094 awarded T129529: Make -inplace the default behavior in category.py a Like token.
Feb 26 2017
Feb 26 2017
Feb 9 2017
Feb 9 2017
This is duplicate of T69737
Jan 16 2017
Jan 16 2017
Just found out I can switch this function of with -notitle switch, but the original request stays in place. This should be opt-in function.
Jan 15 2017
Jan 15 2017
Dec 18 2016
Dec 18 2016
Thank you.
Dec 16 2016
Dec 16 2016
matej_suchanek awarded T151609: Port CopyPatrol to Czech Wikipedia a Like token.
Dec 6 2016
Dec 6 2016
I cant come up with anything better so go ahead and knock the last one out ;-)
Wesalius added a comment to T111513: IWM: APISite.article_path does not support sites using trailing '/'.
Can someone review and merge pls? I get error reffering to this bug saying on many articles at cs.wiki
@Urbanecm Thank you very much. Only string left to translate is "Image attribution". I am unable to come up with anything suitable...
Dec 4 2016
Dec 4 2016
@Ladsgroup The target of 250000 at tools.wmflabs.org/dexbot/tools/wikilabels_stats.php doesnt seem appropriate :-)
Dec 3 2016
Dec 3 2016
Okay thanks. From my POV it is resolved, feel free to close the bug whenever.
Dec 2 2016
Dec 2 2016
Now I still get the warning but I can proceed to edit wd without a problem.
Nov 30 2016
Nov 30 2016
You can help translating CopyPatrol at translatewiki.
Nov 29 2016
Nov 29 2016
Under what account does the bot do the edits?
Nov 27 2016
Nov 27 2016
According to comment of @Lokal_Profil at T151706 I have to wait for the patch to be merged or modify the code. I am a coding dilettante, so I guess I will first try my luck with the upcoming patch and then try to fix my code. Thank you for taking a look at it, @Magul.
Nov 26 2016
Nov 26 2016
@matej_suchanek can you help with that since you were participating on similar task at wikidata?
Nov 25 2016
Nov 25 2016
In T151092#2822678, @Lokal_Profil wrote:In T151092#2820215, @Wesalius wrote:Is my .err content related to this (solved by the patch)?
WARNING: WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error bounds. WARNING: WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error bounds. Traceback (most recent call last): File "elobot-no-user-interaction-1-month.py", line 60, in elobot elo_claim.setTarget(pywikibot.WbQuantity(rating)) File "/mnt/nfs/labstore-secondary-tools-project/elobot/core/pywikibot/__init__.py", line 680, in __init__ self.upperBound = self.amount + upperError UnboundLocalError: local variable 'upperError' referenced before assignmentI am running
Pywikibot: [https] r-pywikibot-core.git (1f05e6f, g7627, 2016/11/22, 21:46:01, n/a) Release version: 3.0-dev requests version: 2.2.1on tool labs...
See T150210. In short to support non-wikidata wikibase installations you have to pass a site object to WbQuantitiy. There is a patch to remove the need for this but someone needs to review and merge.
Nov 24 2016
Nov 24 2016
Wesalius closed T151526: AttributeError: 'NoneType' object has no attribute 'calendarmodel' - we should raise more descriptive error when Wikibase is not available as Invalid.
I am sorry, thank you for taking a look at it, it was my bad, I targeted a non-wikibase wiki with my user-config :(
Is my .err content related to this (solved by the patch)?
Nov 23 2016
Nov 23 2016
Wesalius renamed T151438: Edit pages only if edit size/number of characters changed is above threshold from edit pages only if edit size is above treshold to edit pages only if edit size/ńumber of characters changed is above treshold.
Nov 11 2016
Nov 11 2016
Nov 5 2016
Nov 5 2016
It was one of the regular cswiki dumps, so around 600 Mb. I think it crashed right at the start (the reason why I only think is that I went through complete switch from win to tux with drive reformatting a day ago so I cant reproduce it right away).
Nov 4 2016
Nov 4 2016
Nov 2 2016
Nov 2 2016
Oct 31 2016
Oct 31 2016
Oct 29 2016
Oct 29 2016
Wesalius added a comment to T148912: module 'pywikibot.pagegenerators' has no attribute 'WikidataSPARQLPageGenerator'.
Ok. I dont really understand the situation around 2.0/branches since I am an end user and not a developer.
Wesalius added a comment to T148912: module 'pywikibot.pagegenerators' has no attribute 'WikidataSPARQLPageGenerator'.
Ok. Is there a way to get the "safe" release with pip?
Oct 28 2016
Oct 28 2016
Oct 26 2016
Oct 26 2016
Oct 23 2016
Oct 23 2016
Oct 20 2016
Oct 20 2016
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL