Magul added a comment.
Ok, I have digg into this issue and it looks, that You're mixing unicode with str here. I would assume that it happened here: rowi=unicode(str(row[0]),'UTF-8') but it's something that You need to check. I could only suggest that You're loosing decode('cp1256') somehere.
I'm
Magul added a comment.
@Jar I just used some of Your edits and created simple script:
# -*- coding: utf-8 -*-
import pywikibot as pwb
site = pwb.getSite("ar")
address = u'مستخدم:MagulBot'
message = u'مستخدم'
text=u"""
{{إحصاء}}
تعرض هذه الصفحة قائمة الـ500 [[وب:ويكيبيديون|ويكيبيدي]]
Magul added a comment.
@Jar I still don't know how You installed it?TASK DETAILhttps://phabricator.wikimedia.org/T151677EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, Aklapper, pywikibot-bugs-list, Jar, MayS, Mdupont, JJMC89, jayvdb, Dalba,
Magul added a comment.
@Jar I was trying to recreate Your issue with this warning and wasn't able to do so. I assume that it caused by import family at the top of Your script. I don't have such module in fresh #pywikibot-core code, so I was getting ImportError: No module named family. After
Magul added a comment.
@Jar, please provide source of Your script and information from user-config.py.TASK DETAILhttps://phabricator.wikimedia.org/T151677EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, Aklapper, pywikibot-bugs-list, Jar, MayS,