-
Notifications
You must be signed in to change notification settings - Fork 86
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
AttributeError: 'URLError' object has no attribute 'code' #123
Comments
The following is running fine on my system, can you run the script again:
|
Or it might be because you don't have sufficient memory in the drive. |
I think it's caused by previous errors raised by urllib. In my case it was certificate error (also authorization error). When I disable cert checking its working fine. Apparently pyModis doesn't understand them, hence missing attribute error. |
Hi @lokendrarathore , sorry for delay, I'm not able to reproduce the error. Are you still having this problem? |
I just ran into this error. @misiut is right with their assumption about the urllib library. pyModis can't handle the following error: The attributeError is raised because The problem lies here in downmodis.py: I guess the URLError needs to be catched seperately. |
@MarcoHannemann could you provide a Pull request? |
how to disable cert checking? |
@baiyissp112 please try newer version with token support |
Hi, I just ran into this error while trying to run script in a server. Locally it's working fine. Is there a solution to the problem? I'm on last pyModis version (2.3.0) |
@rcammi could you retry today? because usually on Wednesday the NASA reboot their own server |
@lucadelu tried again, and now i'm getting and authorization error (401) locally and on server which leads to AttributeError: 'KeyError' object has no attribute 'code'. It's weird because locally it seemed to be working before I reported the error. This is the script i'm running:
Log error: 2022-10-11 10:36:52,052 - DEBUG - The number of days to download is: 12 I followed #59 instructions but still getting the same error. I'm on python3, tried it in windows 10 and linux mint. |
Problem solved with new version of pymodis (2.4.0) and new token auth. |
i'm trying to download the MODIS LST product version 6
but when i apply the code shows the following error:
why could it be the issue?
Regards
The text was updated successfully, but these errors were encountered: