You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it seems like there at least 2 issues, so this proof-of-concept can't work:
without any changes django can't find slicer:
`
DEBUG:omeroweb.settings:INSTALLED_APPS=[('django.contrib.staticfiles', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'omero_figure', 'omero_iviewer', 'omero_mapr', 'omero_parade', 'omero_autotag', 'omero_tagsearch', 'slicer', 'corsheaders', 'omeroweb.feedback', 'omeroweb.webadmin', 'omeroweb.webclient', 'omeroweb.webgateway', 'omeroweb.webredirect', 'omeroweb.api', 'pipeline')]
Traceback (most recent call last):
File "/opt/omero/web/venv3/lib/python3.9/site-packages/omeroweb/manage.py", line 81, in
execute_from_command_line(sys.argv)
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/apps/config.py", line 193, in create
import_module(entry)
File "/usr/lib64/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'slicer'
`
But why does django even look at this python3.9 env as the path in "docker-compose.yml" looks like:
omeroweb: # This container uses the tag for the latest web release of OMERO 5 # To upgrade to the next major release, increment the major version number image: "openmicroscopy/omero-web-standalone:5.23.0" container_name: omeroweb_docker environment: OMEROHOST: omeroserver networks: omero: ipv4_address: 172.20.0.3 ports: - "4080:4080" volumes: - "/home/cni/slicer-omero/omero_web_extension_volume:/opt/omero/web/venv3/lib/python3.6/site-packages/slicer" #Replace > - "/home/cni/slicer-omero/omero_web_conf_volume/config.omero:/opt/omero/web/config/config.omero" #Replace the first dir> - "/home/cni/slicer-omero/slicer_volume:/home/Documents/slicer_volume" #Replace the first directory with its volume.Thi>
So you can replace the environment with "python3.9" and it will work. But it still can't write into the "/home/cni/slicer-omero/slicer_volume/ids/" folder to write the temporary json file. Therefore the container must be given access rights to this folder.
Also it seems like django 4.0 can't use the url function anymore, so I had to change it to another command:
After all of these steps, you can start 3d-slicer from omero but it shows no image at all...
The text was updated successfully, but these errors were encountered:
Hi, it seems like there at least 2 issues, so this proof-of-concept can't work:
`
DEBUG:omeroweb.settings:INSTALLED_APPS=[('django.contrib.staticfiles', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'omero_figure', 'omero_iviewer', 'omero_mapr', 'omero_parade', 'omero_autotag', 'omero_tagsearch', 'slicer', 'corsheaders', 'omeroweb.feedback', 'omeroweb.webadmin', 'omeroweb.webclient', 'omeroweb.webgateway', 'omeroweb.webredirect', 'omeroweb.api', 'pipeline')]
Traceback (most recent call last):
File "/opt/omero/web/venv3/lib/python3.9/site-packages/omeroweb/manage.py", line 81, in
execute_from_command_line(sys.argv)
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/apps/config.py", line 193, in create
import_module(entry)
File "/usr/lib64/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'slicer'
`
But why does django even look at this python3.9 env as the path in "docker-compose.yml" looks like:
omeroweb: # This container uses the tag for the latest web release of OMERO 5 # To upgrade to the next major release, increment the major version number image: "openmicroscopy/omero-web-standalone:5.23.0" container_name: omeroweb_docker environment: OMEROHOST: omeroserver networks: omero: ipv4_address: 172.20.0.3 ports: - "4080:4080" volumes: - "/home/cni/slicer-omero/omero_web_extension_volume:/opt/omero/web/venv3/lib/python3.6/site-packages/slicer" #Replace > - "/home/cni/slicer-omero/omero_web_conf_volume/config.omero:/opt/omero/web/config/config.omero" #Replace the first dir> - "/home/cni/slicer-omero/slicer_volume:/home/Documents/slicer_volume" #Replace the first directory with its volume.Thi>
So you can replace the environment with "python3.9" and it will work. But it still can't write into the "/home/cni/slicer-omero/slicer_volume/ids/" folder to write the temporary json file. Therefore the container must be given access rights to this folder.
Also it seems like django 4.0 can't use the url function anymore, so I had to change it to another command:
![Screenshot from 2024-03-08 13-53-40](https://private-user-images.githubusercontent.com/67700096/311238921-992f7d90-0546-4fe7-885a-1ce6fed35735.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NzI4NzUsIm5iZiI6MTczODg3MjU3NSwicGF0aCI6Ii82NzcwMDA5Ni8zMTEyMzg5MjEtOTkyZjdkOTAtMDU0Ni00ZmU3LTg4NWEtMWNlNmZlZDM1NzM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDIwMDkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3NzVjYWViMWNkZTEyMDk5YTI3NjlkMDBkOGY1M2Q5ZDc0YmMzZTVjMDA2OWI3ODY5MWJiN2ZhZTY3YWEyNjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sNaUfs3-Z5NwdnmyxuxlTu5dg--WOjDooYBW0vhoocg)
After all of these steps, you can start 3d-slicer from omero but it shows no image at all...
The text was updated successfully, but these errors were encountered: