* pypi URL 404
@ 2019-05-10 15:16 Jack Hill
2019-05-10 18:11 ` Marius Bakke
0 siblings, 1 reply; 3+ messages in thread
From: Jack Hill @ 2019-05-10 15:16 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 4272 bytes --]
Hi Guix,
I've created the following package definition using the pypi importer.
However, when I try to build it with guix build -f … the build fails
because it cannot download the source. The downloader gets redirected to a
url that returns 404. However, the pypi importer was able download the
source.
Package definition produced by the importer:
(define-module (ducktype)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system python))
(package
(name "python-mallard-ducktype")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mallard-ducktype" version))
(sha256
(base32
"04mjj8apzm0cb4vk73vydgfiw8cyznfy3zrb99xs9d2k8x7cxc99"))))
(build-system python-build-system)
(home-page "")
(synopsis
"Parse Ducktype files and convert them to Mallard.")
(description
"Parse Ducktype files and convert them to Mallard.")
(license license:expat))
guix build -f ducktype.scm output:
substituting /gnu/store/wc83b7yhng8kd937y9z3nq5xlyibshiv-module-import-compiled...
downloading from https://ci.guix.gnu.org/nar/gzip/wc83b7yhng8kd937y9z3nq5xlyibshiv-module-import-compiled...
module-import-compiled 258KiB 4.8MiB/s 00:00 [##################] 100.0%
building /gnu/store/6yn25vcf1kym9l22gfx404rd5grq0pm5-mallard-ducktype-1.0.1.tar.gz.drv...
Starting download of /gnu/store/mmppbk4y3y38zabg295c89ifdxx7lfgs-mallard-ducktype-1.0.1.tar.gz
From https://pypi.org/packages/source/m/mallard-ducktype/mallard-ducktype-1.0.1.tar.gz...
following redirection to `https://files.pythonhosted.org/packages/source/m/mallard-ducktype/mallard-ducktype-1.0.1.tar.gz'...
download failed "https://files.pythonhosted.org/packages/source/m/mallard-ducktype/mallard-ducktype-1.0.1.tar.gz" 404 "Not Found"
Starting download of /gnu/store/mmppbk4y3y38zabg295c89ifdxx7lfgs-mallard-ducktype-1.0.1.tar.gz
From https://mirror.hydra.gnu.org/file/mallard-ducktype-1.0.1.tar.gz/sha256/04mjj8apzm0cb4vk73vydgfiw8cyznfy3zrb99xs9d2k8x7cxc99...
download failed "https://mirror.hydra.gnu.org/file/mallard-ducktype-1.0.1.tar.gz/sha256/04mjj8apzm0cb4vk73vydgfiw8cyznfy3zrb99xs9d2k8x7cxc99" 404 "Not Found"
Starting download of /gnu/store/mmppbk4y3y38zabg295c89ifdxx7lfgs-mallard-ducktype-1.0.1.tar.gz
From https://berlin.guixsd.org/file/mallard-ducktype-1.0.1.tar.gz/sha256/04mjj8apzm0cb4vk73vydgfiw8cyznfy3zrb99xs9d2k8x7cxc99...
download failed "https://berlin.guixsd.org/file/mallard-ducktype-1.0.1.tar.gz/sha256/04mjj8apzm0cb4vk73vydgfiw8cyznfy3zrb99xs9d2k8x7cxc99" 404 "Not Found"
Starting download of /gnu/store/mmppbk4y3y38zabg295c89ifdxx7lfgs-mallard-ducktype-1.0.1.tar.gz
From https://tarballs.nixos.org/sha256/04mjj8apzm0cb4vk73vydgfiw8cyznfy3zrb99xs9d2k8x7cxc99...
download failed "https://tarballs.nixos.org/sha256/04mjj8apzm0cb4vk73vydgfiw8cyznfy3zrb99xs9d2k8x7cxc99" 404 "Not Found"
Starting download of /gnu/store/mmppbk4y3y38zabg295c89ifdxx7lfgs-mallard-ducktype-1.0.1.tar.gz
From https://archive.softwareheritage.org/api/1/content/sha256:29b1ce4e4753b4a47b4a2bffe19dfd9e211edd6b7e8f3337590cd47f1592b212/raw/...
download failed "https://archive.softwareheritage.org/api/1/content/sha256:29b1ce4e4753b4a47b4a2bffe19dfd9e211edd6b7e8f3337590cd47f1592b212/raw/" 404 "Not Found"
failed to download "/gnu/store/mmppbk4y3y38zabg295c89ifdxx7lfgs-mallard-ducktype-1.0.1.tar.gz" from "https://pypi.org/packages/source/m/mallard-ducktype/mallard-ducktype-1.0.1.tar.gz"
builder for `/gnu/store/6yn25vcf1kym9l22gfx404rd5grq0pm5-mallard-ducktype-1.0.1.tar.gz.drv' failed to produce output path `/gnu/store/mmppbk4y3y38zabg295c89ifdxx7lfgs-mallard-ducktype-1.0.1.tar.gz'
build of /gnu/store/6yn25vcf1kym9l22gfx404rd5grq0pm5-mallard-ducktype-1.0.1.tar.gz.drv failed
View build log at '/var/log/guix/drvs/6y/n25vcf1kym9l22gfx404rd5grq0pm5-mallard-ducktype-1.0.1.tar.gz.drv.bz2'.
cannot build derivation `/gnu/store/84i5773gkrmkbynzm51nn655iy9j2n67-python-mallard-ducktype-1.0.1.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/84i5773gkrmkbynzm51nn655iy9j2n67-python-mallard-ducktype-1.0.1.drv' failed
Best,
Jack
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pypi URL 404
2019-05-10 15:16 pypi URL 404 Jack Hill
@ 2019-05-10 18:11 ` Marius Bakke
2019-05-10 18:55 ` Jack Hill
0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2019-05-10 18:11 UTC (permalink / raw)
To: Jack Hill, guix-devel
[-- Attachment #1: Type: text/plain, Size: 793 bytes --]
Jack Hill <jackhill@jackhill.us> writes:
> Hi Guix,
>
> I've created the following package definition using the pypi importer.
> However, when I try to build it with guix build -f … the build fails
> because it cannot download the source. The downloader gets redirected to a
> url that returns 404. However, the pypi importer was able download the
> source.
It seems no proper source tarball is available on PyPI, only a "wheel":
<https://pypi.org/project/mallard-ducktype/>
The importer uses those to extract requirements.txt, and apparently
returns the wheel hash when it fails to find a proper source. That is
probably a bug.
In this case it is probably easiest to download the source from the
upstream repository, or ask the maintainer to upload a tarball.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pypi URL 404
2019-05-10 18:11 ` Marius Bakke
@ 2019-05-10 18:55 ` Jack Hill
0 siblings, 0 replies; 3+ messages in thread
From: Jack Hill @ 2019-05-10 18:55 UTC (permalink / raw)
To: Marius Bakke; +Cc: guix-devel
Thanks for your reply
On Fri, 10 May 2019, Marius Bakke wrote:
> It seems no proper source tarball is available on PyPI, only a "wheel":
>
> <https://pypi.org/project/mallard-ducktype/>
>
> The importer uses those to extract requirements.txt, and apparently
> returns the wheel hash when it fails to find a proper source. That is
> probably a bug.
I've opened #35673 about that: https://issues.guix.gnu.org/issue/35673
> In this case it is probably easiest to download the source from the
> upstream repository, or ask the maintainer to upload a tarball.
I'll adjust the source location. I've also asked upstream to upload a
tarball: http://projectmallard.org/pipermail/mallard-list/2019-May/000287.html
Best,
Jack
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-10 18:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-10 15:16 pypi URL 404 Jack Hill
2019-05-10 18:11 ` Marius Bakke
2019-05-10 18:55 ` Jack Hill
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.