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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
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?
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
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
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
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
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 'ملف
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
25 matches
Mail list logo