Page MenuHomePhabricator
Feed Advanced Search

Nov 9 2016

Vladis13 added a comment to T142155: Bot can't login. keyError in GetCookie.

@Tgr yes, on https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation again was not updated version number 2.0rc4. So I thought that my version Pwb is actual.

Nov 9 2016, 3:51 AM · Pywikibot-Announce, MW-1.28-release (WMF-deploy-2016-08-09_(1.28.0-wmf.14)), MW-1.28-release-notes, MW-1.28-release (WMF-deploy-2016-08-02_(1.28.0-wmf.13)), Pywikibot

Nov 1 2016

Vladis13 added a comment to T142155: Bot can't login. keyError in GetCookie.

Work nothing: login, Oauth, Botpassword (case of Krinkle do: 'NameError: name 'BotPassword' is not defined'). :(
I don't understand, there the common login has broken at past week and it temporary bug? Or it forever, now only Oauth, which dont work?

Nov 1 2016, 11:21 PM · Pywikibot-Announce, MW-1.28-release (WMF-deploy-2016-08-09_(1.28.0-wmf.14)), MW-1.28-release-notes, MW-1.28-release (WMF-deploy-2016-08-02_(1.28.0-wmf.13)), Pywikibot

Oct 28 2016

Vladis13 created T149420: login error.
Oct 28 2016, 1:21 PM · Pywikibot, Pywikibot-login.py

Aug 26 2016

Vladis13 added a comment to T143691: Problem with utf-8 on Grid.

Works here's how:
Make myscript.sh:

#!/bin/bash
LANG="ru_RU.UTF-8" ./myscript.py
# "en_US.UTF-8" will same result

Make myscript.py:

#!/usr/bin/env python3
# coding: utf8
import os
string = 'python3 scripts/add_text.py -dir:~/ -always -file:listpages.txt -text:"{{Нет полных библиографических описаний}}"'
os.system(string)

Run: jsub -l release=trusty ./myscript.sh

Aug 26 2016, 5:32 PM · Cloud-Services, Toolforge
Vladis13 added a comment to T143691: Problem with utf-8 on Grid.

You can try setting LANG=en_US.UTF-8 instead, but I can't guarantee that'll work.

Not work, see above.
On bastion locale:
LANG=en_US.UTF-8 (here bug of forum, this string don't show in code block below)

LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Aug 26 2016, 5:03 PM · Cloud-Services, Toolforge
Vladis13 added a comment to T143691: Problem with utf-8 on Grid.

On a sidenote, you should probably use subprocess.Popen instead of os.system.

Unfortunately, it same breaks. It seems still called the "os" module. Python:

string = 'LANG="ru_RU.UTF-8" python3 scripts/add_text.py -dir:~/ -simulate -file:listpages.txt -text:"{{Нет полных библиографических описаний}}"'
# Same with: LANG="en_US.UTF-8"
Aug 26 2016, 4:55 PM · Cloud-Services, Toolforge

Aug 25 2016

Vladis13 added a comment to T143691: Problem with utf-8 on Grid.

The problem still exists. "Print" works, but don't call other programs.
The following script in utf-8, Unix newline format LF:

# coding: utf8
import sys
print(sys.stdin.encoding, sys.stdout.encoding)
Aug 25 2016, 8:49 PM · Cloud-Services, Toolforge

Aug 23 2016

Vladis13 added a comment to T100614: [Migrated] Option to turn off re-ordering of references.

This problem has long complained there, there, there, etc.
Why request of users is ignored? No consensus on inclusion of this sort in the "general fixes".
Please make it a separate option.

Aug 23 2016, 11:12 PM · WorkType-NewFunctionality, AutoWikiBrowser
Vladis13 added a comment to T143691: Problem with utf-8 on Grid.

@valhallasw, thanks you. I wrote export PYTHONIOENCODING=UTF-8 in .bash_profile, and run $source .bash_profile. Seems works.

Aug 23 2016, 7:06 PM · Cloud-Services, Toolforge
Vladis13 added a comment to T143473: Python is different versions on Tool labs and Grit. How run a scripts on grid and with scheduling?.

Ok. But, it seems to me, there is a problem with the codepage utf-8 in python or console. T143691

Aug 23 2016, 4:16 PM · Toolforge, Cloud-Services
Vladis13 created T143691: Problem with utf-8 on Grid.
Aug 23 2016, 4:13 PM · Cloud-Services, Toolforge

Aug 20 2016

Vladis13 updated the task description for T143473: Python is different versions on Tool labs and Grit. How run a scripts on grid and with scheduling?.
Aug 20 2016, 10:47 AM · Toolforge, Cloud-Services
Vladis13 created T143473: Python is different versions on Tool labs and Grit. How run a scripts on grid and with scheduling?.
Aug 20 2016, 10:45 AM · Toolforge, Cloud-Services

Aug 7 2016

Vladis13 added a comment to T142021: Error mysqlquery.
Aug 7 2016, 4:30 PM · Patch-For-Review, Pywikibot
Vladis13 added a comment to T142021: Error mysqlquery.

You got your query wrong.

mpaa@tools-bastion-03:~/core$ python scripts/listpages.py -mysqlquery:"SELECT page_namespace, page_title FROM page WHERE page_namespace = 0 LIMIT 10"

You run it from user-home directory, I installed configs of pwb in my user-home and it there works too. But me need run it from scripts in tool-home directory. In documentation Help:Tool_Labs/Developing#Setup Pwb the items 4-5 write that user-config.py should create in tools.tool@tools-login, same writen in User:Russell Blau/Using pywikibot on Labs.

Aug 7 2016, 1:27 PM · Patch-For-Review, Pywikibot

Aug 5 2016

Vladis13 added a comment to T142021: Error mysqlquery.

I repoted to Qursql. But I doubt that there will be repaired and ever be answered.
Problem of Pwb is that the error is now, and no way works with MySQL, and obsolete info in documentation.

Aug 5 2016, 3:58 AM · Patch-For-Review, Pywikibot

Aug 3 2016

Vladis13 added a comment to T142021: Error mysqlquery.

I wanted list pages that transcludes a template, for use in an autonomous script.
Now command "python scripts\listpages.py -transcludes" seems works. Perhaps something reinstalled at tries above.
I will try get the list by call "import os ; os.system(command)", although I wanted using function of pwb-framework.

Aug 3 2016, 11:56 PM · Patch-For-Review, Pywikibot
Vladis13 added a comment to T142021: Error mysqlquery.

Turns out, oursql has a branch for Python 3. But

pip install oursql3

give error too: "utf-8' codec can't decode byte 0xcd in position 20: invalid continuation byte".

Aug 3 2016, 11:06 PM · Patch-For-Review, Pywikibot
Vladis13 added a comment to T142021: Error mysqlquery.
  • "pip install oursql" occurs errors too. Oursql is critical outdated. On install it breaks on old format command "print " and something problem with Visual Studio. Also it require install "cython".
  • "pip install python-mysql" occurs error:
Could not find a version that satisfies the requirement python-mysql (from versions: )
No matching distribution found for python-mysql

I tried just connect to DB-replica with edited the script User:Legoktm/wmflib, but Tool Labs require SSH connect. The script get only 1 host/user/password, but need connect with SSH-server, then with DB. I don't understand how do it.

Aug 3 2016, 9:42 PM · Patch-For-Review, Pywikibot
Vladis13 updated the task description for T142021: Error mysqlquery.
Aug 3 2016, 7:11 PM · Patch-For-Review, Pywikibot
Vladis13 created T142021: Error mysqlquery.
Aug 3 2016, 7:01 PM · Patch-For-Review, Pywikibot

Apr 9 2016

Vladis13 created T132273: Error generate_user_files.py - version of Windows 10.
Apr 9 2016, 9:23 PM · Patch-For-Review, User-Josve05a, Pywikibot, Pywikibot-General

Apr 7 2016

Vladis13 added a comment to T112130: Pywikibot crashes on items with quantities with units. Need to implement unit support in pywikibot WbQuanity.

i dont

Apr 7 2016, 1:57 PM · Patch-For-Review, Wikidata, Pywikibot, Pywikibot-Wikidata

Apr 6 2016

Vladis13 added a comment to T112130: Pywikibot crashes on items with quantities with units. Need to implement unit support in pywikibot WbQuanity.

This error was on old version item "Wikidata:Sandbox". After did remove all claims from it the error disappeared. Thus, some a claim can do the error.

Apr 6 2016, 7:08 PM · Patch-For-Review, Wikidata, Pywikibot, Pywikibot-Wikidata
Vladis13 added a comment to T112130: Pywikibot crashes on items with quantities with units. Need to implement unit support in pywikibot WbQuanity.

I get the error when try run "Example 9: Add a source" from manual "Wikidata:Creating a bot".

Apr 6 2016, 5:51 PM · Patch-For-Review, Wikidata, Pywikibot, Pywikibot-Wikidata

Feb 23 2016

Vladis13 closed T127782: External processing error: Object reference not set to an instance of an object as Invalid.
Feb 23 2016, 6:29 PM · AutoWikiBrowser
Vladis13 added a comment to T127782: External processing error: Object reference not set to an instance of an object.

You're right, now working. Thank you.
I did not set file associations, to be able to choose which application to run my scripts.

Feb 23 2016, 6:29 PM · AutoWikiBrowser
Vladis13 updated the task description for T127782: External processing error: Object reference not set to an instance of an object.
Feb 23 2016, 6:18 PM · AutoWikiBrowser
Vladis13 updated the task description for T127782: External processing error: Object reference not set to an instance of an object.
Feb 23 2016, 1:31 AM · AutoWikiBrowser
Vladis13 updated the task description for T127782: External processing error: Object reference not set to an instance of an object.
Feb 23 2016, 1:30 AM · AutoWikiBrowser
Vladis13 created T127782: External processing error: Object reference not set to an instance of an object.
Feb 23 2016, 1:27 AM · AutoWikiBrowser

Feb 11 2016

Vladis13 added a comment to T126577: Cannot login to AutoWikiBrowser: "Fetching a token via action=login is deprecated. Use action=query&meta=tokens&type=login instead.".

@Rjwilmsi Also, no logging in ru.wikisource. When will fix?

Feb 11 2016, 2:53 PM · AutoWikiBrowser
Vladis13 closed T126539: Dont work keywords like '%%title%% etc. as Invalid.
Feb 11 2016, 2:18 PM · AutoWikiBrowser, WorkType-Maintenance
Vladis13 added a comment to T126539: Dont work keywords like '%%title%% etc..

@Dinoguy1000, thank you. Yes, this my mistake.

Feb 11 2016, 2:17 PM · AutoWikiBrowser, WorkType-Maintenance

Feb 10 2016

Vladis13 created T126539: Dont work keywords like '%%title%% etc..
Feb 10 2016, 9:47 PM · AutoWikiBrowser, WorkType-Maintenance

Jan 4 2016

Restricted Application updated subscribers of T100614: [Migrated] Option to turn off re-ordering of references.
Jan 4 2016, 10:20 PM · WorkType-NewFunctionality, AutoWikiBrowser

Nov 14 2015

Vladis13 updated the task description for T118638: {{#time}} doesn't work with Russian input.
Nov 14 2015, 12:45 PM · ParserFunctions
Vladis13 added a comment to T118638: {{#time}} doesn't work with Russian input.

To examle: {{#time:Y-m-d|14 june 2015}} give: 2015-06-14
You want to say that reformatting of dates works only in English?

Nov 14 2015, 12:42 PM · ParserFunctions
Vladis13 created T118638: {{#time}} doesn't work with Russian input.
Nov 14 2015, 11:45 AM · ParserFunctions

Oct 29 2015

Vladis13 added a comment to T107664: Some DjVu files not being rendered in commons (showing up as "0 × 0 pixels", despite the file size in MB being nonzero).

In start message was mentioned File:Niva 1906-45.djvu, which have size only 4mb. Also, I think, there is many another files which have size more 100mb and utf-8, to example asian files with hieroglyphs. So, perhaps the reason is not size utf-8?

Oct 29 2015, 12:21 AM · Wikimedia-Media-storage, MediaWiki-DjVu

Oct 28 2015

Vladis13 added a comment to T107664: Some DjVu files not being rendered in commons (showing up as "0 × 0 pixels", despite the file size in MB being nonzero).

Please, could you raise Priority.

Oct 28 2015, 10:57 PM · Wikimedia-Media-storage, MediaWiki-DjVu
Vladis13 added a comment to T107664: Some DjVu files not being rendered in commons (showing up as "0 × 0 pixels", despite the file size in MB being nonzero).

Was hope for today's bugfix phabricator:T94562 (large PDF/djvu files >100MB with large metadata >64K ). But it did not help. - Verified by temporary return of both versions of problematic File:Толковый словарь. Том 2(1) (Даль 1905).djvu.

Oct 28 2015, 10:50 PM · Wikimedia-Media-storage, MediaWiki-DjVu

Oct 27 2015

Vladis13 added a comment to T107664: Some DjVu files not being rendered in commons (showing up as "0 × 0 pixels", despite the file size in MB being nonzero).

Usually this means that either the file takes to much memory/time to render, or the file is invalid.

Oct 27 2015, 12:19 AM · Wikimedia-Media-storage, MediaWiki-DjVu

Oct 22 2015

Restricted Application updated subscribers of T116320: Error upload.

File size 115Mb. "Chunked uploads" in preferences enabled.

Oct 22 2015, 8:07 PM · Multimedia, UploadWizard
Vladis13 created T116320: Error upload.
Oct 22 2015, 8:04 PM · Multimedia, UploadWizard