PBR

pip install fails on python 3.2

Bug #1276139 reported by Rémi Alvergnat
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PBR
Fix Released
Medium
Rémi Alvergnat
cliff
Invalid
Undecided
Unassigned
stevedore
Invalid
Undecided
Unassigned

Bug Description

Tested on windows and travis-ci (linux), same problem occurs. It's working with python 2.6, 2.7 and 3.3.

  Downloading stevedore-0.14.1.tar.gz (357kB): 357kB downloaded
  Running setup.py egg_info for package stevedore
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/home/travis/virtualenv/python3.2/build/stevedore/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/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/dist.py", line 265, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/pkg_resources.py", line 618, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/pkg_resources.py", line 862, in best_match
        return self.obtain(req, installer) # try and download/install
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/pkg_resources.py", line 874, in obtain
        return installer(requirement)
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/dist.py", line 339, in fetch_build_egg
        return cmd.easy_install(req)
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 623, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 653, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 849, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 1130, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 1115, in run_setup
        run_setup(setup_script, args)
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/sandbox.py", line 69, in run_setup
        lambda: execfile(
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/sandbox.py", line 120, in run
        return func()
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/sandbox.py", line 71, in <lambda>
        {'__file__':setup_script, '__name__':'__main__'}
      File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/compat.py", line 92, in execfile
        exec_(compile(source, fn, 'exec'), globs, locs)
      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/travis/virtualenv/python3.2/build/stevedore/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/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/dist.py", line 265, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/pkg_resources.py", line 618, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/pkg_resources.py", line 862, in best_match
    return self.obtain(req, installer) # try and download/install
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/pkg_resources.py", line 874, in obtain
    return installer(requirement)
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/dist.py", line 339, in fetch_build_egg
    return cmd.easy_install(req)
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 623, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 653, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 849, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 1130, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py", line 1115, in run_setup
    run_setup(setup_script, args)
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/sandbox.py", line 69, in run_setup
    lambda: execfile(
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/sandbox.py", line 120, in run
    return func()
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/sandbox.py", line 71, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "/home/travis/virtualenv/python3.2/lib/python3.2/site-packages/setuptools/compat.py", line 92, in execfile
    exec_(compile(source, fn, 'exec'), globs, locs)
  File "setup.py", line 19, in <module>
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/travis/virtualenv/python3.2/build/stevedore

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

I don't think pbr supports python 3.2.

Revision history for this message
Rémi Alvergnat (remi-alvergnat) wrote :

I seems to be an easy fix for pbr, watch https://github.com/openstack-dev/pbr/pull/5

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

Please see https://github.com/openstack-dev/pbr/blob/master/CONTRIBUTING.rst for instructions about contributing a patch to pbr through gerrit.

Does that change work with python 2.6?

Revision history for this message
Rémi Alvergnat (remi-alvergnat) wrote :

This works on python 2.6 (as it supports u'unicode' syntax).

python 3.2 compilation fail on any u'unicode'. (even if no effect on python3, this syntax has be added again in python 3.3, to fix python2/python3 compatibility issues)

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

OK, sounds good. If you resubmit the patch through our gerrit system, I can work on finding reviewers so we can commit it. Let me know if you run into trouble with the setup instructions for gerrit.

Revision history for this message
Rémi Alvergnat (remi-alvergnat) wrote :

I try to submit on gerrit, but have the following message when pushing ...

I've followed https://wiki.openstack.org/wiki/GerritWorkflow and added my SSH public key in system. Toilal is my gerrit username defined in gerrit > Settings > Profile

(env) D:\devel\workspace\pbr>git.exe push --progress "gerrit" bug/1276139
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 520 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3)
remote: Processing changes: refs: 1, done
To ssh://<email address hidden>:29418/openstack-dev/pbr.git
 ! [remote rejected] bug/1276139 -> bug/1276139 (can not create new references) error: failed to push some refs to 'ssh://<email address hidden>:29418/openstack-dev/pbr.git'

Revision history for this message
Rémi Alvergnat (remi-alvergnat) wrote :

I needed to use git review instead of git push ... Seems ok, at https://review.openstack.org/73946.

Can you confirm all is OK ? that's the first time i use git review and gerrit :)

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

Hi, Rémi,

Thanks for the patch, it looks like you've done everything correctly.

Doug

Changed in pbr:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Rémi Alvergnat (remi-alvergnat)
Changed in pbr:
milestone: none → icehouse-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to pbr (master)

Reviewed: https://review.openstack.org/73946
Committed: https://git.openstack.org/cgit/openstack-dev/pbr/commit/?id=b1f29780de7bc8bb0c37f0c786691a44ca394efc
Submitter: Jenkins
Branch: master

commit b1f29780de7bc8bb0c37f0c786691a44ca394efc
Author: Toilal <email address hidden>
Date: Mon Feb 17 07:50:27 2014 +0100

    Add support for python 3-<3.3

    Use unicode_literals import instead of u'unicode' notation.

    Change-Id: I6e6aba938ae43399d5aa398344c219fe43649034
    Closes-Bug: #1276139

Changed in pbr:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to pbr (master)

Fix proposed to branch: master
Review: https://review.openstack.org/83309

Revision history for this message
Rémi Alvergnat (remi-alvergnat) wrote :

I've forgot one line in the previous change ...

Thanks to Dmitry Burmistrov on Gerrit and Afrever on Github to note this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to pbr (master)

Reviewed: https://review.openstack.org/83309
Committed: https://git.openstack.org/cgit/openstack-dev/pbr/commit/?id=95c86cbed7b10ae7385b0b894600c763decd2558
Submitter: Jenkins
Branch: master

commit 95c86cbed7b10ae7385b0b894600c763decd2558
Author: Toilal <email address hidden>
Date: Thu Mar 27 08:22:20 2014 +0100

    Use unicode_literals import instead of u'unicode' notation.

    Change-Id: I94ff7e2517c714b9f576f9f9f615537502fcbf41
    Closes-Bug: #1276139

Revision history for this message
Terry Howe (thowe-g) wrote :

I assume this was a pbr issue and not a stevedore or cliff issue. I marked cliff as 'invalid', cliff installs on 3.2 for me.

Changed in python-cliff:
status: New → Invalid
Changed in python-stevedore:
status: New → Invalid
Changed in pbr:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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