I admit that I've been very confused by svn shutdown, and migration to
Gerrit; I see that difficult-to-understand talks pop out about problems
and bugs about gerrit+pywikipedia, so I feel myself a little bit less
stupid. Confusion has been enhanced by double version of pywikipedia and by
renaming (WHY?) of two main branches of it.
Can please be implemented a banal, simple mean (pip? other?) to keep
pywikipedia routines aligned and running both on Tool Labs and windows and
any other environment? A good, old KISS approach? Thanks.
Hi, there is coders here. I think Wikimedia needs Lua coders, especially
for tasks like creating code to build infoboxes, for example.
This is an important piece of code in WIkidata and in Wikipedias.
Pywikipedia has experiences of building APIs for Wikidata. Could we share
those knowledge and coordinate the code projects ?
wow, that's impressive but I made more than 140 commits under name of amir
when svn was active:
On Mon, Mar 31, 2014 at 12:03 AM, <bugzilla-daemon(a)wikimedia.org> wrote:
> Bug ID: 63280
> Summary: WindowsError: [Error 2] Can not find the file
> Product: Pywikibot
> Version: unspecified
> Hardware: All
> OS: All
> Status: NEW
> Severity: normal
> Priority: Unprioritized
> Component: General
> Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
> Reporter: he7d3r(a)gmail.com
> Web browser: ---
> Mobile Platform: ---
> Abshirdheere reported the following
> > Microsoft Windows XP [Versione 5.1.2600] (C) Copyright 1985-2001
> Microsoft Corp.
> > C:\Pywikipedia>login.py WARNING: Running on Windows and
> transliteration_target is not set. Please see
> http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows Traceback
> (most recent call last):
> > File "C:\Pywikipedia\login.py", line 59, in <module>
> > import query
> > File "C:\Pywikipedia\query.py", line 30, in <module>
> > import wikipedia as pywikibot
> > File "C:\Pywikipedia\wikipedia.py", line 6019, in <module>
> > versionrev=(version.getversiondict()["rev"])
> > File "C:\Pywikipedia\pywikibot\version.py", line 52, in getversiondict
> > (tag, rev, date, hsh) = getversion_git(_program_dir)
> > File "C:\Pywikipedia\pywikibot\version.py", line 150, in getversion_git
> > stdout=subprocess.PIPE).stdout.read()
> > File "C:\Python27\lib\subprocess.py", line 679, in __init__
> > errread, errwrite)
> > File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
> > startupinfo)
> > WindowsError: [Error 2] Can not find the file specified
> > C:\Pywikipedia>pywikibot
> > having this problem, and I do not know how to handle
> You are receiving this mail because:
> You are the assignee for the bug.
> Pywikipedia-bugs mailing list
As you may know due to bug
It is impossible to run pywikibot in Windows
It was because git version control system doesn't work properly in systems
that git isn't installed (obviously) and decrypting txt files in .git
folder isn't our job
I tried to solve by logging commits in a text fie in
here<http://tools.wmflabs.org/pywikibot/gitlog.txt>and when it can't
be determined, the bot retrieves this file, finds out
what is the version and adds it to cache.
It's the patch and It hasn't been merged yet because we need to check it
and review it very carefully but sooner is better, So please help and test
this patch in you environment. I tested it on my pc which uses windows
(such a shame) and It worked correctly
-----BEGIN PGP SIGNED MESSAGE-----
Can someone give me commit access on Gerrit, or if there's some more
formal process I need to follow, can someone point me to that? I had
commit access way back in the SVN days but I haven't had to deal with
Gerrit until now.
I ask because I have two outstanding fixes for pywikibot/compat that
are live on Cydebot and would be beneficial to other bots.
(This sig matches what's on my user page on en-wiki for verification.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
-----END PGP SIGNATURE-----
can someone help with my question below?
On 18 March 2014 10:16, Mpaa <mpaa.wiki(a)gmail.com> wrote:
> Need some help from someone familiar with wikidata.
> Is there a way with pywikibot to find out, given a certain value for a
> Property, which Item has that particular Property value?
> Better with a practical case.
> Given P214 (VIAF data), I want to know who has P214 set to 5726988.
> E.g.: how to find out that Item https://www.wikidata.org/wiki/Q3300924has P214=5726988?
> Thanks for your help.
Zürich Hackathon will be held in 9-11 May and It is a great
opportunity to improve pywikibot, I want to have presentation about
"how we can help pywikibot" and I want to discuss about bugs and
reporting and wrangling them (prioritizing and categorizing them) how
to make a patch in gerrit, etc. and about areas of development in
pywikibot including better support of Wikibase/Wikidata, other new
features (e.g. Flow) and network optimization for reducing pressure on
I probably can get the visa in time and if everything goes well I'll
have it by 16 April but maybe I'll not make it (if my request got
rejected by Swiss embassy which is not an uncommon thing)
This is the topics page:
There are several things that we need to discuss:
1-In case I can't come, is there someone else who is willing to have
2-if you'll come and you're interested please add your name there
3-if you think this presentation needs some changes and improve
(surely it does), please comment here
We currently have the "MySQLPageGenerator" to do database queries. It
uses site.dbName() to figure out the name of the site, but we don't seem
to have any system to figure out what database server to connect to. For
* Dutch Wikipedia on Toolserver: connect nlwiki_p nlwiki-p.db
* English Wikipedia on Toolserver: connect enwiki_p enwiki-p.db
* Dutch Wikipedia on Toollabs: connect nlwiki_p nlwiki.labsdb
* English Wikipedia on Toollabs: connect nlwiki_p nlwiki.labsdb
How to solve this? Possible solution is to make a function to detect
what cluster we're on or a user variable to set it (config.cluster?) and
than add a function site.dbServer() to return the right server?