DrTrigon added a comment.

  1. install from package management according to T136985#2398708 OR pip by T136985#2398652 (w/o pywikibot)
  2. DO NOT install pywikibot through pip (this is just doubling code and causing confusion)
  3. install pywikibot FROM GIT according to Manual:Pywikibot/Gerrit
$ sudo apt-get install git git-review
$ git clone --branch 2.0 --recursive https://gerrit.wikimedia.org/r/pywikibot/core.git
$ cd core/
$ wget https://gist.githubusercontent.com/AbdealiJK/a94fc0d0445c2ad715d9b1b95ec2ba03/raw/492ef4076d5af74b4855fd26f6810f14cff07ec9/file_metadata_bot.py
$ python pwb.py basic
NOTE: 'user-config.py' was not found!
Please follow the prompts to create it:

Your default user directory is "/home/osboxes/core"
Do you want to use that directory? ([Y]es, [n]o): 
Do you want to copy user files from an existing Pywikibot installation? ([y]es, [N]o): 
Create user-config.py file? Required for running bots. ([Y]es, [n]o): 
 1: anarchopedia
 2: battlestarwiki
 3: commons
 4: i18n
 5: incubator
 6: lyricwiki
 7: mediawiki
 8: meta
 9: omegawiki
10: osm
11: outreach
12: species
13: strategy
14: test
15: vikidia
16: wikia
17: wikiapiary
18: wikibooks
19: wikidata
20: wikimedia
21: wikinews
22: wikipedia
23: wikiquote
24: wikisource
25: wikitech
26: wikiversity
27: wikivoyage
28: wiktionary
29: wowwiki
Select family of sites we are working on, just enter the number or name (default: wikipedia): 3
The only known language: commons
The language code of the site we're working on (default: commons): 
Username on commons:commons: DrTrigon        
Do you want to add any other projects? ([y]es, [N]o): 
Would you like the extended version of user-config.py, with explanations included? ([Y]es, [n]o): 
'/home/osboxes/core/user-config.py' written.
Create user-fixes.py file? Optional and for advanced users. ([y]es, [N]o): 

  1. beta test the bot, to make sure it is working in the first place, run
$ python file_metadata_bot.py -cat:SVG_files -limit:5
Traceback (most recent call last):
  File "file_metadata_bot.py", line 13, in <module>
    from file_metadata.image.image_file import ImageFile
  File "/usr/local/lib/python2.7/dist-packages/file_metadata/image/image_file.py", line 28, in <module>
    warnings.simplefilter('error', Image.DecompressionBombWarning)
AttributeError: 'module' object has no attribute 'DecompressionBombWarning'
<type 'exceptions.AttributeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

@AbdealiJK:

  • We need clear and easy instruction on how to install pywikibot and configure it to use it along with file-metadata and the testing bot script. If I do get confused I'm pretty sure beta tester will as well... ;)
  • I got an error for ImageFile (see above) - does not matter whether I install through package management or pip

@jayvdb: Had issues installing pywikibot, the following seams not to work anymore - what is the workflow now-a-days? How can I get a repo from with I can push to gerrit as well?

$ git clone --recursive ssh://[email protected]:29418/pywikibot/core.git
Cloning into 'core'...
ssh: connect to host gerrit.wikimedia.org port 29418: Network is unreachable
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

TASK DETAIL
https://phabricator.wikimedia.org/T136985

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: DrTrigon
Cc: zhuyifei1999, jayvdb, AbdealiJK, Aklapper, pywikibot-bugs-list, DrTrigon, Zppix, Lethexie, Jay8g
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to