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

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