BUG: "pyenv: version `3.8.1' is not installed (set by /workspace/flask-rest-hello/.python-version)"
jferragut opened this issue · 0 comments
jferragut commented
Description:
Upon starting a fresh container, you see the output below.
gitpod /workspace/flask-rest-hello $ HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
> cp .env.example .env;
> pipenv install;
> mysql -u root -e "CREATE DATABASE example";
> pipenv run init;
> pipenv run migrate;
> pipenv run upgrade;
>
> } && {
> pipenv run start;
>
> }
pyenv: version `3.8.1' is not installed (set by /workspace/flask-rest-hello/.python-version)
pyenv: version `3.8.1' is not installed (set by /workspace/flask-rest-hello/.python-version)
pyenv: version `3.8.1' is not installed (set by /workspace/flask-rest-hello/.python-version)
pyenv: version `3.8.1' is not installed (set by /workspace/flask-rest-hello/.python-version)
gitpod /workspace/flask-rest-hello $
Expectation:
The boilerplate should open a port and run server when it starts
Resolution:
To resolve this issue, I ran the following commands
pyenv install 3.8.1
python -m pip install pipenv
pipenv install flask
pipenv run start
My guess is that their may be something wrong with the gitpod config.