-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
imageio has permission problems as WSGI user on Amazon Web Server #106
Comments
Ok. I'm calling @almarklein into the discussion. Can you give more details about what you do, when the error occurs, and what it says, so that we can find a solution ? In the meantime the best would be not to use imageio: if you write GIFs, ask for program="ImageMagick". For the ffmpeg, replace |
i can send you my AWS logs. the error occurs at the time when my app imports moviepy modules. it's running Amazon Linux and ImageMagick is installed. i don't need imageio, so i can fall back to the earlier moviepy version, but i have been running a stable configuration on AWS for weeks until the recent commits, so i wanted to mention this. |
Ok, so it seems that we will need a try/except block. However I really need the error returned by Python so that I can safely filter it out. It should be something like "OSError: blablabla" or SystemError or something like that. Yeah maybe the AWS logs will contain that, can you paste them on Gist maybe ? |
The relevant line is : OSError: [Errno 2] No such file or directory: '/home/wsgi/.imageio' |
my pleasure! |
i should look at the code. it's just os.makedir trying to operate where the web user doesn't have permission. the rest of our file operations are working, like VideoFileClip.save() |
Thanks for the report and for bringing me in. Interesting use-case; I never considered that writing in the home dir would be prohibited. Is there another place where we could download necessary resources to, or is the only time we can download/install stuff at installation time? Previously, were you using the system-level version of ffmpeg? |
i'm using a pre-compiled binary of ffmpeg because i am running on Amazon Elastic Beanstalk. servers are created on-the-fly as traffic increases. the web user can only write to the location where the finished video files are stored. in theory i could give this user write permission for /home, but Amazon EC2 doesn't build the installation that way so there could be a good reasonclyde -------- Original Message -------- Thanks for the report and for bringing me in. Interesting use-case; I never considered that writing in the home dir would be prohibited. Is there another place where we could download necessary resources to, or is the only time we can download/install stuff at installation time? Previously, were you using the system-level version of ffmpeg? —Reply to this email directly or view it on GitHub. |
Thanks. And the pre-compiled ffmpeg library, is it on PATH? |
I fixed this by resorting to |
excellent! -------- Original Message -------- I fixed this by resorting to /var/tmp when ~/ is not possible. I plan to release a new version next week. —Reply to this email directly or view it on GitHub. |
Looks like this was solved on imageio's side. Closing. |
everything was running great but imageio killed me! (not that i am ungrateful for your excellent module!!!)
The text was updated successfully, but these errors were encountered: