Closed jo-mueller closed 5 months ago
Hi, probably the easiest is to use the webclient to upload the script.
Download the script from e.g. https://github.com/ome/omero-figure/blob/v6.2.2/omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py (using the correct version of the script to match your installation of figure) or somehow get the one from inside your Docker to somewhere you can upload it to a web page.
Then, log into the webclient as an Admin user and under the scripts menu choose to upload.
You'll get a dialog where you need to choose the folder omero/figure_scripts
(which should be in the "Choose Folder" options. Then just Choose File
and pick the script you downloaded.
You'll need to do the same to replace the script with a new version when you update the figure app. Hope that helps, Will
@will-moore thanks for the help, worked like a charm. Would you mind if I sent a PR with a short note as Option 3 for the docs of omero-figure?
Please do, thanks!
Dear OMERO-figure team,
I was recently playing with OMERO figure a bit and I am super impressed with the features. I was then trying to enable the export as described in the docs here but couldn't get it to work. Here is how I tried to set it up:
docker exec -it <ID> bash
pip install -U omero-figure
pip show omero-figure
:cd /opt/omero/server/.local/lib/python3.9/site-packages
cd omero_figure/scripts
omero script upload omero/figure_scripts/Figure_To_Pdf.py --official
and received this error:which indicates that the
omero
command is somehow not available to the defaultomero-server
user. I tried to log in asroot
, but I don't know the defaultroot
password. I use the setup from this repo as starting point, where aROOTPASS
variable is set, but I can't log in with it. But I'm not sure that this is a docker issue.Anyway, some directions on how to fix would be really helpful - I would be happy to add a short note to the docs in a PR if something new is to be learned from this :)
Best, Johannes