androidthings / sample-googleassistant

Google Assistant API sample for Android Things
Apache License 2.0
467 stars 147 forks source link

README: add venv instructions #33

Closed proppy closed 7 years ago

proppy commented 7 years ago

/cc @Fleker @devunwired can you test on a Mac?

Closes #41

Fleker commented 7 years ago

pip install google-auth-oauthlib[tool] --user Ran the first command on Mac. Seemed like the tool downloaded.

Then tried to run the command: -bash: google-oauthlib-tool: command not found

irataxy commented 7 years ago

I got the same results as @Fleker.

proppy commented 7 years ago

@irataxy @Fleker can you check if this got installed in ~/Library/Python/2.7/bin it might be missing in your $PATH.

irataxy commented 7 years ago

It was installed in that location:

ls -l ~/Library/Python/2.7/bin total 72 -rwxr-xr-x 1 nickcook eng 236 Jul 25 08:40 google-oauthlib-tool

proppy commented 7 years ago

@irataxy can you check if PYTHONUSERBASE is defined:

echo $PYTHONUSERBASE
proppy commented 7 years ago

And please also try:

python -c 'import site; print(site.USER_BASE);
irataxy commented 7 years ago

nickcook-macbookair:~ nickcook$ echo $PYTHONUSERBASE

nickcook-macbookair:~ nickcook$ python -c 'import site; print(site.USER_BASE);

print(site.USER_BASE);

irataxy commented 7 years ago

python -c 'import site; print(site.USER_BASE); did not print anything out

proppy commented 7 years ago

Then maybe it's best to document how to create the virtualenv.

proppy commented 7 years ago

@irataxy @Fleker PTAL

proppy commented 7 years ago

@Fleker should we merge this?

Fleker commented 7 years ago

It will be useful to include these instructions in the README.

proppy commented 7 years ago

Taking that as a LGTM :)