Opened 4 years ago

Closed 4 years ago

#61448 closed defect (fixed)

py38-requests-cache @0.5.0: Checksum mismatch

Reported by: jhoyt4 Owned by: jhoyt4
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jhoyt4
Port: py-requests-cache

Description (last modified by ryandesign (Ryan Carsten Schmidt))

py38-requests-cache is unable to install due to a checksum mismatch

Error: Checksum (rmd160) mismatch for requests-cache-0.5.0.tar.gz
Error: Checksum (sha256) mismatch for requests-cache-0.5.0.tar.gz
Error: Checksum (size) mismatch for requests-cache-0.5.0.tar.gz
Error: Failed to checksum py38-requests-cache: Unable to verify file checksums
:msg:archivefetch --->  Fetching archive for py38-requests-cache
:debug:archivefetch Executing org.macports.archivefetch (py38-requests-cache)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  py38-requests-cache-0.5.0_0.darwin_20.noarch.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch py38-requests-cache-0.5.0_0.darwin_20.noarch.tbz2 from https://packages.macports.org/py38-requests-cache
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 
:msg:archivefetch --->  Attempting to fetch py38-requests-cache-0.5.0_0.darwin_20.noarch.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/py-requests-cache/py38-requests-cache
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch py38-requests-cache-0.5.0_0.darwin_20.noarch.tbz2 from https://mse.uk.packages.macports.org/py38-requests-cache
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Sat Nov 14 07:18:24 EST 2020
:notice:fetch --->  Fetching distfiles for py38-requests-cache
:debug:fetch Executing org.macports.fetch (py38-requests-cache)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Sat Nov 14 07:18:24 EST 2020
:notice:checksum --->  Verifying checksums for py38-requests-cache
:debug:checksum Executing org.macports.checksum (py38-requests-cache)
:info:checksum --->  Checksumming requests-cache-0.5.0.tar.gz
:debug:checksum Calculated (rmd160) is a88de12f098a5e941a10141aaed1241f5d9dd44d
:error:checksum Checksum (rmd160) mismatch for requests-cache-0.5.0.tar.gz
:info:checksum Portfile checksum: requests-cache-0.5.0.tar.gz rmd160 9d8f8baf17f534d5394acdc12855a892e5ce1578
:info:checksum Distfile checksum: requests-cache-0.5.0.tar.gz rmd160 a88de12f098a5e941a10141aaed1241f5d9dd44d
:debug:checksum Calculated (sha256) is d23d3ecf20af0976558753b5c34bd2d63c75883bbfe6e93499c1fb6ddaffc7b1
:error:checksum Checksum (sha256) mismatch for requests-cache-0.5.0.tar.gz
:info:checksum Portfile checksum: requests-cache-0.5.0.tar.gz sha256 6822f788c5ee248995c4bfbd725de2002ad710182ba26a666e85b64981866060
:info:checksum Distfile checksum: requests-cache-0.5.0.tar.gz sha256 d23d3ecf20af0976558753b5c34bd2d63c75883bbfe6e93499c1fb6ddaffc7b1
:debug:checksum Calculated (size) is 29321
:error:checksum Checksum (size) mismatch for requests-cache-0.5.0.tar.gz
:info:checksum Portfile checksum: requests-cache-0.5.0.tar.gz size 30711
:info:checksum Distfile checksum: requests-cache-0.5.0.tar.gz size 29321
:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  a88de12f098a5e941a10141aaed1241f5d9dd44d \
:info:checksum                     sha256  d23d3ecf20af0976558753b5c34bd2d63c75883bbfe6e93499c1fb6ddaffc7b1 \
:info:checksum                     size    29321
:error:checksum Failed to checksum py38-requests-cache: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"
:error:checksum See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-requests-cache/py38-requests-cache/main.log for details.

Attachments (1)

Portfile (1.6 KB) - added by jhoyt4 4 years ago.
modified Portfile

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by jmroot (Joshua Root)

Port: py-requests-cache added

The current version on PyPI is 0.5.2 so the port might as well be updated to that.

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

Description: modified (diff)
Summary: py38-requests-cache Checksum mismatchpy38-requests-cache @0.5.0: Checksum mismatch

comment:3 Changed 4 years ago by jhoyt4

Cc: jhoyt4 added

comment:4 Changed 4 years ago by jhoyt4

This modified Portfile seems to work with 0.5.2

I don't like the master_site link as it embeds the BLAKE2-256 into the URL - but it works...

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        reclosedev requests-cache 0.5.2 v
revision            0
name                py-requests-cache

categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch
maintainers         nomaintainer

description         Transparent persistent cache for py-requests
long_description    ${description}

checksums           rmd160  ccd76aca28b1ba826a88beb5fc65f16aec26e583 \
                    sha256  813023269686045f8e01e2289cc1e7e9ae5ab22ddd1e2849a9093ab3ab7270eb \
                    size    31159

python.versions     27 35 36 37 38

master_sites        https://files.pythonhosted.org/packages/0c/d4/bdc22aad6979ceeea2638297f213108aeb5e25c7b103fa02e4acbe43992e

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-requests

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst CONTRIBUTORS.rst \
            LICENSE HISTORY.rst ${destroot}${docdir}
    }

    depends_test-append \
                    port:py${python.version}-mock \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}

Last edited 4 years ago by jhoyt4 (previous) (diff)

Changed 4 years ago by jhoyt4

Attachment: Portfile added

modified Portfile

comment:6 Changed 4 years ago by jhoyt4

Owner: set to jhoyt4
Resolution: fixed
Status: newclosed

In 281354d5cc0ee926eb9de486641ef0c44d450260/macports-ports (master):

py-requests-cache: update to 0.5.2

  • update to version 0.5.2
  • add link to latest package

Closes: #61448
Closes: https://github.com/macports/macports-ports/pull/9240

Note: See TracTickets for help on using tickets.