Last modified: 2013-10-14 14:18:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57051, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55051 - Interwiki graphs doesn't generates in "autonomous" mode
Interwiki graphs doesn't generates in "autonomous" mode
Status: NEW
Product: Pywikibot
Classification: Unclassified
interwiki.py (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:17 UTC by Kunal Mehta (Legoktm)
Modified: 2013-10-14 14:18 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:17:30 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/278/
Reported by: Anonymous user
Created on: 2010-12-21 19:09:12
Subject: Interwiki graphs doesn't generates in "autonomous" mode
Original description:
1\. Set interwiki\_graph = True in user-config.py
2\. Run interwiki.py to article with interwiki conflict in "auto" mode, for example with
"interwiki.py -auto ru:JPEG XR" 
3\. As result, you get no image in directory /interwiki-graphs

Expected result: Interwiki.py should generate an image in "auto" mode.

\---
Pywikipedia \[http\] trunk/pywikipedia \(r8785, 2010/12/21, 00:11:55\)
Python 2.6.2 \(release26-maint, Apr 19 2009, 01:56:41\) 
\[GCC 4.3.3\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:17:32 UTC
In autonomous mode not all interwiki links are gathered. If there are more than one page to the same site it stops processing since this cannot solved without operators invention. Since -autonomous is for processing a lot of pages imho it is not recommended to use it with interwiki-graph
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:17:34 UTC
- **labels**: 745455 --> interwiki
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:17:35 UTC
I have a list of interwiki conflicts and I want to generate the appropriate images. 
How can I generate this list ? 

My think is to use the "auto" mode.
But with this issue I can't.
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:17:37 UTC
-autonomous option creates a list of autonomous problems \(interwiki conflicts\) so you cannot solve it with that option. Try it without -auto option. I am not sure whether it plots more then one conflict network at once. Since there are a lot of depencies to -auto mode I wouldn't change the behavior in next future.
Comment 5 Kunal Mehta (Legoktm) 2013-10-05 04:17:39 UTC
I don't need to "creates a list of autonomous problems \(interwiki
conflicts\) ", because already I have this list \!
I don't need to "solve it with that option".
I just want to generate the appropriate images for some set of interwiki-conflicts.
For example, I have list, where each item links to iw-conflicts:
http://ru.wikipedia.org/wiki/User:VolkovBot/conflicts/w
wa:Clipe \(maladeye\)
wa:Notåre
...
wuu:运河
As you can see, this list contains more than 50 items.
Can I generate for "wa:Clipe \(maladeye\)", "wa:Notåre"... "wuu:运河" appropriate images with pywikipedia ?

When I tries to use "interwiki.py" without "auto" mode, then I gets prompt with question, what decision I want to resolve conflict. But I don't need these prompts \(because list contains more  than 50 items\). I need images only :-\)
Comment 6 Kunal Mehta (Legoktm) 2013-10-05 04:17:41 UTC
If you don't use auto, you will indeed get questions. However, you can answer 'give up' directly, or use:

echo g  | python interwiki.py -graph nl:Het Bloed van de Scarabae
Comment 7 Kunal Mehta (Legoktm) 2013-10-05 04:17:43 UTC
Yes, "echo g | python interwiki.py -graph nl:Het Bloed van de Scarabae" it's workaround, that solves my problem. Thank you, valhallasw \!
What about this issue - I don't know, maybe you can close it. 
But I think it will be good idea to add a possibility to generate images in batch mode.
Comment 8 Nemo 2013-10-05 10:58:50 UTC
(In reply to comment #7)
> But I think it will be good idea to add a possibility to generate images in
> batch mode.

Oh, yes, I hate this bug.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links