Hey all/anyone,
to start system specs:
- Tutor v14.0.4
- Ubuntu 20.04
- python 3.8.10
- running a custom edx-platform fork, branched from open-release/nutmeg.1 (with only minor changes seemingly unrelated to the issue, url.py changes and modifying default xblocks)
Iβm having an issue with REbuilding the edx-platform in the latest version of Tutor 14.0.4
sorry for the story time, but I need to outline what may have changed prior to breakage:
Background
Iβve updated our system from a koa version after some trial and error and managed to get it building and running successfully with my custom fork of open-release/nutmeg.1
.
Updated plugins, updated theme, updated source code, etc.
and have had the system running successfully with our custom fork for roughly a week.
Today Iβve implemented a very minor modification to our theme (just modified a link address in the header, essentially just a raw text change)
and i cannot get the system to build again. to rule out some things
- Iβve reverted the theme modification to rule out it being the issue
- our custom fork was building previously, with no modification since
- iβve even attempted building without the custom fork and including
--no-cache
to rule out that as the issue
Error
Consistently, Iβm getting the following error on step 96 when building the openedx container, (installing requirements/edx/development.txt
)
ββββββββββββββββββββββββββββββββββββββββ 60.5/60.5 KB 6.5 MB/s eta 0:00:00
Requirement already satisfied: libsass==0.10.0 in /openedx/venv/lib/python3.8/site-packages (from -r requirements/edx/development.txt (line 861)) (0.10.0)
Requirement already satisfied: loremipsum==1.0.5 in /openedx/venv/lib/python3.8/site-packages (from -r requirements/edx/development.txt (line 865)) (1.0.5)
Collecting lti-consumer-xblock==3.4.6
Downloading lti_consumer_xblock-3.4.6-py3-none-any.whl (240 kB)
ββββββββββββββββββββββββββββββββββββββ 240.1/240.1 KB 18.7 MB/s eta 0:00:00
Requirement already satisfied: lxml==4.5.0 in /openedx/venv/lib/python3.8/site-packages (from -r requirements/edx/development.txt (line 871)) (4.5.0)
Collecting m2r==0.2.1
Downloading m2r-0.2.1.tar.gz (16 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
Γ python setup.py egg_info did not run successfully.
β exit code: 1
β°β> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-zum1lzwv/m2r_3383312d2e034baf9e436b5bfee97318/setup.py", line 14, in <module>
from m2r import parse_from_file
File "/tmp/pip-install-zum1lzwv/m2r_3383312d2e034baf9e436b5bfee97318/m2r.py", line 59, in <module>
class RestBlockGrammar(mistune.BlockGrammar):
AttributeError: module 'mistune' has no attribute 'BlockGrammar'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Γ Encountered error while generating package metadata.
β°β> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/openedx/venv/bin/python -m pip install --upgrade pip' command.
The command '/bin/sh -c pip install -r requirements/edx/development.txt' returned a non-zero code: 1
Iβm not sure how to correct this, as itβs seemingly being caused by version conflicts in requirements/edx/development.txt
which has not been modified from nutmeg.1
defaults and was building previously
additionally, after researching the error the proposed solution for this error is to revert versions for the pip packages m2r
and mistune
to the same versions listed in development.txt
even more confusing is there appears to be a commit directly addressing this issue in open-release/nutmeg.1
Commit to nutmeg.1 (not a fix, but at least a comment)
Iβm at a loss on how to address this as it was working previously and seemingly nothing has changed in my code, and iβve attempted reverting all changes, clearing build cache, building with the default repository with no success
If anyone has any information i can go on for this, itβd be GREATLY appreciated. or if i stumble across anyting iβll be sure to update this thread