-
Notifications
You must be signed in to change notification settings - Fork 239
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
TypeError("cannot serialize '_io.BufferedReader' object") #63
Comments
Which Python version are you using? |
I installed the package using python 3: |
Honestly speaking, I don't know what might have caused the error, but it's probably when the downloader tries to return The thing is, we are not trying to return
Lastly, can you please tell which Python version exactly you are using? Like 3.5.2 Sorry for the inconvenience! |
Hi @boramalper , |
@ZSandyGhost wrote:
|
I'm also using Python 3.5.2 |
I edited the download_chunk function in himawaripy.py file to something like this so it pritnts out the urls for individual parts of the image and then I went to those urls manually from the browser and it gave me 404 Not found. Could this be the problem? Maybe it blocks certain ip addresses or something. I tried using an VPN and still no luck url = url_format.format(level, width, strftime("%Y/%m/%d/%H%M%S", latest), x, y)
print(url) |
I found the issue that causing this. It's the timezones as mentioned in #68 I'm from asia and It worked after I changed my timezone to New York and it worked like a charm And setting auto_offset to False in config.py also have solved the problem without altering the timezones |
@ZSandyGhost is right. It's the issue in timezone. Though changing |
setting |
I have been receiving this error as well, however changing auto_offset to False did not work for me. Any other potential work arounds? |
Hello all, still being not sure, I suspect this was because of multiprocessing (Python was probably failing to serialize and pass huge objects back and forth different processes). Now that we switched to multi-threading, the issue should be resolved, hopefully. Can you please make a clean installation of v2 (https://github.com/boramalper/himawaripy/tree/v2) and let me know if it fixes your problem? Thanks! |
I am trying to download images that I scraped from Flickr. And I ran into the same issue.
I am using the below code to download the files:
Will a multithreading approach work? |
@smenon8 How is this relevant to himawaripy? |
The text was updated successfully, but these errors were encountered: