AttributeError: Distribution instance has no attribute 'install_requires'
See original GitHub issueWhen downgrading setuptools 36.2.0 to 36.1.1 I get the above error. Here’s a log output:
2017-07-14 06:03:13.445605 | Installing collected packages: setuptools, pyldap, ldappool, pytz, Babel, MarkupSafe, Jinja2, olefile, Pillow, PyYAML, Pygments, alabaster, six, docutils, sphinx-rtd-theme, snowballstemmer, Sphinx, pbr, bashate, bottle, pycparser, cffi, chardet, coverage, ipaddress, pyasn1, enum34, idna, cryptography, restructuredtext-lint, stevedore, doc8, dulwich, funcsigs, mock, openstackdocstheme, requests, oslosphinx, paramiko, pycrypto, reno, sphinxmark, virtualenv, pyflakes, mccabe, pep8, flake8, hacking, ansible, ansible-lint
2017-07-14 06:03:13.445996 | Found existing installation: setuptools 36.2.0
2017-07-14 06:03:13.486541 | Uninstalling setuptools-36.2.0:
2017-07-14 06:03:13.504098 | Successfully uninstalled setuptools-36.2.0
2017-07-14 06:03:13.510070 | Rolling back uninstall of setuptools
2017-07-14 06:03:13.702180 | Exception:
2017-07-14 06:03:13.702251 | Traceback (most recent call last):
2017-07-14 06:03:13.702314 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
2017-07-14 06:03:13.702339 | status = self.run(options, args)
2017-07-14 06:03:13.702398 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
2017-07-14 06:03:13.702421 | prefix=options.prefix_path,
2017-07-14 06:03:13.702480 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
2017-07-14 06:03:13.702496 | **kwargs
2017-07-14 06:03:13.702556 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
2017-07-14 06:03:13.702588 | self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
2017-07-14 06:03:13.702650 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
2017-07-14 06:03:13.702672 | isolated=self.isolated,
2017-07-14 06:03:13.702732 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/pip/wheel.py", line 247, in move_wheel_files
2017-07-14 06:03:13.702750 | prefix=prefix,
2017-07-14 06:03:13.702810 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/pip/locations.py", line 140, in distutils_scheme
2017-07-14 06:03:13.702833 | d = Distribution(dist_args)
2017-07-14 06:03:13.702892 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/setuptools/dist.py", line 365, in __init__
2017-07-14 06:03:13.702913 | self._finalize_requires()
2017-07-14 06:03:13.702974 | File "/home/jenkins/workspace/gate-openstack-ansible-linters-ubuntu-xenial/.tox/linters/local/lib/python2.7/site-packages/setuptools/dist.py", line 372, in _finalize_requires
2017-07-14 06:03:13.702996 | if not self.install_requires:
2017-07-14 06:03:13.703029 | AttributeError: Distribution instance has no attribute 'install_requires'
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:15 (7 by maintainers)
Top Results From Across the Web
AttributeError: Distribution instance has no attribute 'pbr'
I have a module not using pbr: https://github.com/vincentbernat/snimpy/ It ... AttributeError: Distribution instance has no attribute 'pbr'.
Read more >pip install setuptools==8.1 - PyPI
For example, to install to Python 3.3 if you have Python 2.7 installed: ... Distribute #206: AttributeError: 'HTTPMessage' object has no attribute ......
Read more >How to properly package a project with Setuptools in Python?
main() in your client code which raises an AttributeError since there is no src object in your namespace, you should just do prediction_model....
Read more >`setup.py install` from VCS checkout fails: AttributeError ...
... from VCS checkout fails: AttributeError: 'module' object has no attribute ... in finalize_options 'dist_version': self.distribution.get_version(), ...
Read more >buildozer - Python Package Health Analysis - Snyk
AttributeError : 'function' object has no attribute 'glob' #1044. Closed issues: Pygallary #1109; Buildozer compilation ERROR: No matching distribution found for ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This checks out. A minimum reproducible test case had a requirements.txt file of just setuptools==36.5.0 and pylint==1.7.2. Looks like pylint is compiling wrapt in the installation, which is sufficient to trigger this bug.
Added a new line to my
.travis.yml
file topip install setuptools==36.5.0
beforepip install -r requirements.txt
solved the problem for me, just in case anyone else hits the same issue.Is this issue supposed to be fixed? Still experiencing the error when building on Travis CI. Or is there something wrong on their side?