XBlock Installation in Open edX Lilac - /edx/bin/pip.edxapp [Command not found message]

I have installed Open edX Lilac on Ubuntu 20.04 @AWS t2.xlarge instance and trying to install XBlocks:GitHub - MarCnu/pdfXBlock: PDF XBlock for OpenEdX (PDF xBlock). The procedure I know is:

DOWNLOAD FROM GIT 
git clone [GIT URL]
sudo chown -R edxapp [XBLOCK DIRECTORY]
sudo chgrp -R edxapp [XBLOCK DIRECTORY]

XBLOCK INSTALLATION
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
/edx/bin/pip.edxapp install [XBLOCK DIRECTORY]

COMPILE ASSETS
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=production
paver update_assets lms --settings=production

RESTART SERVICES
sudo /edx/bin/supervisorctl restart edxapp:
sudo /edx/bin/supervisorctl restart edxapp_worker:

The following file is missing in Lilac or some procedure is changed:
/edx/bin/pip.edxapp [Command not found message]

I have also tried to follow 4.28. Installing an XBlock — Installing, Configuring, and Running the Open edX Platform documentation

pip install git+[GIT URL] and it gives a successfully installed message but after setting in the Studio Advanced Module List, the XBlock is not appeared in “Advanced” blocks.

Please help to resolve the issue.

Are you using Native installation or devstack?

It is Native installation by using this guide https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/1969455764/Koa+Lilac+Native+Open+edX+platform+Ubuntu+20.04+64+bit+Installation

The mistake was: EDXAPP Virtual Environment was not activated.

Here is the way to install XBLOCKS in Open edX:

VIRTUAL ENVIRONMENT
sudo su edxapp -s /bin/bash
cd /edx/app/edxapp/
source edxapp_env

XBLOCK INSTALLATION
pip install git+https://github.com/IONISx/xblock-pdf.git@v1.0.0#egg=xblock-pdf

COMPILE ASSETS
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=production
paver update_assets lms --settings=production
exit

RESTART SERVICES
/edx/bin/supervisorctl restart all

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