Coder Social home page Coder Social logo

Comments (5)

brandon-rhodes avatar brandon-rhodes commented on August 19, 2024

My guess is that one of the large files is damaged — when I download big files over HTTP (which has no protection against corruption) instead of HTTPS (which will notice if a bit is flipped), I often get errors. I would try downloading the big files again and see if that helps.

Also, you could try opening and reading each file yourself to see which one is damaged:

import gzip
gzip.open('the_big_file.gz').read()

That should attempt to read the compressed file whose name you give it to the file's very end, telling you if it downloaded successfully or not!

from pycon-pandas-tutorial.

 avatar commented on August 19, 2024

thanks for your reply,
I have checked the file as you said and it works fine with the "genres.list.gz" and "release-dates.list.gz", but not with the large ones the "actors.list.gz" and "actresses.list.gz" which either the system crashes or sends the error
" gzip.open('actresses.list.gz').read()
File "C:\Python27\lib\gzip.py", line 261, in read
self._read(readsize)
File "C:\Python27\lib\gzip.py", line 320, in _read
self._add_read_data( uncompress )
File "C:\Python27\lib\gzip.py", line 338, in _add_read_data
self.extrabuf = self.extrabuf[offset:] + data
MemoryError "

....I redownloaded the files and I'm redownloading it again.. Is there something else I should do?
Sry for annoying you and thanks for help..

from pycon-pandas-tutorial.

brandon-rhodes avatar brandon-rhodes commented on August 19, 2024

No, I do not know of any other way to get a correct version of a big file than trying over and over until it finally matches the checksum. Unless you can find a program or utility designed for folks using high-bit-error-rate connections, that does something like download the file 3 times and then compare the differences to hopefully have 2 good blocks "outvote" 1 bad block?

from pycon-pandas-tutorial.

 avatar commented on August 19, 2024

I downloaded it through git on a larger drive than the system drive and thanks God, it worked..
Grateful thanks for the materials and all your efforts,

from pycon-pandas-tutorial.

brandon-rhodes avatar brandon-rhodes commented on August 19, 2024

I am glad that you were able to get it downloaded — I wish you good fortune as you now proceed through the tutorial, and I hope that things proceed smoothly!

from pycon-pandas-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.