-
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
Attempt to Download freeimage failing #111
Comments
Damn. Have you tried a second and third time just to be sure it wasn't a connexion problem (the error looks like a more serious issue but we never know). @almarklein, any idea ? |
Also can you give your Python version ? |
The |
Below is the full trace. It seems to be bombing out in File "/usr/local/lib/python2.7/site-packages/imageio/core/fetching.py" in _fetch_file
I've tried this several times with no luck. Also I manually downloaded the requested file and that works fine. Any chance there is a workaround here where I can manually install freeimage? :) Thx! Request Method: GET Django Version: 1.7 Traceback:
Exception Type: IOError at / |
Interesting. That last line in fetching.py actually catches an error and reraises it. I would very much like to know the original source. Can you try commenting the lines in imageio/core/fetching.py where the catching is done (in |
Sorry just now getting back to this. I traced this down in to urllb2.py. class HTTPHandler(AbstractHTTPHandler):
if hasattr(httplib, 'HTTPS'):
def do_open(self, http_class, req, **http_conn_args):
**http_conn_args is a dictionary containing {'context': None} LMK if you need more. I'm not familiar enough with urllib to really understand what is going on there. |
From a brief look, I think this may be related to certificates. Can you please try changing
in fetching.py (line 47 in master). |
Hi. I made the change but still get the same error. Exception Type: IOError at / |
I made the following change in urllib2.py line 1166 and it worked. def do_open(self, http_class, req, **http_conn_args):
|
Changing your urllib2.py file is not a very nice solution; it might break other code. Are you sure the To be absolutely sure could you try just calling:
|
I tried that code and the http call fails as well with the following error. init() got an unexpected keyword argument 'context' (<type 'exceptions.TypeError'>) I'm pretty new to Python is it possible that I have incompatible libraries (based on version) somehow? Also, regarding my tweak of urllib2, after I was able to download the file...I changed it back. I just needed a way to get around the download. |
I am not sure about the cause. It seems rather specific to your system. I was hoping we could find a way to change imageio to avoid the error, but it seems this is not possible. I am glad you solved your problem. Let's hope your case was a rare exception. |
I'm leaving the issue open just in case someone else has the same problem. |
I'm closing this issue as it sounds like OP solved their problem and 2+ years later, no-one else has commented to have run into the same problem. |
Installed Moviepy on Mac.
Try to run the first time and the download of free image is failing.
Exception Type: IOError at /
Exception Value: Error while fetching file https://github.com/imageio/imageio-binaries/raw/master/freeimage/libfreeimage-3.16.0-osx10.6.dylib.
Dataset fetching aborted (init() got an unexpected keyword argument 'context')
The text was updated successfully, but these errors were encountered: