-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naming inconsistencies cause Omero to fail during startup? #23
Comments
can you please tell me once you install it with pip what are the related value in
I usually do manual install and my values are
|
So these are the steps I went through to get this working locally... (NB: I'm not starting with a clean machine, so there maybe install steps I'm missing...)
You'll need to have https://nodejs.org/en/ installed for this...
Build the dev JavaScript bundle
Copy the dev bundle to the web app:
(gives error To install this to my python environment, I could have added the package to my
Maybe I'll open a PR to add this file. That allowed my to install into my
Add to my web apps:
Then restarted my local |
to avoid the whole recompiling you can directly download the latest release from here |
Hi Alex and Will, thanks a lot for the hints. I can't compile the package on my machine on my own, so I used the ready-to-use tar. I just removed everything related to MMA from our Omero instance and used a fresh MMA tar with the setup.py from Will together with the mentioned omero config settings and can confirm it works fine now! I used a different name in the setup.py than Will, so maybe this was the problem. I would really appreciate if you could add a setup.py to the download package, this would make the installation of new versions probably easier for many people. Thanks, |
@abhamacher I added the setup.py and will some installation info on the readme today. Thank you for your patience. |
@abhamacher I added some installation instruction, if you have time I would really appreciate if you could give it a read and let me know if you think there is more I should add. |
Hi @Akramhar, thanks for adding the setup.py! I checked the file and the updated installation instructions and have these two comments:
Thanks, Anna |
Just reading: https://packaging.python.org/tutorials/packaging-projects/#configuring-metadata
So it only seems to be used for finding packages on pypi.org. But that reminds me that putting this app on pypi would be really nice for users to simply Also I see there that |
I tried installing this on my development server today and ran into the same/similar issue - I cannot restart omero.web after installation of the micro-meta-app module - I think due to naming inconsistencies. Or, more likely, I don't really know what I'm doing. Here's what I've done: Uninstalled and then tried to build from current source as per Will's workflow, above
Result: pip list: But when I try to restart OMERO.web ...
I can change the name of the module that OMERO.web can't find by changing the config to:
but then when I restart OMERO.web, I get this: even though
Therefore, I'm confused and likely doing something not quite right with paths or there's a spelling error staring me in the face that I can't see.... |
Ah, yes, I think you need an underscore here instead of a dash: This is confusing convention we have for all omero-web apps. I don't remember if there's a good reason for it, but that's the way it is... Hope that helps. |
Hi Will - Django is version 1.11.29 from Thanks again! |
@stephenogg Hi Steve, did you use @will-moore setup.py or the setup.py available in the repo? |
@stephenogg I haven't repacked the version yet because I'm currently developing the updated version of the app. |
@Akramhar - I finally got it to work - but probably with a hack. I looked in /opt/omero/web/venv3/lib/python3.8/site-packages and noticed that all the other web apps had two directories, one with the name of the module and one with the version of the module ending in -info (e.g. omero_mapr and omero-0.4.1.dist-info) but the micrometaApp only had the omero_microMetaApp-1.2.2b1.post1.egg-info folder because I had installed it from my home directory with I'm guessing that whoever runs omero-web doesn't have permission to see files owned by me or the python path wasn't set to look for modules in my home directory. As soon as I copied the entire module folder into the /opt/omero/web/venv3/lib/python3.8/site-packages, set the owner, group and permissions as other omero.web.apps - then OMERO.web started working again. |
@stephenogg Hi Steve, uh that's curious. Thanks for the feedback and for the time you put in to find the error :) |
@stephenogg @abhamacher I finally managed to release an updated version of the MMA omero plugin that includes a pip friendly package. This should (finger crossed) solve the pip install + naming issue. Simply download the .tar.gz package and run pip install on it and it should copy all the necessary files in the correct location. I didn't encounter the naming issue again my tests. If someone any of you could please test it too It would be great so that I could go ahead and close this issue. |
Hi Alex,
thanks for the updated Omero package. I tried to integrate the new version today into our Omero system, but am really struggling with this. I think there are some naming inconsistencies, that might be a problem. I'm again installing the module with "pip install " as I did before.
__init__.py
you refer to "omero_microMetaApp" instead "omero_microMetaAppOmero"When I changed everything consistent to "omero_microMetaAppOmero" manually, Omero started again, but the MicroMetaApp page keeps blank without any error. @will-moore Do you maybe have a hint for me, how to debug this within Omero to get more information about why the page keeps blank?
Did I miss here something? Any hints on how to get this run again are much appreciated.
BR, Anna
The text was updated successfully, but these errors were encountered: