jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added projects: Pywikibot-tests, pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Twice wmflabs generate_family_files failed, followed by a failure in 
generate_user_files.
  
  The first is on en:
  
  https://travis-ci.org/jayvdb/pywikibot-core/jobs/75614569#L215
  
  ```
  Traceback (most recent call last):
    File "/opt/python/2.7.9/lib/python2.7/runpy.py", line 162, in 
_run_module_as_main
      "__main__", fname, loader, pkg_name)
    File "/opt/python/2.7.9/lib/python2.7/runpy.py", line 72, in _run_code
      exec code in run_globals
    File "/home/travis/build/jayvdb/pywikibot-core/generate_family_file.py", 
line 205, in <module>
      FamilyFileGenerator(*sys.argv[1:]).run()
    File "/home/travis/build/jayvdb/pywikibot-core/generate_family_file.py", 
line 64, in run
      w = Wiki(self.base_url)
    File "pywikibot/site_detect.py", line 66, in __init__
      uo = urlopen(fromurl)
    File "pywikibot/site_detect.py", line 39, in urlopen
      uo = urllib2.urlopen(req)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 154, in urlopen
      return opener.open(url, data, timeout)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 437, in open
      response = meth(req, response)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 550, in 
http_response
      'http', request, response, code, msg, hdrs)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 469, in error
      result = self._call_chain(*args)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 409, in _call_chain
      result = func(*args)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 656, in 
http_error_302
      return self.parent.open(new, timeout=req.timeout)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 437, in open
      response = meth(req, response)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 550, in 
http_response
      'http', request, response, code, msg, hdrs)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 475, in error
      return self._call_chain(*args)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 409, in _call_chain
      result = func(*args)
    File "/opt/python/2.7.9/lib/python2.7/urllib2.py", line 558, in 
http_error_default
      raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  urllib2.HTTPError: HTTP Error 500: Internal Server Error
  <class 'urllib2.HTTPError'>
  CRITICAL: Closing network session.
  ```
  followed by
  
  ```
  $ python -W error::UserWarning -m generate_user_files -dir:~/.pywikibot/ 
-family:$FAMILY -lang:$LANGUAGE -v -user:"$PYWIKIBOT2_USERNAME"
  The base directory is /home/travis/.pywikibot/
  Pywikibot rb1d2cc30c317fed7cfb8db4cc70c04f8913eb94b
  Python 2.7.9 (default, Feb  5 2015, 15:48:42) 
  [GCC 4.6.3]
  Automatically generating user-config.py
  Your default user directory is "/home/travis/.pywikibot/"
  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: musicbrainz
  10: omegawiki
  11: osm
  12: outreach
  13: species
  14: strategy
  15: test
  16: vikidia
  17: wikia
  18: wikiapiary
  19: wikibooks
  20: wikidata
  21: wikimediachapter
  22: wikinews
  23: wikipedia
  24: wikiquote
  25: wikisource
  26: wikitech
  27: wikiversity
  28: wikivoyage
  29: wiktionary
  30: wowwiki
  Select family of sites we are working on, just enter the number or name:
  Traceback (most recent call last):
    File "/opt/python/2.7.9/lib/python2.7/runpy.py", line 162, in 
_run_module_as_main
      "__main__", fname, loader, pkg_name)
    File "/opt/python/2.7.9/lib/python2.7/runpy.py", line 72, in _run_code
      exec code in run_globals
    File "/home/travis/build/jayvdb/pywikibot-core/generate_user_files.py", 
line 429, in <module>
      main()
    File "/home/travis/build/jayvdb/pywikibot-core/generate_user_files.py", 
line 415, in main
      create_user_config(args, force=force)
    File "/home/travis/build/jayvdb/pywikibot-core/generate_user_files.py", 
line 229, in create_user_config
      force=force)
    File "/home/travis/build/jayvdb/pywikibot-core/generate_user_files.py", 
line 117, in get_site_and_lang
      default=default_family)
    File "pywikibot/bot.py", line 714, in input_list_choice
      force=force)
    File "pywikibot/userinterfaces/terminal_interface_base.py", line 372, in 
input_list_choice
      choice = int(choice) - 1
  TypeError: int() argument must be a string or a number, not 'NoneType'
  <type 'exceptions.TypeError'>
  CRITICAL: Closing network session.
  Network session closed
  ```
  
  in the same build, the zh job also failed; the generate_family_files error is 
different, but the generate_user_files error is the same.
  https://travis-ci.org/jayvdb/pywikibot-core/jobs/75614570#L199

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

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

To: jayvdb
Cc: Aklapper, jayvdb, pywikibot-bugs-list, Malyacko



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to