I am trying to set up CORS according to this documentation: https://docs.openmicroscopy.org/omero/5.6.0-m4/sysadmins/unix/install-web.html. However, when I am trying to restart Omero web, an error shows up saying that there is no module named ‘corsheaders’.
Can you double check that
django-cors-headers is installed in the same virtualenv as OMERO.web? Can you show us the output of
This is the output of
Django==1.11.27 django-pipeline==1.6.14 future==0.18.2 gunicorn==20.0.4 numpy==1.18.1 omero-iviewer==0.9.0 omero-marshal==0.7.0 omero-py==5.6.0 omero-web==5.6.1 Pillow==7.0.0 pkg-resources==0.0.0 pytz==2019.3 whitenoise==3.3.1 zeroc-ice==3.6.5
I tried installing it in root according to the documentation but since it didn’t work, I also tried installing it in the omero-web system user but it breaks the dependencies just like what happened in this issue: CORS white listing. Installing it in version 2.4.1 doesn’t work as well.
Sorry to hear that you are experiencing some issues.
You should look at the final release doc https://docs.openmicroscopy.org/omero/5.6.0/sysadmins/unix/install-web.html.
instead of the
m4 you were looking at, which was an intermediate milestone.
It is indicated to install
django-cors-headers in the same virtual env.
The output of the
pip freeze indicates that it has not been installed in the env
you should have something like
attrs==19.3.0 certifi==2019.11.28 Django==1.11.28 django-cors-headers==3.2.1 django-pipeline==1.6.14 ....