-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install'ed mock should not depend on command-line tools #314
Comments
That was a bug in pbr, which has since been fixed, and the release just made of the fix - pbr 1.5.0 should not have this bug. |
Hello, I've got the latest versions of mock and pbr and I am getting the above error when I import mock. I reinstalled mock and pbr but that didn't help. Is there something else I need to do? Python 2.7.8
Traceback (most recent call last): |
This fixed it for me: |
@OpaVote what version of setuptools did you have before you upgraded? |
I had setuptools (0.6c11). Hadn't updated it in awhile. :) |
Thanks. I've filed a bug on pbr (https://bugs.launchpad.net/pbr/+bug/1505007) about this failure mode. |
This still seems to be an issue and a pretty annoying one as it takes down the whole test-runner.
Python 2.7.12 By now, it seems that PBR is slowly dying https://bugs.launchpad.net/pbr Is it perhaps time to remove dependency on command-line tools as OP suggested? I simply tried commenting out references to VersionInfo, version and version_info and the tests ran fine. |
Same here: Can we reopen this or should we file a new bug? |
@Andruso I'm not sure what you mean when you say pbr is slowly dying - nor why its relevant: the bug you had with setuptools 28.3.0 is different to this bug, which appears to be related to setuptools 0.6c11 - a version from 2009. It seems reasonable that folk wanting to install packages from PyPI should use a less than 7 years old version of the build system for python packages. @PyDeQ ssince you seem to have similar versions, please file a new bug. |
@rbtcollins, #383 |
I've installed nose and mock into a chroot with some custom code and libraries.
i got following error when running nose:
It appears that
mock
brought inpbr
dependency and that wants to examine something at runtime.Perhaps a packaging kludge is needed (sdist in the error).
Or just remove it entirely when installing a fixed version from pypi.
Python-2.7.10
nose=1.3.7
mock install:
Successfully installed funcsigs-0.4 mock-1.3.0 pbr-1.4.0
The text was updated successfully, but these errors were encountered: