# noqa works? I saw your last mail where you had doubts or I interpreted it in this way.
Anyway, a lot of pyflakes reported messages are wrong and I would like to ignore these parts line by line if it is really wrong.
----- Ursprüngliche Nachricht -----
Von: Merlijn van Deen
Gesendet: 03.11.2013 21:50
An: Pywikipedia discussion list
Betreff: Re: [Pywikipedia-l] python styling (pep8/pyflakes)
Some of them (I think mainly the line breaking ones) can be ignored by adding # noqa
to the end of the line. If we really need something more than that, we can look at a custom
solution. What was the line that was giving you trouble?
Merlijn
On 3 November 2013 13:30, <info(a)gno.de> wrote:
Hi folks,
is there any ability now to ignore pep8 or pyflake testing from a specific code line?
Greetings
xqt
----- Original Nachricht ----
Von: Antoine Musso <hashar+wmf(a)free.fr>
An: pywikipedia-l(a)lists.wikimedia.org
Datum: 29.07.2013 21:41
Betreff: Re: [Pywikipedia-l] python styling (pep8/pyflakes)
> Le 29/07/13 21:19, Merlijn van Deen a écrit :
> > Hm, indeed. # noqa is only supported in v1.4.1+; # nopep8 was introduced
> > in v1.4+, and thus is also not available in 1.3. Would it be possible to
> > upgrade to a more recent version? Ubuntu Saucy has 1.4.5 available.
> >
> > Merlijn
>
> I apparently managed to backport pep8 1.4.5 from Saucy to Precise using
> the tutorial at:
>
> https://wikitech.wikimedia.org/wiki/Backport_packages
>
> I have installed the package on the instance and it seems to be running
> fine. I have filled https://bugzilla.wikimedia.org/52239 to record the
> log of the build and track the backporting itself.
>
> I will have to announce the upgrade ahead of time since it will
> introduce new failures that might makes some repos to suddenly fail
> their pep8 check.
>
>
> --
> Antoine "hashar" Musso
>
>
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
We are looking for a python developer to create bots for uploading economic
statistics into Wikidata. Economic data is usually from non-controversial
sources such as the World Bank, IMF and other government sources.
Statistics include GDP, GDP by industry, employment by industry, government
budgets, inflation, etc.
The python developer who builds the bots will be paid as part of this newly
proposed IEG: https://meta.wikimedia.org/wiki/Grants:IEG/Global_Economic_Map
If you have the python skill and want to be apart of this project, you can
just send me a message here.
Thanks in advance for your help,
Alex
Hi,
I need someone with Wikidata experience to review a task for GCI:
https://gerrit.wikimedia.org/r/#/c/97198/
The code now looks good to me, but I'd rather have someone else give the +2.
Thanks,
Strainu
Did you setup your user-config.py file?
----- Ursprüngliche Nachricht -----
Von: Bojan Kalkan
Gesendet: 22.11.2013 22:39
An: Pywikipedia discussion list
Betreff: Re: [Pywikipedia-l] Commonscat.py
On 11/22/2013 1:57 PM, Amir Ladsgroup wrote:
> retry with downloading from https://tools.wmflabs.org/pywikibot
> It will work :)
> Best
>
>
One problem is solved, but then appeared next
C:\pywikipedia>commonscat.py -new -cc
WARNING: Running on Windows and transliteration_target is not set.
Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows
cannot import name config
Serious import error; pywikibot not available - was it configured?
Traceback (most recent call last):
File "C:\pywikipedia\commonscat.py", line 68, in <module>
import add_text
File "C:\pywikipedia\add_text.py", line 80, in <module>
from pywikibot import config
ImportError: cannot import name config
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Disambig behaviour has been changed on mw side. Thus it is strictly recommended to keep the bot up to date.
Greetings
xqt
----- Ursprüngliche Nachricht -----
Von: Bojan Kalkan
Gesendet: 22.11.2013 13:47
An: Pywikipedia discussion list
Betreff: Re: [Pywikipedia-l] Commonscat.py
On 11/22/2013 1:27 PM, Amir Ladsgroup wrote:
Are you using out-dated pwb? can you run version.py and give the output? because I fixed it (or I thought I fixed it) like a couple weeks ago
Best
On Fri, Nov 22, 2013 at 3:16 PM, Bojan Kalkan <bokicak(a)gmail.com> wrote:
This is output
C:\pywikipedia>commonscat.py -new -v
Config.py
WARNING: Running on Windows and transliteration_target is not set.
Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows
- base_dir: C:\pywikipedia
- done.
'git' is not recognized as an internal or external command,
operable program or batch file.
No handlers could be found for logger "pywiki"
Pywikipediabot wikipedia.py (r-1 (unknown), c459615, 2013/08/31, 09:33:20, OUTDA
TED)
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
==== API action:query ====
rcprop: user|comment|timestamp|title|ids|loginfo|sizes
rclimit: 60
rctype: new
list: recentchanges
rcnamespace: 0
rcshow: !redirect
rcdir: older
----------------
Requesting API query from wikipedia:sr
Getting 60 pages from wikipedia:sr...
WARNING: Family file wikipedia contains version number 1.22wmf12, but it should
be 1.23wmf4
getting huge siprop magicwords...
==== API action:query ====
meta: siteinfo
siprop: magicwords
----------------
Requesting API query from wikipedia:sr
Sleeping for 0.9 seconds, 2013-11-22 12:43:17
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: Medijaviki:Disambiguationspage
rvlimit: 1
----------------
Requesting API query from wikipedia:sr
Working on Zheljko Luchicj
Getting information for site wikipedia:sr
==== API action:query ====
meta: userinfo
uiprop: blockinfo|groups|rights|hasmsg|ratelimits|preferencestoken
----------------
Requesting API query from wikipedia:sr
==== API action:query ====
titles: Zheljko Luchicj
prop: langlinks
----------------
Requesting API query from wikipedia:sr
Working on Ivan Jovic
==== API action:query ====
titles: Ivan Jovic
prop: langlinks
----------------
Requesting API query from wikipedia:sr
Working on Hotel kragujevac
==== API action:query ====
titles: Hotel kragujevac
prop: langlinks
----------------
Requesting API query from wikipedia:sr
Working on Topkapi
==== API action:query ====
titles: Topkapi
prop: langlinks
----------------
Requesting API query from wikipedia:sr
Working on Klada
==== API action:query ====
titles: Klada
prop: langlinks
----------------
Requesting API query from wikipedia:sr
Working on Krajina (oblast)
==== API action:query ====
titles: Krajina (oblast)
prop: langlinks
----------------
Requesting API query from wikipedia:sr
Working on KK Lukoil Akademik
==== API action:query ====
titles: KK Lukoil Akademik
prop: langlinks
----------------
Requesting API query from wikipedia:sr
==== API action:query ====
llcontinue: 838792|la
titles: KK Lukoil Akademik
prop: langlinks
----------------
Requesting API query from wikipedia:sr
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: Lukojl Akademik
rvlimit: 1
----------------
Requesting API query from wikipedia:bg
getting huge siprop magicwords...
==== API action:query ====
meta: siteinfo
siprop: magicwords
----------------
Requesting API query from wikipedia:bg
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: MediyaUiki:Disambiguationspage
rvlimit: 1
----------------
Requesting API query from wikipedia:bg
Sleeping for 0.2 seconds, 2013-11-22 12:43:26
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: PBC Academic Sofia
rvlimit: 1
----------------
Requesting API query from wikipedia:ca
getting huge siprop magicwords...
==== API action:query ====
meta: siteinfo
siprop: magicwords
----------------
Requesting API query from wikipedia:ca
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: MediaWiki:Disambiguationspage
rvlimit: 1
----------------
Requesting API query from wikipedia:ca
Sleeping for 0.4 seconds, 2013-11-22 12:43:28
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: Akademik Sofia (Basketball)
rvlimit: 1
----------------
Requesting API query from wikipedia:de
getting huge siprop magicwords...
==== API action:query ====
meta: siteinfo
siprop: magicwords
----------------
Requesting API query from wikipedia:de
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: MediaWiki:Disambiguationspage
rvlimit: 1
----------------
Requesting API query from wikipedia:de
Retrieving mediawiki messages from Special:Allmessages
==== API action:query ====
ammessages: Disambiguationspage
meta: allmessages
----------------
Requesting API query from wikipedia:de
Traceback (most recent call last):
File "C:\pywikipedia\commonscat.py", line 628, in <module>
main()
File "C:\pywikipedia\commonscat.py", line 624, in main
bot.run()
File "C:\pywikipedia\commonscat.py", line 237, in run
self.treat(page)
File "C:\pywikipedia\commonscat.py", line 254, in treat
(status, always) = self.addCommonscat(page)
File "C:\pywikipedia\commonscat.py", line 414, in addCommonscat
commonscatLink = self.findCommonscatLink(page)
File "C:\pywikipedia\commonscat.py", line 467, in findCommonscatLink
and not ipage.isDisambig()):
File "C:\pywikipedia\wikipedia.py", line 1561, in isDisambig
'Disambiguationspage').split(':', 1)[1]
File "C:\pywikipedia\wikipedia.py", line 6994, in mediawiki_message
raise KeyError("message '%s' does not exist." % key)
KeyError: "message 'Disambiguationspage' does not exist."
I get this on sr.wiki (always) and on sh.wiki (sometimes)
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
--
Amir
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
'git' is not recognized as an internal or external command,
operable program or batch file.
Pywikipedia wikipedia.py (r-1 (unknown), c459615, 2013/08/31, 09:33:20, OUTDATED
)
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
C:\pywikipedia>
I updated pwb once (I think) when git is introduced. It worked well until few months ago.
Hi,
After a couple of experiments it seems to me that
*replace.py something otherthing -search:thing*
works in ALL BUT article namespace.
Could you please check where is the error?
--
Bináris
+2 ;-)
xqt
----- Ursprüngliche Nachricht -----
Von: Merlijn van Deen
Gesendet: 21.11.2013 21:40
An: Pywikipedia discussion list
Betreff: [Pywikipedia-l] Gerrit +2 voting rights for Strainu
Hello all,
Because Strainu is coordinating Google Code-In for pywikibot, I have given him +2 voting rights on our repositories.
Merlijn
Hi Merlijn,
I had that thought this morning at IRC with Strainu and we tried it successful. It is the same as in tortoisegit and I find it easy.
Strainu will inform the GCI participants about that.
Thanks.
xqt
----- Ursprüngliche Nachricht -----
Von: Merlijn van Deen
Gesendet: 21.11.2013 08:52
An: Pywikipedia discussion list
Betreff: Re: [Pywikipedia-l] gerrit patch uploader
Hi xqt,
Yes, but it's not as easy as I would like it to be. The trick is to add the Change-Id line from the previous patchset commit message to the new commit message. So if you want to add a new patch to https://gerrit.wikimedia.org/r/#/c/96693/, fill in the patch uploader as usual, but add
Change-Id: I0c31cd68dc372ed38f461e430c135350a1581828to the bottom of the commit message field.
Hope this helps,
Merlijn
On 21 November 2013 08:21, <info(a)gno.de> wrote:
Hi Merlijn,
is there any possibility to amend a commit to a given review via gerrit patch uploader? This may be important for our Google Code-In participants.
Greetings
xqt
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l