Hello,
I’m trying to setup a development environment using tutor and mounting a local repository but I’m facing an error that I’m not sure how to fix or work around it.
Here is the procedure I followed:
- installed tutor full with
pip install "tutor[full]"
(within a virtual environment) - run
tutor dev launch
and checks that the installation works - Clone the edx-platform repo and checkout tag to a new branch with
git clone https://github.com/openedx/edx-platform.git
and thengit checkout -b local-redwood open-release/redwood.1
- Install node modules with
npm install
- build dev images with
tutor images build openedx-dev
- run
tutor dev launch
Then the containers get stopped and restarted but it then fails right after the permissions container with the following error message
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
running develop
/openedx/venv/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/openedx/venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
creating Open_edX.egg-info
error: could not create 'Open_edX.egg-info': Permission denied
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
running develop
/openedx/venv/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/openedx/venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
creating Open_edX.egg-info
error: could not create 'Open_edX.egg-info': Permission denied
[end of output]
From this whole message, it seems that the main error is this one:
error: could not create 'Open_edX.egg-info': Permission denied
Does someone know what could be wrong here?
I’m not running as root by the way.
Thanks for any help!