I see, well. I have setup a new virutalenv using pyenv for python 3.6.10 Then ran these steps from the python tips guide+tox+pytest install
# Install setup.py requirements. (env) $ pip install -r build-requirements.txt # Install packages. (env) $ pip install -e .[gcp,test] (env) $ pip install pytest (env) $ pip install tox Tried running tox -e py36-lint and tox -e py37-lint (Realized that I might only be able to run py36-lint from my 3.6.10 environment? but not sure) Got this for py36-lint ======================================================================================================================================= log start ======================================================================================================================================== ERROR: invocation failed (exit code 1), logfile: /usr/local/google/home/ajamato/beam/sdks/python/target/.tox/py36-lint/log/py36-lint-1.log ======================================================================================================================================= log start ======================================================================================================================================== Traceback (most recent call last): File "target/.tox/py36-lint/bin/pip", line 5, in <module> from pip._internal.cli.main import main File "/usr/local/google/home/ajamato/beam/sdks/python/target/.tox/py36-lint/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File "/usr/local/google/home/ajamato/beam/sdks/python/target/.tox/py36-lint/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module> from pip._internal.cli.main_parser import create_main_parser File "/usr/local/google/home/ajamato/beam/sdks/python/target/.tox/py36-lint/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "/usr/local/google/home/ajamato/beam/sdks/python/target/.tox/py36-lint/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module> from pip._internal.cli.progress_bars import BAR_TYPES File "/usr/local/google/home/ajamato/beam/sdks/python/target/.tox/py36-lint/lib/python3.6/site-packages/pip/_internal/cli/progress_bars.py", line 7, in <module> from pip._vendor import six ImportError: cannot import name 'six' ======================================================================================================================================== log end ========================================================================================================================================= ERROR: could not install deps [-rbuild-requirements.txt]; v = InvocationError('/usr/local/google/home/ajamato/beam/sdks/python/target/.tox/py36-lint/bin/python target/.tox/py36-lint/bin/pip install --retries 10 -rbuild-requirements.txt', 1) ________________________________________________________________________________________________________________________________________ summary _________________________________________________________________________________________________________________________________________ ERROR: py36-lint: could not install deps [-rbuild-requirements.txt]; v = InvocationError('/usr/local/google/home/ajamato/beam/sdks/python/target/.tox/py36-lint/bin/python target/.tox/py36-lint/bin/pip install --retries 10 -rbuild-requirements.txt', 1) ====== tried pip install six,as well, but I am met with Requirement already satisfied: six in /usr/local/google/home/ajamato/.pyenv/versions/3.6.10/envs/my-virtual-env-3.6.10/lib/python3.6/site-packages (1.15.0) I am guessing something is preventing tox from doing some steps? Does one normally run tox under sudo? On Wed, Nov 4, 2020 at 10:05 PM Chad Dombrova <chad...@gmail.com> wrote: > > All of these are great suggestions. I think what I really need though is >> some way to figure out how to cleanly install (perhaps reinstalling) >> everything I need to run all these commands. tox, yapf, >> > > tox should be the only thing you need to install. After that, tox will > install whatever you need to run the tests. pre-commit accomplishes > something similar, but just for the pre-commit git hooks. > > -chad > >