GoogleScraper (Python Script) error: "pkg_resources.DistributionNotFound: aiohttp"

I'm trying to get a GoogleScraper Python script working on Ubuntu 14.04 LTS, but I get the following error when I type "./GoogleScraper -h"

<code>
 ./GoogleScraper -h
Traceback (most recent call last):
  File "./GoogleScraper", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/home/roger/env/lib/python3.4/site-packages/pkg_resources.py", line 2716, in <module>
    working_set.require(__requires__)
  File "/home/roger/env/lib/python3.4/site-packages/pkg_resources.py", line 685, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/roger/env/lib/python3.4/site-packages/pkg_resources.py", line 588, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: aiohttp
</code>

What do I need to do to install this aiohttp package? I googled and got a little embarrassed.

Here is my Python -V output

roger@vbox-ubuntu:~/env/bin$ python -V Python 2.7.6 roger@vbox-ubuntu:~/env/bin$ python3 -V Python 3.4.0

I also performed the following:

virtualenv --python python3 env source env/bin/activate pip install GoogleScraper sudo apt-get install python3-pip sudo pip3 install aiohttp

+4
source share
2 answers
sudo pip3 install aiohttp

should fix your problem (precedes sudo apt-get install python3-pipif pip is not already installed)

+3
source

It seems like my problem was running "sudo apt-get install" in my local environment.

Ubuntu 14.04 LTS, :

sudo apt-get install python-virtualenv python3-pip liblz-dev python-dev libxml2-dev libxslt-dev zlib1g-dev python3-dev libmysqlclient-dev ubuntu-desktop chromium-chromedriver google-chrome-stable

- :

virtualenv --python python3 env source env/bin/activate pip install GoogleScraper sudo pip3 install aiohttp

"GoogleScraper -h" , .

+2

All Articles