googleplay-api icon indicating copy to clipboard operation
googleplay-api copied to clipboard

ImportError: No module named 'gpapi.googleplay'

Open kadirdoganceng opened this issue 7 years ago • 2 comments

I work with python 3.5. When I run test.py file I getting following error:

Traceback (most recent call last): File "test.py", line 1, in from gpapi.googleplay import GooglePlayAPI, RequestError ImportError: No module named 'gpapi.googleplay'

Not found gpapi.googleplay but this module is exist. How can ı run this project . Thanks..

kadirdoganceng avatar Sep 13 '18 11:09 kadirdoganceng

You should install the module along with all its dependencies. The recommended way to do it is using a virtual environment, and installing the project inside it with pip:

[user ~]$ cd googleplay-api
[user ~]$ virtualenv --python=python3 .venv
[user ~]$ source .venv/bin/activate
(.venv) [user ~]$ pip install .
...
(.venv) [user ~]$ python test/test.py -e mymail -p mypass

NoMore201 avatar Sep 13 '18 13:09 NoMore201

@kadirdoganceng this single command can solve your problem: pip install gpapi (run on terminal)

khaleel-git avatar Feb 25 '22 22:02 khaleel-git