smaskar
September 28, 2020, 10:43am
1
I am trying to install the E-Commerce Service which needs to setup the Python virtual environment.
I have installed the PIP (https://docs.python-guide.org/dev/virtualenvs/ )
pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)
In one of the steps, I need to install the pip request using the command
$pipenv install requests
that is where I am getting the following error
Traceback (most recent call last):
File "/home/sarvaha/.local/bin/pipenv", line 10, in <module>
sys.exit(cli())
It expects the project folder to install the packages, I have installed the tutor using (https://docs.tutor.overhang.io/ ) on ubuntu.
$tutor local quickstart
Can someone point me that where can I find the tutor folder so that “pipenv install requests” can install the requests.
Thank you,
Santosh
qali
September 28, 2020, 2:46pm
2
Hello @smaskar !
If I understand correctly you want to install “requests” inside an active virtual environment ??
$ sudo apt-get install python3-venv
$ python3 -m venv ~/tutor
$ source ~/tutor/bin/activate
$ pip3 install requests
I hope that was the answer, and God Luck !
1 Like
thanks, Qali. This helped me a lot. Sorry for the delay in reply.
As I mentioned in my last email. i am following the https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/ecommerce/install_ecommerce.html to install the e-commerce platform.
After following all the steps from your reply and documentation like above. It is going through from step 6.11 from above link.
any pointers
-Santosh
qali
October 5, 2020, 9:33am
4
Hi @smaskar ,
To activate e-commerce in Tutor, you must install tutor-ecommerce and tutor-discovery plugins.
after installations and configurations this plugins, you can customize both via CLI and on Django admin side. But I newer used ecommerce on production. So you should fallow edX documentations.
Thanks.
1 Like
Thank you Qali. This helped me a lot.
After following all this step when I started the tutor platform I am getting the following error on the console
======================================================
Starting the platform in detached mode
======================================================
docker-compose -f /Users/santosh/Library/Application Support/tutor/env/local/docker-compose.yml -f /Users/santosh/Library/Application Support/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans -d
Pulling ecommerce-worker (docker.io/overhangio/openedx-ecommerce-worker:10.1.6 )…
ERROR: Get https://registry-1.docker.io/v2/overhangio/openedx-ecommerce-worker/manifests/10.1.6: Get https://auth.docker.io/token?account=santoshmaskar&scope=repository%3Aoverhangio%2Fopenedx-ecommerce-worker%3Apull&service=registry.docker.io: Service Unavailable
Error: Command failed with status 1: docker-compose -f /Users/santosh/Library/Application Support/tutor/env/local/docker-compose.yml -f /Users/santosh/Library/Application Support/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans -d