From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0CaAEH4JhWCnVgEAgWs5BA (envelope-from ) for ; Sun, 25 Apr 2021 08:17:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IBkpDH4JhWASWQAAbx9fmQ (envelope-from ) for ; Sun, 25 Apr 2021 06:17:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1D4B4F6FD for ; Sun, 25 Apr 2021 08:17:33 +0200 (CEST) Received: from localhost ([::1]:42492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laY5E-0000ou-BI for larch@yhetil.org; Sun, 25 Apr 2021 02:17:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laY3i-0000ne-D5 for help-guix@gnu.org; Sun, 25 Apr 2021 02:15:58 -0400 Received: from flashner.co.il ([178.62.234.194]:56180) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laY3g-0005QT-9D for help-guix@gnu.org; Sun, 25 Apr 2021 02:15:58 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id 1194340084; Sun, 25 Apr 2021 06:15:18 +0000 (UTC) Date: Sun, 25 Apr 2021 09:14:31 +0300 From: Efraim Flashner To: phodina Subject: Re: Guix Jupyter notebook Message-ID: Mail-Followup-To: phodina , "help-guix@gnu.org" References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="etDoiht8C30QCrrR" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, NUMERIC_HTTP_ADDR=1.242, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "help-guix@gnu.org" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619331453; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=utmOYS1eZUFBg3EokXMPez7kUJFF+rvHN3Jx0QIAQME=; b=l4n0pJryxIBNU4yjwKfgoJ1hXMisLL2C5hS486xyvTaNgNrpj1G86ysj+0L/HkPHjpFL5F weQUSN0LeRCbsBfs0ucOwCSJKSTg9AEGBTXY6FY0AxbOfVhySkLT3/xRMZfPPQ0o7kci9k NsiWUziTaydlP5TjKM4ro5J9B0wJRktAedoL+rmA2wZkBTOuXONa9zqRwFKH2RGO6Xb/y3 ssqxzQBFQfySmIqSdkD2puG7Pr52Ph7sNkvHD86ciAz4xbVmB8CMPgCPOhHkPDmu2Znw4k Y2FxFvsENwAvl68HsSTs9Zm4dad5Z4LJPTuB0ERGqu5IZaBmhVCq0dHeQjB74g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619331453; a=rsa-sha256; cv=none; b=BZwTzlp1O8Gg5kA5X0fqxzVOUU4f5QmRWDEz2gLlYbbpNKMoqXEiQL+MQuyBXH1SxxGTfu kBbfsW7xSFXqhqgT4NWH/P+TOBWqEY+3upN7YrYHkn9p2YKguD+MWAg8wtkK8rNsySkZMQ wbAZxlaK/uck8Yg4hmp7u/cYYdIAteXefuTyEXt62nf36jawTkcZHe6eqpPXn8w0s3C/Jc zuFvOybG4eJkvmxtjnWr9XzxBZzNX8I//Z1ZeOJ4umBSoFzP8HHe+Utor4JZpZPiqPOH7E ANDahan6kJgiI1v34PgG24MH8b/hZ3efDqdlqGIlqGWBJxfKGyxb3FL0EaKF+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 1D4B4F6FD X-Spam-Score: -4.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: CFTL+/S0MEAQ --etDoiht8C30QCrrR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 24, 2021 at 09:33:47AM +0000, phodina via wrote: > I wanted to run a Jupyter notebook using Guix to define the inputs. Howev= er I run into an issue in python module. Could you help me with the Distrib= utionNotFound error? >=20 > $ guix install jupyter guix-jupyter > ... > $ guix describe > Generation 21 Apr 21 2021 10:14:08 (current) > guix 13c4a37 > repository URL: > https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 13c4a377f5a2e1240790679f3d5643385b6d7635 > $ jupyter notebook > Traceback (most recent call last): > File "/gnu/store/sqml7rpr1zamp1llapd208dv2n34anh5-python-jupyter-core-4= =2E7.1/bin/.jupyter-real", line 6, in > from pkg_resources import load_entry_point > File "/gnu/store/w32f5mp0x0sklmkxkm3gbidanxxj05k8-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 3251, in > def _initialize_master_working_set(): > File "/gnu/store/w32f5mp0x0sklmkxkm3gbidanxxj05k8-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside > f(*args, **kwargs) > File "/gnu/store/w32f5mp0x0sklmkxkm3gbidanxxj05k8-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_m= aster_working_set > working_set =3D WorkingSet._build_master() > File "/gnu/store/w32f5mp0x0sklmkxkm3gbidanxxj05k8-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master > ws.require(__requires__) > File "/gnu/store/w32f5mp0x0sklmkxkm3gbidanxxj05k8-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 900, in require > needed =3D self.resolve(parse_requirements(requirements)) > File "/gnu/store/w32f5mp0x0sklmkxkm3gbidanxxj05k8-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve > raise DistributionNotFound(req, requirers) > pkg_resources.DistributionNotFound: The 'six' distribution was not found = and is required by traitlets >=20 I'm unable to reproduce this (ins)efraim@3900XT ~/workspace/guix$ guix describe Generation 19 Apr 25 2021 08:28:36 (current) guix 8380b16 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 8380b16a8a63eb1ed01cf9db1677e93aac8f3ae8 (ins)efraim@3900XT ~/workspace/guix$ guix environment -C -N --ad-hoc jupyte= r guix-jupyter -- jupyter notebook [I 06:08:47.078 NotebookApp] Writing notebook server cookie secret to /home= /efraim/.local/share/jupyter/runtime/notebook_cookie_secret [I 06:08:47.222 NotebookApp] Serving notebooks from local directory: /home/= efraim/workspace/guix [I 06:08:47.222 NotebookApp] Jupyter Notebook 6.3.0 is running at: [I 06:08:47.222 NotebookApp] http://localhost:8888/?token=3D52eaa1ab139b0eb= bcc86e2f2939924eb706033ae2f5e9775 [I 06:08:47.222 NotebookApp] or http://127.0.0.1:8888/?token=3D52eaa1ab139= b0ebbcc86e2f2939924eb706033ae2f5e9775 [I 06:08:47.222 NotebookApp] Use Control-C to stop this server and shut dow= n all kernels (twice to skip confirmation). [W 06:08:47.224 NotebookApp] No web browser found: could not locate runnabl= e browser. [C 06:08:47.224 NotebookApp] To access the notebook, open this file in a browser: file:///home/efraim/.local/share/jupyter/runtime/nbserver-1-open.ht= ml Or copy and paste one of these URLs: http://localhost:8888/?token=3D52eaa1ab139b0ebbcc86e2f2939924eb7060= 33ae2f5e9775 or http://127.0.0.1:8888/?token=3D52eaa1ab139b0ebbcc86e2f2939924eb7060= 33ae2f5e9775 ^C[I 06:09:26.510 NotebookApp] interrupted Serving notebooks from local directory: /home/efraim/workspace/guix 0 active kernels Jupyter Notebook 6.3.0 is running at: http://localhost:8888/?token=3D52eaa1ab139b0ebbcc86e2f2939924eb706033ae2f5e= 9775 or http://127.0.0.1:8888/?token=3D52eaa1ab139b0ebbcc86e2f2939924eb706033ae= 2f5e9775 The traitlets error I was able to reproduce though: (ins)efraim@3900XT ~/workspace/guix$ guix environment --ad-hoc python pytho= n-traitlets -- python3 -c 'import traitlets' Traceback (most recent call last): File "", line 1, in File "/gnu/store/3zwlgb58b6wca49yk9hjpz90s12crgid-profile/lib/python3.8/s= ite-packages/traitlets/__init__.py", line 1, in from .traitlets import * File "/gnu/store/3zwlgb58b6wca49yk9hjpz90s12crgid-profile/lib/python3.8/s= ite-packages/traitlets/traitlets.py", line 57, in import six ModuleNotFoundError: No module named 'six' I fixed that by adding python-six as a propagated-input to python-traitlets. So in any case go ahead and run `guix pull` again and try again, it should be working now. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --etDoiht8C30QCrrR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmCFCMcACgkQQarn3Mo9 g1E25g/+LlHHWr3yNXE0Gsi5lSu1B/KUJaHJpJiMaSa/CpPdDF/fOjkFwyBm5tVE kJo1763i/BV2ygXV6AVW4RbajTj8VxlleCiMr0hjxLSvpSyFFHgoPEuqXO8EeUBu rKnlPhlnDnIwBBluv0U4KDJQWlac+JgNbVnQ2oYbaFcS5eL1AAdDdw9z2JLESdNW xIktjRY7yEE866Jm5/dGned4QRul9cCeKF2ENPtDWnax3dFvvkW+JzoISYGvQh/H 6J2khhfwm8gq5uRH0k2au5tqY8lQ99XTQQ+KngjYWsSXDVjs+jftnQIu7UixxIpn +av50IJ/kupSda8K2gDHqNYYD+pYxAZKZPgAPoPXoUMCt3hHfB4tooLqsXS9cgQN A8pKJHw2TK9evRJ/bDNGSW1os2zsSmkt9eKmbIeoaOr5EAf0ICBrtAuZ4p1DZvRd FYaC+yjFYQCDxX2KKGSRDPvLJ5NzUWeVm+PBkks+zvPIk3QqgMJOSbRGJ2J4hYlm 1LTBrli77uIzLHdmMAO7WMBHwmXz1XTHFJagN5sl4yFH0shva+12P6zz0UMUQa+/ BgU2HpQyQPpkQRU04GDM9fZFU4+y1GdJILzkTjo2N09xaLjY+T8drrmTzWaazxAQ maOh6Gqrn6oHIa2imKjzCJoAsUgIGZU9/a5p4k2pw+6yNDEURSY= =NsZk -----END PGP SIGNATURE----- --etDoiht8C30QCrrR--