Failed to run python script directly: pyenv-version-name: command not found

We try to run python script directly, like:

$ gtest-parallel $TESTS

Or

$ python3 gtest-parallel $TESTS

The command failed with error:

/opt/circleci/.pyenv/libexec/pyenv-exec: line 24: pyenv-version-name: command not found

A workaround we’re using is specify the python path:

$ /usr/bin/python gtest-parallel $TESTS

Here is our configuration:

If you update this line https://github.com/facebook/rocksdb/blob/master/.circleci/config.yml#L80 to
use single quotes instead of double quotes you’ll find the expected behavior

        echo 'export PATH=$HOME/gtest-parallel:$PATH' >> $BASH_ENV

See my comment here: https://github.com/CircleCI-Public/gcp-cli-orb/issues/22

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.