all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guix import error
@ 2020-10-16 11:50 Zelphir Kaltstahl
  2020-10-16 12:19 ` zimoun
  2020-10-16 12:25 ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 15+ messages in thread
From: Zelphir Kaltstahl @ 2020-10-16 11:50 UTC (permalink / raw)
  To: help-guix

Hi Guix users!

Today I tried to import another package from PyPI:

~~~~
$ guix import pypi 'jupyterlab@2.1.5' --recursive
following redirection to `https://pypi.org/pypi/jupyterlab@2.1.5/json/'...
Backtrace:
           4 (primitive-load "/home/user/.config/guix/current/bi…")
In guix/ui.scm:
  2115:12  3 (run-guix-command _ . _)
In guix/scripts/import.scm:
   120:11  2 (guix-import . _)
In guix/scripts/import/pypi.scm:
    97:16  1 (guix-import-pypi . _)
In guix/import/utils.scm:
   427:36  0 (recursive-import "jupyterlab@2.1.5" #f # _ #:guix-name _)

guix/import/utils.scm:427:36: In procedure recursive-import:
Wrong number of values returned to continuation (expected 2)
~~~~

But when I leave away the version, it works:

~~~~
$ guix import pypi 'jupyterlab' --recursive

Starting download of /tmp/guix-file.OuiOPJ
From https://files.pythonhosted.org/packages/39/dc/a0d48fa885fce1efa8a7dcee9c86d52cf59aa312cc35fc78077c841ee411/jupyterlab-2.2.8.tar.gz...
 …2.2.8.tar.gz  8.1MiB                9.3MiB/s 00:01 [##################] 100.0%

Starting download of /tmp/guix-file.hQu7pJ
From https://files.pythonhosted.org/packages/d7/a9/d7c904ee406d1ce320fd1d91e05111fa158e66bb217f68d070b5f58c5937/jupyterlab-2.2.8-py3-none-any.whl...
 …-py3-none-any.whl  7.5MiB           8.7MiB/s 00:01 [##################] 100.0%

Starting download of /tmp/guix-file.v4NZXH
From https://files.pythonhosted.org/packages/92/54/5f321ca4cebfb644ac59eb21601b46a2ff9831ffe1b4e5a588f2a7e98d48/jupyterlab_server-1.2.0.tar.gz...
 …er-1.2.0.tar.gz  22KiB              749KiB/s 00:00 [##################] 100.0%

Starting download of /tmp/guix-file.XvrOHJ
From https://files.pythonhosted.org/packages/b4/eb/560043dcd8376328f8b98869efed66ef68307278406ab99c7f63a34d4ae2/jupyterlab_server-1.2.0-py3-none-any.whl...
 …2.0-py3-none-any.whl  28KiB         986KiB/s 00:00 [##################] 100.0%
(define-public python-jupyterlab-server
  (package
    (name "python-jupyterlab-server")
    (version "1.2.0")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "jupyterlab-server" version))
        (sha256
          (base32
            "132xby7531rbrjg9bqvsx86birr1blynjxy8gi5kcnb6x7fxjcal"))))
    (build-system python-build-system)
    (propagated-inputs
      `(("python-jinja2" ,python-jinja2)
        ("python-json5" ,python-json5)
        ("python-jsonschema" ,python-jsonschema)
        ("python-notebook" ,python-notebook)
        ("python-requests" ,python-requests)))
    (native-inputs
      `(("python-pytest" ,python-pytest)
        ("python-requests" ,python-requests)))
    (home-page "https://jupyter.org")
    (synopsis "JupyterLab Server")
    (description "JupyterLab Server")
    (license license:bsd-3)))

(define-public python-jupyterlab
  (package
    (name "python-jupyterlab")
    (version "2.2.8")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "jupyterlab" version))
        (sha256
          (base32
            "134b1i0hi0by62ajqqmyqksvffj46pzgjjcrwz0ijjah63p7ndy8"))))
    (build-system python-build-system)
    (propagated-inputs
      `(("python-jinja2" ,python-jinja2)
        ("python-jupyterlab-server"
         ,python-jupyterlab-server)
        ("python-notebook" ,python-notebook)
        ("python-tornado" ,python-tornado)))
    (native-inputs
      `(("python-pytest" ,python-pytest)
        ("python-pytest-check-links"
         ,python-pytest-check-links)
        ("python-requests" ,python-requests)
        ("python-virtualenv" ,python-virtualenv)
        ("python-wheel" ,python-wheel)))
    (home-page "http://jupyter.org")
    (synopsis
      "The JupyterLab notebook server extension.")
    (description
      "The JupyterLab notebook server extension.")
    (license license:bsd-3)))
~~~~

So I checked in the manual and there is says:

> A specific package version may optionally be specified by following
the package name by an at-sign and a version number as in the following
example:

> guix import hackage mtl@2.1.3.1

But that is in the "hackage" import section. Is the same not available
for PyPI?

When I check with:

~~~~
$ guix import pypi 'jupyterlab@2.2.8' --recursive
following redirection to `https://pypi.org/pypi/jupyterlab@2.2.8/json/'...
Backtrace:
           4 (primitive-load "/home/user/.config/guix/current/bi…")
In guix/ui.scm:
  2115:12  3 (run-guix-command _ . _)
In guix/scripts/import.scm:
   120:11  2 (guix-import . _)
In guix/scripts/import/pypi.scm:
    97:16  1 (guix-import-pypi . _)
In guix/import/utils.scm:
   427:36  0 (recursive-import "jupyterlab@2.2.8" #f # _ #:guix-name _)

guix/import/utils.scm:427:36: In procedure recursive-import:
Wrong number of values returned to continuation (expected 2)
~~~~

It also errors, although 2.2.8 is the version shown on PyPI currently.

Do the various importers work differently?

Regards,
Zelphir

-- 
repositories: https://notabug.org/ZelphirKaltstahl


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-10-25 11:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-16 11:50 guix import error Zelphir Kaltstahl
2020-10-16 12:19 ` zimoun
2020-10-16 12:25 ` Tobias Geerinckx-Rice
2020-10-16 13:51   ` zimoun
2020-10-18 11:55   ` guix import error + New: setting up a jupyterlab environment Zelphir Kaltstahl
2020-10-18 16:35     ` Efraim Flashner
2020-10-19 14:31       ` Zelphir Kaltstahl
2020-10-19 16:54         ` Efraim Flashner
2020-10-19 18:19           ` Zelphir Kaltstahl
2020-10-19 21:12             ` Zelphir Kaltstahl
2020-10-21  7:18               ` Efraim Flashner
2020-10-24 19:42                 ` Zelphir Kaltstahl
2020-10-25  8:52                   ` Efraim Flashner
2020-10-25 11:49                     ` Zelphir Kaltstahl
2020-10-21  7:09             ` Efraim Flashner

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.