I am using Mac 10.8.5. I cloned a repository from GitHub on my local system and went into it's directory using terminal. Then I ran the following command:
fab setup
I got the following error:
Traceback (most recent call last):
File "/usr/local/bin/fab", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: paramiko>=1.10
So after this, I googled the error and saw the following article:
http://kitnew.com/pkg-resources-distributionnotfound-paramiko.html
I performed the operations that were mentioned in there and when I ran the command 'fab setup', I again got the same error message. Can somebody tell me what I am missing or what thing is going wrong?
Note: I am using all these technologies including Mac for the very first time.
Related
Trying to install package with following command and got an error
pip install pyleniumio
ERROR: Exception:
Traceback (most recent call last):
File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\cli\base_command.py", line 188, in _main
status = self.run(options, args)
File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\cli\req_command.py", line 185, in wrapper
return func(self, options, args)
File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\commands\install.py", line 407, in run
use_user_site=options.use_user_site,
File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\req\__init__.py", line 71, in install_given_reqs
**kwargs
File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\req\req_install.py", line 811, in install
direct_url=direct_url,
File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\operations\install\wheel.py", line 630, in install_wheel
direct_url=direct_url,
File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\operations\install\wheel.py", line 452, in install_unpacked_whee
l
dest = getattr(scheme, subdir)
AttributeError: 'Scheme' object has no attribute 'conftest.py'
Some python packages require other ways, for example, the POT package requires a specific C++ compiler to install. Make sure you read the entire instructions and have everything you need. Another thing that works for me if you have all the requirements and you are running Linux like me, you can just simply lead your terminal to where the file is and just run for example python package.py and it installs. Hopefully, this helped you and you can install your package.
i recently with Python coding a little programm with a simple GUI (Tkinter).
Now i need PIL to use images.
I want to install PIL using PIP but.
After installing PIP it always gives me this output:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2872, in <module>
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 451, in _build_master
def _build_from_requirements(cls, req_spec):
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 464, in _build_from_requirements
for entry in sys.path:
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 639, in resolve
fallback=True):
pkg_resources.DistributionNotFound: pip==1.5.6
Does anyone know what happend here?
I'm using Elementary OS Freya (Ubuntu 14.04)
I created a virtualenv with python2.7 a few weeks ago and got this project running fine. It uses setuptools and has a few console scripts defined.
Now today I installed python3 and pip3, which I didn't think would conflict with this project but I'm running into this error when I try to run the same console script.
pkg_resources.DistributionNotFound: myproject==1.0.0.0-local
Traceback (most recent call last):
File "/Users/me/dev/myproject/venv-myproject/bin/run_queue_worker_manager", line 5, in <module>
from pkg_resources import load_entry_point
File "/Users/me/dev/project/venv-myproject/lib/python2.7/site-packages/pkg_resources.py", line 2720, in <module>
parse_requirements(__requires__), Environment()
File "/Users/me/dev/project/venv-myproject/lib/python2.7/site-packages/pkg_resources.py", line 588, in resolve
raise DistributionNotFound(req)
Traceback (most recent call last):
File "/usr/local/bin/scrapy", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2793, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 673, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 576, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Scrapy==0.24.4
I have been struggling for hours, I had different errors before, but I deleted all references to python 2.7 in my PATH, (probably a mistake), and now I'm getting new errors.
Help would be greatly appreciated on how to get Scrapy working on my mac.
This error says that the Scrapy Distribution that you are searching for can not be found. Try to upgrade your Scrapy by:
easy_install --upgrade scrapy
or:
pip install --upgrade scrapy
I'm receiving the following error when trying to open bpython in my terminal and I'm not sure how to fix it. I'm new to Python and so I think I may not understand the package system correctly. I'm not sure if there is a conflict from having easy_install and pip both installed.
Traceback (most recent call last):
File "/usr/local/bin/bpython", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: bpython==0.12
Hah, I think I can answer this. When we released the last version of bpython I got confused in the PyPi web interface and accidentally removed the 0.12 tarball from the index replacing it with 0.13.
Your requirement was to have exactly bpython==0.12 fetched from the index which was sadly not there (it has been corrected by now).