From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0eUOMpR3SGByNwAA0tVLHw (envelope-from ) for ; Wed, 10 Mar 2021 07:39:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sP+GLZR3SGBqHwAA1q6Kng (envelope-from ) for ; Wed, 10 Mar 2021 07:39:00 +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 12DBE14EC2 for ; Wed, 10 Mar 2021 08:39:00 +0100 (CET) Received: from localhost ([::1]:54662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJtQo-0007r2-1f for larch@yhetil.org; Wed, 10 Mar 2021 02:38:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJtQg-0007qw-No for help-guix@gnu.org; Wed, 10 Mar 2021 02:38:50 -0500 Received: from elegua.eauchat.org ([91.224.149.118]:56644 helo=eauchat.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJtQe-0006e4-P8 for help-guix@gnu.org; Wed, 10 Mar 2021 02:38:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1615361923; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=Kx7C+/ExELgLNQsj+vXvWik2btpyjS59pruCaCZ5UDs=; b=0xSpz8fMnJdnjYKJFCFl4wlEkoNp0w2HD69DcO4bJTjz1PZrLcEYpzvYvSMh9xzegMZvGx 8qOXYiqV+C8OBoYr2W5x3463txP8aPSnxZoIB4m/wlA5G5bluGM1ME3KyEUsv75ydHEEcC mA2sVpC25c6xBr11c9nCaz0ZM8Rj8iw= From: =?utf-8?Q?S=C3=A9bastien?= Lerique To: help-guix@gnu.org Subject: Python, poetry, and pandas Date: Wed, 10 Mar 2021 16:38:38 +0900 Message-ID: <87pn0731c1.fsf@eauchat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.224.149.118; envelope-from=sl@eauchat.org; helo=eauchat.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-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: , 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=1615361940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Kx7C+/ExELgLNQsj+vXvWik2btpyjS59pruCaCZ5UDs=; b=eH4NpF+p1b7/BFGGaP6OA92PuDH9Vp852CcfGP6iC69KS5K2k9K3NX+5Dl9H3SSxeJQxHC r0+bjil+G2SVK+D5kC2Lk6e3MY2SfbeSZbtAs8SnwTNzfnlt+iuegAzyagX2QG1CZAItzO oDGWNXag6y0HvIoltStjf/fxrELIarbjtOIyU1NbaULdv4iId6uuE4e9g5SwelzlbDhB2X nBJzMwKa/kKPy862ptYy9zpuOPSGQsi/s++f/3W2enP7VWicS1tjeLf1O/EKlJVdCTkVMV ELUCMyXYt+c7h7WChoDldyW56D9Tq3UZTLqYMijx/1EidR2JBmFALl0IzZovOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615361940; a=rsa-sha256; cv=none; b=Fl+CITOFih/gCCHMjb5RkDk1EMeBjD2mTfgRit9WGeRQObMicSBK9rjVpnd18r5M1KLuIP izluXzCc2gbSw++/UMMcawAU3HBN5q4pAk4zFvJFpS0qqhmawHUV9COERiA4zgVRYbVLcG IwyLpeSAJZ0cE7hEWunm2FL2AYHoUERrPC17qg7R7LtCoiZda8LeRGOaPhm3NVtT5jY5Zd 3bdL0MYf5IzMF332GMX11xu7y+gLTSx3rCdxjRsTO8QC6B1Pjn16BIcMahQPWVV3BX8X86 bwpvza+XBOjV1sJRdqe3GzUj8NURwzXBPKq9UqVFi2RJmq1/ObqJnrqmg67i/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=0xSpz8fM; 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: -1.28 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=0xSpz8fM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=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: 12DBE14EC2 X-Spam-Score: -1.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: aSk6gAKoNahT Dear all, In the course of trying out poetry for data science projects on=20 guix, I am running into the problem of some poetry-installed=20 packages not finding their desired libraries. (See example below=20 with pandas.) I suppose this is because poetry will download=20 pre-built binary wheels which have pre-coded library paths. If this is the problem, would there be any clean way to wrap those=20 binary wheels, or patch poetry-on-guix to mandatorily rebuild=20 binaries? (Would that make sense?) (I am aware that python-pandas is packaged for guix, but some=20 packages I will need down the road might not be; this project is=20 also in collaboration with non guix users, so I am looking for a=20 workflow which will work for them too.) (I am also aware of guix-jupyter, but that is another topic I'd=20 like to return to later as it needs some more bugsquashing for=20 usability.) Happy hacking! S=C3=A9bastien #+BEGIN_SRC $ poetry new poetry-test Created package poetry_test in poetry-test $ cd poetry-test/ $ poetry add pandas Creating virtualenv poetry-test-vOWX4_Vr-py3.8 in=20 /home/sl/.cache/pypoetry/virtualenvs Using version ^1.2.3 for pandas Updating dependencies Resolving dependencies... (0.2s) Writing lock file Package operations: 4 installs, 9 updates, 0 removals =E2=80=A2 Updating pyparsing (2.4.6=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 2.4.7) =E2=80=A2 Updating six (1.14.0=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 1.15.0) =E2=80=A2 Updating attrs (19.3.0=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 20.3.0) =E2=80=A2 Updating more-itertools (8.2.0=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 8.7.0) =E2=80=A2 Updating numpy (1.17.3=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 1.20.1) =E2=80=A2 Updating packaging (20.0=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 20.9) =E2=80=A2 Installing pluggy (0.13.1) =E2=80=A2 Installing py (1.10.0) =E2=80=A2 Updating python-dateutil (2.8.1=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 2.8.1) =E2=80=A2 Updating pytz (2020.4=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 2021.1) =E2=80=A2 Updating wcwidth (0.1.8=20 /home/sl/.guix-profile/lib/python3.8/site-packages -> 0.2.5) =E2=80=A2 Installing pandas (1.2.3) =E2=80=A2 Installing pytest (5.4.3) $ poetry run which python /home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/bin/python $ poetry run python Python 3.8.2 (default, Jan 1 1970, 00:00:01) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more=20 information. >>> import pandas Traceback (most recent call last): File "", line 1, in File=20 "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/__init__.py",=20 line 51, in from pandas.core.api import ( File=20 "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/core/api.py",=20 line 31, in from pandas.core.groupby import Grouper, NamedAgg File=20 "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/core/groupby/__init__.py",=20 line 1, in from pandas.core.groupby.generic import DataFrameGroupBy,=20 NamedAgg, SeriesGroupBy File=20 "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/core/groupby/generic.py",=20 line 65, in from pandas.core.frame import DataFrame File=20 "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/core/frame.py",=20 line 119, in from pandas.core import algorithms, common as com, generic,=20 nanops, ops File=20 "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/core/generic.py",=20 line 111, in from pandas.core.window import Expanding,=20 ExponentialMovingWindow, Rolling, Window File=20 "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/core/window/__init__.py",=20 line 1, in from pandas.core.window.ewm import ( # noqa:F401 File=20 "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/core/window/ewm.py",=20 line 9, in import pandas._libs.window.aggregations as window_aggregations ImportError: libstdc++.so.6: cannot open shared object file: No=20 such file or directory >>> #+END_SRC