Tutor: command not found (12.1.3)

Hi,

I tried to update tutor from 12.0.0 to 12.1.3 by running “pip3 install --upgrade --user tutor-openedx”

Strangely, Tutor responds with “tutor: command not found” when running “tutor local quickstart”

Any idea?

Thanks

$ pip3 install --upgrade --user tutor-openedx

Collecting tutor-openedx

Downloading tutor-openedx-12.1.3.tar.gz (1.8 kB)

Collecting tutor==12.1.3

Downloading tutor-12.1.3.tar.gz (55 kB)

|████████████████████████████████| 55 kB 3.5 MB/s

Requirement already satisfied, skipping upgrade: appdirs in ./.local/lib/python3.8/site-packages (from tutor==12.1.3->tutor-openedx) (1.4.4)

Requirement already satisfied, skipping upgrade: click>=7.0 in /usr/lib/python3/dist-packages (from tutor==12.1.3->tutor-openedx) (7.0)

Requirement already satisfied, skipping upgrade: jinja2 in /usr/lib/python3/dist-packages (from tutor==12.1.3->tutor-openedx) (2.10.1)

Requirement already satisfied, skipping upgrade: kubernetes in ./.local/lib/python3.8/site-packages (from tutor==12.1.3->tutor-openedx) (17.17.0)

Requirement already satisfied, skipping upgrade: mypy in ./.local/lib/python3.8/site-packages (from tutor==12.1.3->tutor-openedx) (0.902)

Requirement already satisfied, skipping upgrade: pycryptodome in ./.local/lib/python3.8/site-packages (from tutor==12.1.3->tutor-openedx) (3.10.1)

Requirement already satisfied, skipping upgrade: pyyaml>=4.2b1 in /usr/lib/python3/dist-packages (from tutor==12.1.3->tutor-openedx) (5.3.1)

Requirement already satisfied, skipping upgrade: google-auth>=1.0.1 in ./.local/lib/python3.8/site-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (1.31.0)

Requirement already satisfied, skipping upgrade: requests in /usr/lib/python3/dist-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (2.22.0)

Requirement already satisfied, skipping upgrade: urllib3>=1.24.2 in /usr/lib/python3/dist-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (1.25.8)

Requirement already satisfied, skipping upgrade: certifi>=14.05.14 in /usr/lib/python3/dist-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (2019.11.28)

Requirement already satisfied, skipping upgrade: six>=1.9.0 in /usr/lib/python3/dist-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (1.14.0)

Requirement already satisfied, skipping upgrade: requests-oauthlib in ./.local/lib/python3.8/site-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (1.3.0)

Requirement already satisfied, skipping upgrade: setuptools>=21.0.0 in /usr/lib/python3/dist-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (45.2.0)

Requirement already satisfied, skipping upgrade: websocket-client!=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0 in ./.local/lib/python3.8/site-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (1.1.0)

Requirement already satisfied, skipping upgrade: python-dateutil>=2.5.3 in ./.local/lib/python3.8/site-packages (from kubernetes->tutor==12.1.3->tutor-openedx) (2.8.1)

Requirement already satisfied, skipping upgrade: toml in ./.local/lib/python3.8/site-packages (from mypy->tutor==12.1.3->tutor-openedx) (0.10.2)

Requirement already satisfied, skipping upgrade: typing-extensions>=3.7.4 in ./.local/lib/python3.8/site-packages (from mypy->tutor==12.1.3->tutor-openedx) (3.10.0.0)

Requirement already satisfied, skipping upgrade: mypy-extensions<0.5.0,>=0.4.3 in ./.local/lib/python3.8/site-packages (from mypy->tutor==12.1.3->tutor-openedx) (0.4.3)

Requirement already satisfied, skipping upgrade: pyasn1-modules>=0.2.1 in /usr/lib/python3/dist-packages (from google-auth>=1.0.1->kubernetes->tutor==12.1.3->tutor-openedx) (0.2.1)

Requirement already satisfied, skipping upgrade: cachetools<5.0,>=2.0.0 in ./.local/lib/python3.8/site-packages (from google-auth>=1.0.1->kubernetes->tutor==12.1.3->tutor-openedx) (4.2.2)

Requirement already satisfied, skipping upgrade: rsa<5,>=3.1.4; python_version >= "3.6" in ./.local/lib/python3.8/site-packages (from google-auth>=1.0.1->kubernetes->tutor==12.1.3->tutor-openedx) (4.7.2)

Requirement already satisfied, skipping upgrade: oauthlib>=3.0.0 in /usr/lib/python3/dist-packages (from requests-oauthlib->kubernetes->tutor==12.1.3->tutor-openedx) (3.1.0)

Requirement already satisfied, skipping upgrade: pyasn1>=0.1.3 in /usr/lib/python3/dist-packages (from rsa<5,>=3.1.4; python_version >= "3.6"->google-auth>=1.0.1->kubernetes->tutor==12.1.3->tutor-openedx) (0.4.2)

Building wheels for collected packages: tutor-openedx, tutor

Building wheel for tutor-openedx (setup.py) ... done

Created wheel for tutor-openedx: filename=tutor_openedx-12.1.3-py3-none-any.whl size=1879 sha256=b3a43cb254dda9e4b5dc24d7d7d16438330f8830cfdca98f7a608cde46318721

Stored in directory: /home/ubuntu/.cache/pip/wheels/d9/bf/0e/34e9a873cad378b430d30b363a0ac2b258eafb9fe4c0378bba

Building wheel for tutor (setup.py) ... done

Created wheel for tutor: filename=tutor-12.1.3-py3-none-any.whl size=82679 sha256=10475e83b246064d831bc81f2eaa3f7821638b6edd099b5bfb2a52c76c1f7bf4

Stored in directory: /home/ubuntu/.cache/pip/wheels/1b/70/3d/e26692514679a0fe245f2d9cf4d6ae74460ea9e7da39f2e12b

Successfully built tutor-openedx tutor

Installing collected packages: tutor, tutor-openedx

Attempting uninstall: tutor-openedx

Found existing installation: tutor-openedx 12.0.0

Uninstalling tutor-openedx-12.0.0:

Successfully uninstalled tutor-openedx-12.0.0

Successfully installed tutor-12.1.3 tutor-openedx-12.1.3

**ubuntu@ip-172-31-6-200*:**~**$ tutor local quickstart

tutor: command not found

Hi

It seemed that uninstalling Tutor and re-installing it resolved the problem!

Thanks

Hi @nachham! Are you running Tutor on the Tutor AMI? If yes, you should beware that Tutor runs as the “tutor” user there, and not the “ubuntu” user. Also, you should check that the pip-installed “bin” folder is in the path: ~/.local/bin should be in $PATH. If not, you can add it by running:

export PATH=~/.local/bin:$PATH

Add the line above to ~/.bashrc to make this change permanent.

Thank you @regis,

Actually not!, the instance is running on Ubuntu on a T2 Instance.

Thank you for your reply.

Cheers.