[Pywikipedia-bugs] [Maniphest] [Created] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-26 Thread MuhammadShuaib
MuhammadShuaib created this task.MuhammadShuaib added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONWhen I run replace.py and any other script in core branch via cron for Urdu Wikipedia, it throws following error: No handlers could be found for

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-26 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T188246#4003464, @zhuyifei1999 wrote: And it's expecting the site as test:test. Did you set family and mylang in your user-config.py? Yes, My user config is all set and when we run any script in core branch manually it works well. This error happens when

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-26 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T188246#4003132, @matej_suchanek wrote: What environment do you use? Toolforge? What value have family and mylang in user-config.py? What command line arguments does the script run with? Does it happen when you explicitly provide -lang:ur -family:wikipedia

[Pywikipedia-bugs] [Maniphest] [Reopened] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-26 Thread MuhammadShuaib
MuhammadShuaib reopened this task as "Open". TASK DETAILhttps://phabricator.wikimedia.org/T188246EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MuhammadShuaibCc: zhuyifei1999, matej_suchanek, Aklapper, pywikibot-bugs-list, MuhammadShuaib, Mag

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-26 Thread MuhammadShuaib
MuhammadShuaib added a comment. After providing -lang:ur -family:wikipedia in cron, it creates error file with following text pywikibot.exceptions.NoUsername: ERROR: Username for wikipedia:ur is undefined. If you have an account for that site, please add a line to user

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-27 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T188246#4005080, @Dalba wrote: What is the output of python pwb.py version? Output is as follows: Pywikibot: [https] r-pywikibot-core.git (4ba8d64, g9120, 2018/02/26, 21:37:31, ok) Release version: 3.0-dev requests

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-27 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T188246#4005264, @Dalba wrote: Could you also give the result of cat user-config.py? Sure :) # -*- coding: utf-8 -*- console_encoding = 'utf-8' textfile_encoding = 'unicode_escape' family = 'wikipedia' mylang = 'ur&#

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-27 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T188246#4005586, @Dalba wrote: Thanks! It seems to me that pywikibot is not able to find your user-config.py. What is the path of your user-config.py ? (it normally should be the same directory as pwb.py or in ~/.pywikibot) Yes, user-config.py and pwb.py are

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-27 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T188246#4006114, @Dalba wrote: In T188246#4005858, @MuhammadShuaib wrote: I am running script via jsub command, how to do this in cron? One way to do it is to create a myscript.sh file containing: #!/usr/bin/env bash export PYWIKIBOT2_DIR=/absolute/path/to

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-27 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T188246#4006732, @zhuyifei1999 wrote: I'm pretty sure you hit config2.py#L1023, as the user-config.py in your home directory is not owned by the tool account. 05:11:11 0 ✓ zhuyifei1999@tools-bastion-02: /data/project/khanamalumat$ stat user-config.py

[Pywikipedia-bugs] [Maniphest] [Commented On] T188246: pywikibot.exceptions.NoUsername: ERROR

2018-02-27 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T188246#4006645, @zhuyifei1999 wrote: In T188246#4005253, @MuhammadShuaib wrote: python pwb.py replace -fix:correct-ur -transcludes:Infobox_settlement -lang:ur -family:wikipedia -always I assume this is tool khanamalumat. Yes it us khanamalumat, but I am

[Pywikipedia-bugs] [Maniphest] [Created] T188512: Access denied for user 'nadwi'@'10.64.37.14'

2018-02-28 Thread MuhammadShuaib
MuhammadShuaib created this task.MuhammadShuaib added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONI am facing this error in pywikibot core branch: Traceback (most recent call last): File "pwb.py", li

[Pywikipedia-bugs] [Maniphest] [Commented On] T102317: Supporting on-wiki list of replacements similar to fixes.py

2018-03-12 Thread MuhammadShuaib
MuhammadShuaib added a comment. And Urdu Wikipedia also implemented this bot.TASK DETAILhttps://phabricator.wikimedia.org/T102317EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: eranroz, MuhammadShuaibCc: Framawiki, MuhammadShuaib, Dvorapa, Xqt, Matanya

[Pywikipedia-bugs] [Maniphest] [Created] T212704: [Feature] Feature request in cosmetic_changes.py

2018-12-30 Thread MuhammadShuaib
MuhammadShuaib created this task.MuhammadShuaib added projects: Pywikibot-cosmetic-changes.py, Pywikibot.Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONThose wikipedias who import templates from English wikipedia, generally create redirects of english

