PBR

Cliff doesn't install anymore on Python3.2

Bug #1281271 reported by Alessandro Molina
This bug report is a duplicate of:  Bug #1276139: pip install fails on python 3.2. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBR
In Progress
Low
Unassigned
cliff
New
Undecided
Unassigned

Bug Description

This raised on TurboGears continuous integration due to a failed build while installing CLIFF: https://travis-ci.org/TurboGears/tg2devtools/jobs/19061738

I'm also able to replicate the issue locally on a clear Py32 environment:

(py32)amol@LPulsar:~/venv$ pip install cliff
Downloading/unpacking cliff
  Downloading cliff-1.5.2.tar.gz (54kB): 54kB downloaded
  Running setup.py egg_info for package cliff
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/home/amol/venv/py32/build/cliff/setup.py", line 14, in <module>
        pbr=True)
      File "/usr/lib/python3.2/distutils/core.py", line 109, in setup
        _setup_distribution = dist = klass(attrs)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/dist.py", line 221, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/dist.py", line 245, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/pkg_resources.py", line 580, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/pkg_resources.py", line 826, in best_match
        return self.obtain(req, installer) # try and download/install
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/pkg_resources.py", line 838, in obtain
        return installer(requirement)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/dist.py", line 294, in fetch_build_egg
        return cmd.easy_install(req)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 598, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 628, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 823, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 1103, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 1089, in run_setup
        run_setup(setup_script, args)
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/sandbox.py", line 31, in run_setup
        lambda: exec(compile(open(
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/sandbox.py", line 79, in run
        return func()
      File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/sandbox.py", line 34, in <lambda>
        {'__file__':setup_script, '__name__':'__main__'})
      File "setup.py", line 19, in <module>

    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/home/amol/venv/py32/build/cliff/setup.py", line 14, in <module>

    pbr=True)

  File "/usr/lib/python3.2/distutils/core.py", line 109, in setup

    _setup_distribution = dist = klass(attrs)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/dist.py", line 221, in __init__

    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/dist.py", line 245, in fetch_build_eggs

    parse_requirements(requires), installer=self.fetch_build_egg

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/pkg_resources.py", line 580, in resolve

    dist = best[req.key] = env.best_match(req, self, installer)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/pkg_resources.py", line 826, in best_match

    return self.obtain(req, installer) # try and download/install

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/pkg_resources.py", line 838, in obtain

    return installer(requirement)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/dist.py", line 294, in fetch_build_egg

    return cmd.easy_install(req)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 598, in easy_install

    return self.install_item(spec, dist.location, tmpdir, deps)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 628, in install_item

    dists = self.install_eggs(spec, download, tmpdir)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 823, in install_eggs

    return self.build_and_install(setup_script, setup_base)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 1103, in build_and_install

    self.run_setup(setup_script, setup_base, args)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/command/easy_install.py", line 1089, in run_setup

    run_setup(setup_script, args)

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/sandbox.py", line 31, in run_setup

    lambda: exec(compile(open(

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/sandbox.py", line 79, in run

    return func()

  File "/home/amol/venv/py32/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/setuptools/sandbox.py", line 34, in <lambda>

    {'__file__':setup_script, '__name__':'__main__'})

  File "setup.py", line 19, in <module>

Revision history for this message
Alessandro Molina (alessandro-molina) wrote :

Seems related to PBR-0.6, when using PBR 0.5.21 it works correctly.

Cliff doesn't enforce any PBR version, but it clearly states that Python3.2 is supported: https://pypi.python.org/pypi/cliff/1.5.2
This is not true anymore as PBR >= 0.6 don't support python 3.2 anymore.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

It looks like the problem is a unicode literal in pbr:

$ pip install pbr
Downloading/unpacking pbr
  Using download cache from /Users/dhellmann/Library/Caches/pip-downloads/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpbr%2Fpbr-0.6.tar.gz
  Running setup.py egg_info for package pbr
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/Users/dhellmann/Envs/tmp-6c866c0d07db1713/build/pbr/setup.py", line 19, in <module>
        from pbr import util
      File "pbr/util.py", line 81, in <module>
        import pbr.hooks
      File "pbr/hooks/__init__.py", line 18, in <module>
        from pbr.hooks import backwards
      File "pbr/hooks/backwards.py", line 19, in <module>
        from pbr import packaging
      File "pbr/packaging.py", line 273
        changelog_file.write(u"CHANGES\n=======\n\n")
                                                   ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/Users/dhellmann/Envs/tmp-6c866c0d07db1713/build/pbr/setup.py", line 19, in <module>

    from pbr import util

  File "pbr/util.py", line 81, in <module>

    import pbr.hooks

  File "pbr/hooks/__init__.py", line 18, in <module>

    from pbr.hooks import backwards

  File "pbr/hooks/backwards.py", line 19, in <module>

    from pbr import packaging

  File "pbr/packaging.py", line 273

    changelog_file.write(u"CHANGES\n=======\n\n")

                                               ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/dhellmann/Envs/tmp-6c866c0d07db1713/build/pbr
Storing complete log in /Users/dhellmann/.pip/pip.log

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :
Changed in pbr:
importance: Undecided → Low
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.