Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13513 closed defect (worksforme)

python25 persistent checksum mismatch

Reported by: perfgeek@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: python checksum mismatch Cc:
Port:

Description (last modified by jmpalacios (Juan Manuel Palacios))

For about a week now I've been trying to install gimp on a 10.5.1 Intel-based iMac. After the dbus-glib problem was resolved, the next one was checksum mismatch on python25. This has persisted after several sync's, cleans and installs over a number of days. Either there is something amiss with the port, or this submittor needs a gentle tap with a clue bat.

$ sudo port clean python25
--->  Cleaning python25
$ sudo port install python25
--->  Fetching python25
--->  Attempting to fetch Python-2.5.1.tar.bz2 from http://www.python.org//ftp/python/2.5.1/
--->  Verifying checksum(s) for python25
Error: Checksum (md5) mismatch for Python-2.5.1.tar.bz2
Error: Checksum (sha1) mismatch for Python-2.5.1.tar.bz2
Error: Checksum (rmd160) mismatch for Python-2.5.1.tar.bz2
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.
$ sudo port sync
Password:
$ sudo port clean python25
--->  Cleaning python25
$ sudo port clean --dist python25
--->  Cleaning python25
$ sudo port install python25
--->  Fetching python25
--->  Attempting to fetch Python-2.5.1.tar.bz2 from http://www.python.org//ftp/python/2.5.1/
--->  Verifying checksum(s) for python25
Error: Checksum (md5) mismatch for Python-2.5.1.tar.bz2
Error: Checksum (sha1) mismatch for Python-2.5.1.tar.bz2
Error: Checksum (rmd160) mismatch for Python-2.5.1.tar.bz2
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.
$ 

[Macintosh:~] perfgeek% ls -l /opt/local/var/macports/distfiles/python25/       total 18328
-rw-r--r--  1 root  admin  9383651 Dec  6 08:51 Python-2.5.1.tar.bz2

Change History (12)

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: Port Bugs
Owner: changed from macports-dev@… to mww@…

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: persistent checksum mismatch for python25python25 persistent checksum mismatch

comment:3 Changed 17 years ago by mww@…

Status: newassigned

I just downloaded the file anew and compared the checksums and they all match. The file size of your Python-2.5.1.tar.bz2 file matches the one here, so this is not an obvious bug.

This could mean that either your network is playing tricks on you or your checksum calculation is going awfully wrong. Please post the result of

sudo port -d checksum python25

comment:4 Changed 17 years ago by perfgeek@…

$ sudo port -d checksum python25 Password: DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python25 DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python25 DEBUG: Requested variant darwin is not provided by port python25. DEBUG: Requested variant i386 is not provided by port python25. DEBUG: Requested variant macosx is not provided by port python25. DEBUG: Executing variant darwin_9 provides darwin_9 DEBUG: Skipping completed org.macports.main (python25) DEBUG: Skipping completed org.macports.fetch (python25) ---> Verifying checksum(s) for python25 DEBUG: Executing org.macports.checksum (python25) ---> Checksumming Python-2.5.1.tar.bz2 Error: Checksum (md5) mismatch for Python-2.5.1.tar.bz2 Portfile checksum: Python-2.5.1.tar.bz2 md5 70084ffa561660f07de466c2c8c4842d Distfile checksum: Python-2.5.1.tar.bz2 md5 c0d8bdb3ef709419b91626016cf9a0c3 Error: Checksum (sha1) mismatch for Python-2.5.1.tar.bz2 Portfile checksum: Python-2.5.1.tar.bz2 sha1 993a66bd2dabb0c4f33ca98372576315ef113df6 Distfile checksum: Python-2.5.1.tar.bz2 sha1 eb3222ffcb2d23bff9e9a15b3279970279619a0e Error: Checksum (rmd160) mismatch for Python-2.5.1.tar.bz2 Portfile checksum: Python-2.5.1.tar.bz2 rmd160 af0e8ed93bbc07015c338ae19bbee8811da21c1c Distfile checksum: Python-2.5.1.tar.bz2 rmd160 160bba621009e9023b1da64fbdecc39203dd5010 Error: Target org.macports.checksum returned: Unable to verify file checksums Warning: the following items did not execute (for python25): org.macports.checksum Error: Status 1 encountered during processing. $

comment:5 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Description: modified (diff)

Please use WikiFormatting to paste terminal output in the future, please!

-jmpp

comment:6 Changed 17 years ago by perfgeek@…

Sorry about that - had no idea that one couldn't just cut and paste. Will try to remember that for the future.

comment:7 Changed 17 years ago by mww@…

Keywords: python checksum mismatch added
Resolution: worksforme
Status: assignedclosed

I'm sorry -- the checksums in the Portfile match the official ones on python.org (the md5 for Python-2.5.1.tar.bz2). I also downloaded the file again here and checked: The checksum matches.
Sorry, but this has to be some kind of networking error on your side (perhaps a proxy?) -- please do a

port clean --all python25

and try again.

comment:8 Changed 17 years ago by perfgeek@…

Hopefully this will format correctly...

bash-3.2$ sudo port clean --all python25
--->  Cleaning python25
bash-3.2$ sudo port install python25
--->  Fetching python25
--->  Attempting to fetch Python-2.5.1.tar.bz2 from http://www.python.org//ftp/python/2.5.1/
--->  Verifying checksum(s) for python25
Error: Checksum (md5) mismatch for Python-2.5.1.tar.bz2
Error: Checksum (sha1) mismatch for Python-2.5.1.tar.bz2
Error: Checksum (rmd160) mismatch for Python-2.5.1.tar.bz2
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.

I take it then that the checksums I reported are indeed incorrect. Where would I find the Portfile to make sure that my Portfile has the correct checksums?

As for proxies, I've no clue - my ISP may indeed be running a transparant one on me, but I don't have any (known) of my own. Mac, router, dlsmodem... big bad internet...

I tried downloading the tar.bz2 by hand, and it wouldn't even unzip:

[rick:~] perfgeek% bunzip2 Python-2.5.1.tar.bz2 

bunzip2: Data integrity error when decompressing.
	Input file = Python-2.5.1.tar.bz2, output file = Python-2.5.1.tar

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

bunzip2: Deleting output file Python-2.5.1.tar, if it exists.

So, on a hunch/whim, I tried grabbing the file to netperf.org, and then pulling it down to my system via ssh, and that file would untar. I've not gone so far as to try replacing the one port downloaded with it yet.

[rick:~] perfgeek% cmp Python-2.5.1.tar.bz2 Python-2.5.1.tar.bz2.httped 
Python-2.5.1.tar.bz2 Python-2.5.1.tar.bz2.httped differ: char 1146753, line 4963

So, the hypothesis of a proxy problem is plausible, or shudder - a data pattern induced error somewhere along the way. It cannot be a "plain" proxy problem though, because when I arranged to pull the file via http from netperf.org, that one compared just fine with the one I ssh'd from netperf.org.

comment:9 Changed 17 years ago by mww@…

just copy the file you got manually to

/opt/local/var/macports/distfiles/python25/Python-2.5.1.tar.bz2

and retry. I suppose this will make the checksum error go away for you -- finally.

comment:10 Changed 17 years ago by perfgeek@…

It seems to have done that, and now the rest of the myriad of dependencies for gimp are installing.

comment:11 Changed 17 years ago by perfgeek@…

So, installation is complete. Are longish sequences of gimp_wire_read errors already a known issue? Something to do with not finding a symbol called _PyGimpChannel_type.

comment:12 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.