Open graeme44 opened 2 months ago
@graeme44 thanks for posting this. what i've read recently, and seems to square with your issue above, is that tutor has changed the procedure for adding python requirements. until recently there'd been a file named "private.txt", but apparently that has been removed. i'm presently working on an unrelated project. if you can shed light on the new procedure for adding requirements then i can work out what needs to change within this repo.
I'm struggling to get this working with my setup of Tutor and Openedx, it's a fresh install of
Tutor version 17.0.3
with edx-platform onopen-release/quince.master
.Steps to reproduce:
Set up python env and tutor:
Clone the Open EdX platform and switch to the Quince branch and bind-mount the dir:
Run the steps in the openedx-plugin-example to install in Tutor:
Note: The requirements dir didn't exist, so I created it manually and ran it again (the private.txt was deprecated from version 17.0.0 in favour of using
tutor mounts add ...
)Output / Errors:
The plugin was not loaded and is not part of the python environment:
Steps Tried:
I've tried to clone the
openedx-plugin-example
and bind-mount it as suggested in the depreciation note:This alone doesn't work, one needs to also tell Tutor to look for the mounted apps (as described here): Create a
plugin.py
file with the following:Copy this into the Tutor config:
tutor mounts list
Running a
tutor images build openedx
andtutor local launch
shows that the repo is mounted and installed:RUN pip install -e "/mnt/openedx-plugin-example"
However, running a
pip list
still doesn't show the package.Notes:
I've read through your Cookiecutter blog post and looked into the hastexo/tutor-contrib-s3 plugin and I am able to
pip install
this package and it is added correctly to the python env in the Docker image. It is a good example of a Tutor plugin, however it only seems to set config and settings (whereas for my application I need to add some new endpoints to the djangoapps in the lms).I hope the steps above help reproduce the issue I'm facing. Any guidance would be appreciated and I'd be happy to submit a PR if you have and suggestions on how to resolve. 👍