[Pywikipedia-bugs] [Maniphest] [Edited] T212704: [Feature] Feature request in cosmetic_changes.py

2018-12-30 Thread MuhammadShuaib
MuhammadShuaib updated the task description. (Show Details) CHANGES TO TASK DESCRIPTIONThose wikipedias who import templates from English wikipedia, generally create redirects of english title to local one. But many times original english names of template are being used in pages. Is it possible

[Pywikipedia-bugs] [Maniphest] [Commented On] T212704: [Feature] Feature request in cosmetic_changes.py

2018-12-30 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T212704#4846244, @Xqt wrote: This feature is implemented already but needs some localizing updates. Implemented in cc or in any other script?TASK DETAILhttps://phabricator.wikimedia.org/T212704EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel

[Pywikipedia-bugs] [Maniphest] [Commented On] T212704: [Feature] Feature request in cosmetic_changes.py

2018-12-31 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T212704#4847058, @Xqt wrote: @MuhammadShuaib, could you please review this patch? They are not deprecated, but are still in use but redirected to local titles. And these templates are many in number. I want something like "load_redirects" functi

[Pywikipedia-bugs] [Maniphest] [Commented On] T212704: [Feature] Feature request in cosmetic_changes.py

2018-12-31 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T212704#4847197, @Xqt wrote: @MuhammadShuaib: is there a page or category where these redirects can be retrieved? Yes, Urdu wikipedia's page is here https://ur.wikipedia.org/wiki/ویکیپیڈیا:AutoWikiBrowser/Template_redirects Other languages'

[Pywikipedia-bugs] [Maniphest] [Commented On] T212704: [Feature] Feature request in cosmetic_changes.py

2019-01-01 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T212704#4847560, @Xqt wrote: Other languages' pages are connected on wikidata https://www.wikidata.org/wiki/Q13380729 Great. Then we can have a solution for all sites. Why should this become a solution of cc and not of template.py or fixing_redirects.py?

[Pywikipedia-bugs] [Maniphest] [Commented On] T212704: [Feature] Feature request in cosmetic_changes.py

2019-01-01 Thread MuhammadShuaib
MuhammadShuaib added a comment. And one more cosmetic change can be added. If an article starts with such words that match ecactly with current article title, cc will add ''' around them to make it bold. This feature exists in AWB. Like this edit on Urdu wiki where title and sta

[Pywikipedia-bugs] [Maniphest] [Edited] T212704: [Feature] Feature request in cosmetic_changes.py

2019-01-01 Thread MuhammadShuaib
MuhammadShuaib updated the task description. (Show Details) CHANGES TO TASK DESCRIPTIONThose wikipedias who import templates from English wikipedia, generally create redirects of english title to local one. But many times original english names of template are being used in pages. Is it possible

[Pywikipedia-bugs] [Maniphest] [Commented On] T145853: unusedfiles.py: if an image is already tagged, don't tag it again

2016-09-24 Thread MuhammadShuaib
MuhammadShuaib added a comment. Similarly, lonelypages.py also do.TASK DETAILhttps://phabricator.wikimedia.org/T145853EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MuhammadShuaibCc: MuhammadShuaib, TerraCodes, valhallasw, jayvdb, Xqt, Aklapper, MarcoAurelio

[Pywikipedia-bugs] [Maniphest] [Commented On] T146961: Pywikipedia throws "title for namespace 118 in language ur unknown" error

2016-09-28 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T146961#2676188, @Xqt wrote: Please provide the whole traceback and your command line. Also the result of version.py would help. Is it possible to you to join to core branch with your bot? compat is likely deprecated. I have provided whole traceback. Today i

[Pywikipedia-bugs] [Maniphest] [Commented On] T146961: Pywikipedia throws "title for namespace 118 in language ur unknown" error

2016-09-28 Thread MuhammadShuaib
MuhammadShuaib added a comment. And also following warnings while running redirect.py WARNING: Outdated family file wikipedia: namespace['ur'][-2] is 'وسیط', but should be 'میڈیا' WARNING: Outdated family file wikipedia: namespace['ur'][6] is 'ملف&#x

[Pywikipedia-bugs] [Maniphest] [Commented On] T146961: Pywikipedia throws "title for namespace 118 in language ur unknown" error

2016-09-29 Thread MuhammadShuaib
MuhammadShuaib added a comment. In T146961#2676188, @Xqt wrote: Is it possible to you to join to core branch with your bot? compat is likely deprecated. When i trying to run a script e.g clean sandbox.py, it gives following error: tools.-@tools-bastion-03:~/pycore$ python pwb.py