Hi.
I cannot find any way to solve this issue.
I need to run old version of OpenEDX.
I have running openedx on k8s, and want to move it.
I’ve managed to transfer data.
I’m using old tutor, and have my custom edx platform repository on my own git.
After installing tutor I have new Dockerfile in .local/share/tutor/env. That tries to install some new versions and it works.
The problem is that we have some modifications that I need to keep, and they are not working. They are deployed as a theme and not working at all with new edx.
So; I’ve changed Dockerfiles to the old ones from my repo.
And tried to build edx but ended up with error that I cannot skip.
OSError: [Errno 2] No such file or directory: ‘/openedx/venv/local/lib/python2.7/site-packages/Open_edX-0.11-py2.7.egg’
Does anyone know what causes this?
Full build is too much, but maybe this part will help.
I can only add that i believe this is some part of xblocks or something like this and maybe I could just change version of this?
Stange thing is that is pops out that installation of modules is successfull and popsout error during pip cleaning up.
Found existing installation: Open-edX 0.11
Uninstalling Open-edX-0.11:
Removing file or directory /openedx/venv/lib/python2.7/site-packages/Open_edX-0.11-py2.7.egg
Removing pth entries from /openedx/venv/lib/python2.7/site-packages/easy-install.pth:
Removing entry: ./Open_edX-0.11-py2.7.egg
Successfully uninstalled Open-edX-0.11
Running setup.py develop for Open-edX
Running command /openedx/venv/bin/python2 -c "import setuptools, tokenize;__file__='/openedx/edx-platform/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
running develop
running egg_info
writing requirements to Open_edX.egg-info/requires.txt
writing Open_edX.egg-info/PKG-INFO
writing top-level names to Open_edX.egg-info/top_level.txt
writing dependency_links to Open_edX.egg-info/dependency_links.txt
writing entry points to Open_edX.egg-info/entry_points.txt
reading manifest file 'Open_edX.egg-info/SOURCES.txt'
writing manifest file 'Open_edX.egg-info/SOURCES.txt'
running build_ext
Creating /openedx/venv/lib/python2.7/site-packages/Open-edX.egg-link (link to .)
Adding Open-edX 0.11 to easy-install.pth file
Installed /openedx/edx-platform
Running setup.py develop for safe-lxml
Running command /openedx/venv/bin/python2 -c "import setuptools, tokenize;__file__='/openedx/edx-platform/common/lib/safe_lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
running develop
running egg_info
writing requirements to safe_lxml.egg-info/requires.txt
writing safe_lxml.egg-info/PKG-INFO
writing top-level names to safe_lxml.egg-info/top_level.txt
writing dependency_links to safe_lxml.egg-info/dependency_links.txt
reading manifest file 'safe_lxml.egg-info/SOURCES.txt'
writing manifest file 'safe_lxml.egg-info/SOURCES.txt'
running build_ext
Creating /openedx/venv/lib/python2.7/site-packages/safe-lxml.egg-link (link to .)
Adding safe-lxml 1.0 to easy-install.pth file
Installed /openedx/edx-platform/common/lib/safe_lxml
Running setup.py develop for sandbox-packages
Running command /openedx/venv/bin/python2 -c "import setuptools, tokenize;__file__='/openedx/edx-platform/common/lib/sandbox-packages/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
running develop
running egg_info
writing sandbox_packages.egg-info/PKG-INFO
writing top-level names to sandbox_packages.egg-info/top_level.txt
writing dependency_links to sandbox_packages.egg-info/dependency_links.txt
reading manifest file 'sandbox_packages.egg-info/SOURCES.txt'
writing manifest file 'sandbox_packages.egg-info/SOURCES.txt'
running build_ext
Creating /openedx/venv/lib/python2.7/site-packages/sandbox-packages.egg-link (link to .)
Adding sandbox-packages 0.1.1 to easy-install.pth file
Installed /openedx/edx-platform/common/lib/sandbox-packages
Running setup.py develop for symmath
Running command /openedx/venv/bin/python2 -c "import setuptools, tokenize;__file__='/openedx/edx-platform/common/lib/symmath/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
running develop
running egg_info
writing requirements to symmath.egg-info/requires.txt
writing symmath.egg-info/PKG-INFO
writing top-level names to symmath.egg-info/top_level.txt
writing dependency_links to symmath.egg-info/dependency_links.txt
reading manifest file 'symmath.egg-info/SOURCES.txt'
writing manifest file 'symmath.egg-info/SOURCES.txt'
running build_ext
Creating /openedx/venv/lib/python2.7/site-packages/symmath.egg-link (link to .)
Adding symmath 0.2 to easy-install.pth file
Installed /openedx/edx-platform/common/lib/symmath
Running setup.py develop for xblock-discussion
Running command /openedx/venv/bin/python2 -c "import setuptools, tokenize;__file__='/openedx/edx-platform/openedx/core/lib/xblock_builtin/xblock_discussion/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
running develop
running egg_info
writing requirements to xblock_discussion.egg-info/requires.txt
writing xblock_discussion.egg-info/PKG-INFO
writing top-level names to xblock_discussion.egg-info/top_level.txt
writing dependency_links to xblock_discussion.egg-info/dependency_links.txt
writing entry points to xblock_discussion.egg-info/entry_points.txt
reading manifest file 'xblock_discussion.egg-info/SOURCES.txt'
writing manifest file 'xblock_discussion.egg-info/SOURCES.txt'
running build_ext
Creating /openedx/venv/lib/python2.7/site-packages/xblock-discussion.egg-link (link to .)
Adding xblock-discussion 0.1 to easy-install.pth file
Installed /openedx/edx-platform/openedx/core/lib/xblock_builtin/xblock_discussion
Running setup.py develop for XModule
Running command /openedx/venv/bin/python2 -c "import setuptools, tokenize;__file__='/openedx/edx-platform/common/lib/xmodule/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
running develop
running egg_info
writing requirements to XModule.egg-info/requires.txt
writing XModule.egg-info/PKG-INFO
writing top-level names to XModule.egg-info/top_level.txt
writing dependency_links to XModule.egg-info/dependency_links.txt
writing entry points to XModule.egg-info/entry_points.txt
reading manifest file 'XModule.egg-info/SOURCES.txt'
writing manifest file 'XModule.egg-info/SOURCES.txt'
running build_ext
Creating /openedx/venv/lib/python2.7/site-packages/XModule.egg-link (link to .)
Adding XModule 0.1.1 to easy-install.pth file
Installing xmodule_assets script to /openedx/venv/bin
Installed /openedx/edx-platform/common/lib/xmodule
Successfully installed MongoDBProxy-0.1.0 Open-edX XModule acid-xblock amqp-1.4.9 analytics-python-1.2.9 aniso8601-4.1.0 anyjson-0.3.3 appdirs-1.4.3 argh-0.26.2 argparse-1.4.0 asn1crypto-0.24.0 attrs-17.4.0 babel-1.3 backports.functools-lru-cache-1.5 backports.time-perf-counter-0.0.4 beautifulsoup4-4.7.1 billiard-3.3.0.23 bleach-2.1.4 boto-2.39.0 boto3-1.4.8 botocore-1.8.17 calc capa celery-3.1.25 certifi-2018.11.29 cffi-1.11.5 chardet-3.0.4 chem click-7.0 codejail colorama-0.4.4 coreapi-2.3.3 coreschema-0.0.4 crowdsourcehinter-xblock-0.1 cryptography-2.4.2 cssutils-1.0.2 ddt-1.2.0 decorator-4.3.0 defusedxml-0.4.1 django-1.11.21 django-appconf-1.0.2 django-babel-0.6.2 django-babel-underscore-0.5.2 django-cas-2.1.1 django-celery-3.2.1+edx.2 django-classy-tags-0.8.0 django-config-models-0.2.2 django-cors-headers-2.1.0 django-countries-4.6.1 django-crum-0.7.3 django-fernet-fields-0.5 django-filter-1.0.4 django-ipware-2.1.0 django-memcached-hashring-0.1.2 django-method-override-0.1.0 django-model-utils-3.0.0 django-mptt-0.8.7 django-multi-email-field-0.5.1 django-mysql-2.4.1 django-oauth-plus-2...2...9...e.d.x.-.1 django-oauth-toolkit-1.1.3 django-object-actions-0.10.0 django-openid-auth-0.15.1 django-pipeline-1.5.3 django-pyfs-2.0 django-ratelimit-2.0.0 django-ratelimit-backend-1.1.1 django-require-1.0.11 django-rest-swagger-2.2.0 django-sekizai-0.10.0 django-ses-0.8.4 django-simple-history-2.7.0 django-splash-0.2.2 django-statici18n-1.4.0 django-storages-1.4.1 django-user-tasks-0.1.5 django-waffle-0.12.0 django-webpack-loader-0.6.0 django-wiki djangorestframework-3.6.3 djangorestframework-jwt-1.11.0 djangorestframework-oauth-1.1.1 djangorestframework-xml-1.3.0 dm.xmlsec.binding-1.3.3 docopt-0.6.2 docutils-0.14 dogapi-1.2.1 done-xblock edx-ace-0.1.10 edx-analytics-data-api-client-0.15.2 edx-ccx-keys-0.2.1 edx-celeryutils-0.2.7 edx-completion-2.0.0 edx-django-oauth2-provider-1.3.5 edx-django-release-util-0.3.1 edx-django-sites-extensions-2.3.1 edx-django-utils-1.0.3 edx-drf-extensions-2.0.1 edx-enterprise-1.2.8 edx-i18n-tools-0.4.6 edx-jsme edx-milestones-0.1.13 edx-oauth2-provider-1.2.2 edx-opaque-keys-0.4.4 edx-organizations-1.0.0 edx-proctoring-1.5.7 edx-proctoring-proctortrack-1.0.1 edx-rest-api-client-1.9.2 edx-search-1.2.1 edx-sga-0.8.3 edx-submissions-2.0.12 edx-user-state-client-1.0.4 edxval-1.1.25 elasticsearch-1.9.0 enum34-1.1.6 event-tracking-0.2.7 feedparser-5.1.3 firebase-token-generator-1.3.2 fs-2.0.18 fs-s3fs-0.1.8 future-0.17.1 futures-3.2.0 glob2-0.3 gunicorn-19.0.0 hash-ring-1.3.1 help-tokens-1.0.3 html5lib-1.0.1 httplib2-0.12.0 idna-2.8 ipaddr-2.1.11 ipaddress-1.0.22 isodate-0.6.0 itypes-1.1.0 jinja2-2.10 jmespath-0.9.3 jsondiff-1.1.1 jsonfield-2.0.2 kombu-3.0.37 lazy-1.1 lepl-5.1.3 libsass-0.10.0 loremipsum-1.0.5 lti-consumer-xblock-1.1.8 lxml-3.8.0 mailsnake-1.6.2 mako-1.0.2 markdown-2.6.11 markey-0.8 markupsafe-1.1.0 mock-1.0.1 mongoengine-0.10.0 monotonic-1.6 mysql-python-1.2.5 neobolt-1.7.17 neotime-1.7.4 networkx-1.7 newrelic-4.10.0.112 nltk-3.4 nodeenv-1.1.1 numpy-1.6.2 oauth2-1.9.0.post1 oauthlib-2.1.0 openapi-codec-1.3.2 ora2-2.2.0 parse-rest path.py-8.2.1 pathtools-0.1.2 paver-1.3.4 pbr-5.1.1 pdfminer-20140328 piexif-1.0.2 pillow-5.4.1 polib-1.1.0 prompt-toolkit-2.0.10 psutil-1.2.1 py2neo-4.2.0 pycontracts-1.7.1 pycountry-1.20 pycparser-2.19 pycryptodomex-3.4.7 pygeoip pygments-2.3.1 pygraphviz-1.1 pyjwkest-1.3.2 pyjwt-1.5.2 pymongo-2.9.1 pynliner-0.8.0 pyparsing-2.2.0 pysrt-1.1.1 pystache-custom python-dateutil-2.4.0 python-levenshtein-0.12.0 python-memcached-1.48 python-openid-2.2.5 python-saml-2.4.0 python-swiftclient-3.6.0 pytz-2018.9 pyuca-1.1 pyyaml-3.13 rate-xblock recommender-xblock-1.4.0 redis-2.10.6 reportlab-3.5.13 requests-2.21.0 requests-oauthlib-1.1.0 rest-condition-1.0.3 rfc6266-parser-0.0.5.post2 rules-2.0.1 s3transfer-0.1.13 safe-lxml sailthru-client-2.2.3 sandbox-packages scipy-0.14.0 semantic-version-2.6.0 shapely-1.2.16 shortuuid-0.5.0 simplejson-3.16.0 singledispatch-3.4.0.3 six-1.11.0 slumber-0.7.1 social-auth-app-django-2.1.0 social-auth-core-1.7.0 sorl-thumbnail-12.3 sortedcontainers-0.9.2 soupsieve-1.7.1 sqlparse-0.2.4 stevedore-1.10.0 symmath sympy-0.7.1 tincan-0.0.5 unicodecsv-0.14.1 uritemplate-3.0.0 urllib3-1.23 user-util-0.1.5 voluptuous-0.11.5 watchdog-0.9.0 wcwidth-0.2.5 web-fragments-0.2.2 webencodings-0.5.1 webob-1.8.5 wrapt-1.10.5 xblock-1.2.2 xblock-discussion xblock-drag-and-drop-v2-2.1.6 xblock-google-drive xblock-poll-1.5.1 xblock-review-1.1.5 xblock-utils-1.2.0 zendesk-1.1.1
Cleaning up...
Traceback (most recent call last):
File "/openedx/venv/bin/pip", line 8, in <module>
sys.exit(main())
File "/openedx/venv/local/lib/python2.7/site-packages/pip/__init__.py", line 248, in main
return command.main(cmd_args)
File "/openedx/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 252, in main
pip_version_check(session)
File "/openedx/venv/local/lib/python2.7/site-packages/pip/utils/outdated.py", line 102, in pip_version_check
installed_version = get_installed_version("pip")
File "/openedx/venv/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 838, in get_installed_version
working_set = pkg_resources.WorkingSet()
File "/openedx/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 644, in __init__
self.add_entry(entry)
File "/openedx/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 700, in add_entry
for dist in find_distributions(entry, True):
File "/openedx/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1949, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
File "/openedx/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1463, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
File "/openedx/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1823, in _has
return zip_path in self.zipinfo or zip_path in self._index()
File "/openedx/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1703, in zipinfo
return self._zip_manifests.load(self.loader.archive)
File "/openedx/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1643, in load
mtime = os.stat(path).st_mtime
OSError: [Errno 2] No such file or directory: '/openedx/venv/local/lib/python2.7/site-packages/Open_edX-0.11-py2.7.egg'
The command '/bin/sh -c pip install -r requirements/edx/base.txt -vvv' returned a non-zero code: 1