-
Notifications
You must be signed in to change notification settings - Fork 87
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
loris folder not being created with ubuntu 20.04 #512
Comments
@MedievalMatt to create directories, you have to run bin/setup_directories.py now. Note: there's an issue with that script, and hopefully I'll have a PR soon for fixing it. |
Well shoot. Do you have a sense of when the PR will happen? Or a list somewhere of what all would need to be created manually for things to move forward? |
Sure, the directories you have to create are: Here's what our wsgi file basically looks like:
You can modify it however you want. |
the wsgi example shows that you need to have the loris2.conf file somewhere it can read - you can put that conf file where you want and then point the wsgi file to it. You can copy the existing one from the source repository and then modify it to fit your needs. |
I submitted PR #513 - feel free to try out that "packaging" branch and see if it helps. |
I've never tried to pull down a PR rather than a branch so hopefully just pulling down packaging with the command
Finally, I tried setting up a Digitalocean droplet just in case it was something with Dreamhost and ended up with the same issue. I still suspect it's a step I'm just not seeing, but I figured I'd let you guys know. |
It seems you are running Python Version 2.7 (at least when running the setup_directories.py script). Loris 3 requires Python 3.5+. The last Loris version supporting Python 2.7 was 2.3.3. So consider switching to Python 3, which might be as easy as using |
Ok, will do. I went with 2.7 because I wasn't sure if the dependencies would carry over to 3 and I wanted to eliminate any oddities if I could.. I'll give you a heads up regarding how it works here in a bit. ETA: That seemed to be part of it, but now I'm getting an error because (I think) Python is wanting libffi6 and Ubuntu 20.04 only has libffi7. I'm going to try dropping back a OS version tomorrow and see if that doesn't resolve things. |
As a follow up to my comment last night, I just wanted to let you all know that everything works (with some manual changing of owners) under Ubuntu 18.04. I had to make some changes to the packages to reflect Python3 as opposed to Python2, obviously. Right now it serves images directly from URI, but I'm running into a CORS issue and it won't display the files if I add the manifest to an external test viewer; I think both of those are more a permissions issue than something about the code base, though, so they're something I'll muddle through on my own. Thanks BJ and Gunter for walking me through this (and especially you, BJ, for the quick patch). |
PR #513 changes have been merged into the main development branch. |
Just to let you guys know, I wrote up the bits from my install where I needed to update the instructions you have here at http://www.matthewedavis.net/node/129. I'm mentioning it in case you get someone else with an issue. |
@MedievalMatt some doc changes have been merged into development - they might help with your install process. |
Hello,
I'm attempting to install loris on a clean ubuntu 20.04 installation hosted on a Dreamhost cloud machine. The instructions did not throw any errors, but once finished the expected var/www/loris folder doesn't show up. I've installed Loris once before, but I'm kind of at a loss about what's going on without having any errors to work from.
Is there an extra step or some secret sauce that more experienced python/loris/IIIF folks might be able to suggest to me? I know how to code, but I really only build things to support my academic research so it's more crude welding and bashing my head than anything elegant.
The text was updated successfully, but these errors were encountered: