Skip to content
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

CRC check failed on setuptools 1.1.7? #94

Closed
ghost opened this issue Oct 30, 2013 · 1 comment
Closed

CRC check failed on setuptools 1.1.7? #94

ghost opened this issue Oct 30, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 30, 2013

Originally reported by: philiptzou (Bitbucket: philiptzou, GitHub: philiptzou)


#!bash

[[email protected]] run: curl --silent -O https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
[[email protected]] sudo: python ez_setup.py
[[email protected]] out: Extracting in /tmp/tmpV3I05A
[[email protected]] out: Traceback (most recent call last):
[[email protected]] out:   File "ez_setup.py", line 382, in <module>
[[email protected]] out:     sys.exit(main())
[[email protected]] out:   File "ez_setup.py", line 379, in main
[[email protected]] out:     return _install(tarball, _build_install_args(options))
[[email protected]] out:   File "ez_setup.py", line 56, in _install
[[email protected]] out:     _extractall(tar)
[[email protected]] out:   File "ez_setup.py", line 315, in _extractall
[[email protected]] out:     self.extract(tarinfo, path)
[[email protected]] out:   File "/usr/lib/python2.7/tarfile.py", line 2085, in extract
[[email protected]] out:     self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
[[email protected]] out:   File "/usr/lib/python2.7/tarfile.py", line 2161, in _extract_member
[[email protected]] out:     self.makefile(tarinfo, targetpath)
[[email protected]] out:   File "/usr/lib/python2.7/tarfile.py", line 2201, in makefile
[[email protected]] out:     copyfileobj(source, target)
[[email protected]] out:   File "/usr/lib/python2.7/tarfile.py", line 266, in copyfileobj
[[email protected]] out:     shutil.copyfileobj(src, dst)
[[email protected]] out:   File "/usr/lib/python2.7/shutil.py", line 49, in copyfileobj
[[email protected]] out:     buf = fsrc.read(length)
[[email protected]] out:   File "/usr/lib/python2.7/tarfile.py", line 819, in read
[[email protected]] out:     buf += self.fileobj.read(size - len(buf))
[[email protected]] out:   File "/usr/lib/python2.7/tarfile.py", line 737, in read
[[email protected]] out:     return self.readnormal(size)
[[email protected]] out:   File "/usr/lib/python2.7/tarfile.py", line 746, in readnormal
[[email protected]] out:     return self.fileobj.read(size)
[[email protected]] out:   File "/usr/lib/python2.7/gzip.py", line 256, in read
[[email protected]] out:     self._read(readsize)
[[email protected]] out:   File "/usr/lib/python2.7/gzip.py", line 303, in _read
[[email protected]] out:     self._read_eof()
[[email protected]] out:   File "/usr/lib/python2.7/gzip.py", line 342, in _read_eof
[[email protected]] out:     hex(self.crc)))
[[email protected]] out: IOError: CRC check failed 0xaab85061 != 0x57cc29b7L

After I switch to 1.1.6 branch, it goes okay.


@ghost
Copy link
Author

ghost commented Nov 2, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Hi Philip. I'm unable to replicate your findings. Is it possible you just got a corrupted copy of the file? I don't know how you would have gotten a corrupted copy, as it hasn't changed for some time. After I ran the command on Ubuntu Precise, I see this:

vagrant@precise64:~$ md5sum setuptools-1.1.7.tar.gz
1f33594d25d574a1640ffb84667c6759  setuptools-1.1.7.tar.gz
vagrant@precise64:~$ ls -l setuptools-1.1.7.tar.gz
-rw-r--r-- 1 root root 682308 Nov  2 18:14 setuptools-1.1.7.tar.gz

It sounds to me like maybe you got a corrupted copy from the CDN or it was corrupted in download. Additionally, you're the only one who has reported the issue, so I suspect it's isolated to your environment or region.

@ghost ghost added major bug labels Mar 29, 2016
@ghost ghost closed this as completed Mar 29, 2016
jaraco added a commit that referenced this issue Dec 29, 2021
tests: use loadTestsFromTestCase() instead of the deprecated makeSuite()
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants