Skip to content
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

ModuleNotFoundError: No module named 'xgoogle.search' #14

Open
abhayghatpande opened this issue Aug 27, 2019 · 1 comment
Open

ModuleNotFoundError: No module named 'xgoogle.search' #14

abhayghatpande opened this issue Aug 27, 2019 · 1 comment

Comments

@abhayghatpande
Copy link

Hi
Followed your instructions in Readme. But search module is not found.

$ ./google_dl.py
Traceback (most recent call last):
  File "./google_dl.py", line 11, in <module>
    from xgoogle.search import GoogleSearch, SearchError
ModuleNotFoundError: No module named 'xgoogle.search'

xgoogle is installed:

$ pip list
Package        Version
-------------- -------
beautifulsoup4 4.4.1
chardet        2.3.0
colorama       0.3.2
html5lib       0.999
nltk           3.0.5
pip            19.2.3
requests       2.4.3
setuptools     41.2.0
six            1.10.0
urllib3        1.9.1
wheel          0.24.0
xgoogle        1.4

search.py is present in xgoogle directory:

$ ls xgoogle/xgoogle/
BeautifulSoup.py   browser.py         realtime.py        sponsoredlinks.py
__init__.py        googlesets.py      search.py          translate.py
@abhayghatpande
Copy link
Author

Ok. So the strangest thing.

I had to run the build and install commands from inside the xgoogle directory. When I ran python xgoogle/setup.py build and python xgoogle/setup.py install, it did not install the modules. But when I did a cd xgoogle and then ran python setup.py build and python setup.py install, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant