Page MenuHomePhabricator

Pywikibot master setup.py won't install
Closed, ResolvedPublic

Description

These days, there is a problem when trying to install the latest version from

https://git.wikimedia.org/git/pywikibot/core.git

with

sudo python setup.py install

I get the following error:

running install
running bdist_egg
running egg_info
creating pywikibot.egg-info
writing requirements to pywikibot.egg-info/requires.txt
writing pywikibot.egg-info/PKG-INFO
writing top-level names to pywikibot.egg-info/top_level.txt
writing dependency_links to pywikibot.egg-info/dependency_links.txt
writing manifest file 'pywikibot.egg-info/SOURCES.txt'
reading manifest file 'pywikibot.egg-info/SOURCES.txt'
writing manifest file 'pywikibot.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
Traceback (most recent call last):
  File "setup.py", line 211, in <module>
    use_2to3=False
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-x86_64/egg/setuptools/command/install.py", line 73, in run
  File "build/bdist.linux-x86_64/egg/setuptools/command/install.py", line 93, in do_egg_install
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py", line 185, in run
  File "build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py", line 171, in call_command
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-x86_64/egg/setuptools/command/install_lib.py", line 20, in run
  File "/usr/lib/python2.7/distutils/command/install_lib.py", line 109, in build
    self.run_command('build_py')
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 89, in run
  File "/usr/lib/python2.7/distutils/command/build_py.py", line 373, in build_packages
    self.build_module(module, module_file, package)
  File "build/bdist.linux-x86_64/egg/setuptools/command/build_py.py", line 106, in build_module
  File "/usr/lib/python2.7/distutils/command/build_py.py", line 334, in build_module
    "'package' must be a string (dot-separated), list, or tuple")
TypeError: 'package' must be a string (dot-separated), list, or tuple

Furthermore I don't get this problem when trying to install from the 1ff1cec7a33df85ed0cd957bf01e3f744b7f0310 commit. The error, for now, reproduces on every platform so I guess this is a fairly serious issue.

Event Timeline

Jagwar raised the priority of this task from to High.
Jagwar updated the task description. (Show Details)
Jagwar added a project: Pywikibot.
Jagwar subscribed.
Jagwar renamed this task from Pywikibot install is broken to Pywikibot-core repository is broken and won't install.Oct 2 2015, 4:15 PM
Jagwar raised the priority of this task from High to Unbreak Now!.
Jagwar updated the task description. (Show Details)
Jagwar added a project: Pywikibot-Commons.
Jagwar set Security to None.

Change 243362 had a related patch set uploaded (by John Vandenberg):
distutils build_modules requires str on Python 2

https://gerrit.wikimedia.org/r/243362

In the 2.0 branch, setup.py is not using unicode_literals, so this bug only hit master.

jayvdb renamed this task from Pywikibot-core repository is broken and won't install to Pywikibot master setup.py won't install.Oct 3 2015, 1:21 AM

Change 243362 merged by jenkins-bot:
distutils build_modules requires str on Python 2

https://gerrit.wikimedia.org/r/243362

XZise changed the task status from Duplicate to Resolved.Oct 4 2015, 11:04 PM
XZise assigned this task to jayvdb.
XZise added subscribers: JesseW, Mineo.