From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UDeZGwOdSGDiAgAA0tVLHw (envelope-from ) for ; Wed, 10 Mar 2021 10:18:43 +0000 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 QD9BFwOdSGBAbAAAbx9fmQ (envelope-from ) for ; Wed, 10 Mar 2021 10:18:43 +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 BBCF7186BA for ; Wed, 10 Mar 2021 11:18:42 +0100 (CET) Received: from localhost ([::1]:57714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJvvN-0006G5-VN for larch@yhetil.org; Wed, 10 Mar 2021 05:18:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJvfR-0003Ro-A1 for help-guix@gnu.org; Wed, 10 Mar 2021 05:02:13 -0500 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:42510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJvfM-0001PH-T4 for help-guix@gnu.org; Wed, 10 Mar 2021 05:02:12 -0500 Received: by mail-ej1-x635.google.com with SMTP id c10so37405066ejx.9 for ; Wed, 10 Mar 2021 02:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version:content-transfer-encoding; bh=RMxz1jw9EPyOsqXWXQj3RHz8NCgQH6TuyDG9ErTJkWQ=; b=wUu/ZWQmd/TfvpV27jjhbdoXznE3mbtZJqhccDOMOxfG3JNAm8htBn94RWSb4TcxX+ k/1RxtG6epVNwKE81xxpxxaTg/akSPckbhU45f/YvZFOYbEu2C3lAGHnwhbJ/JoCRZwK yMijTEF3D5iX9Z6txYumAj+Bb+Z0vy9UOCgT94loV+Do2vT7xtydSpket1feJ4haSuBg QdmF8ed4q2fHKWSLed5jwLw0OmRmuo4VuH9gjrZ+WCimdDDx01cnX9XC19B+aXWlWOIN EdsUXMF/Yk/a7Pv+7jjHYyg1I8BHPboPG3rdRGji4hPaXt2lVmkP5lBtQ2ZCrty9dNcR iERg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=RMxz1jw9EPyOsqXWXQj3RHz8NCgQH6TuyDG9ErTJkWQ=; b=Ob0fkXg6JCAP7k/6UTyBU3cjFC0bbJdeYTs1d42ztJRNiBEJ+D+esiMhRoIMUL1W5S kEyzcfJghBJtPneLSa2OsIwaA8zXbfLAJ3JpfSVtoKaEFIgLUWaFDuXs35ocyAo7NU+c 0Rb7cObjC4N0Mggm6duxENnXqoRPDNW7l1PA/ex4COCyE7X3mHPVQCg2xW4+MMANEuNY kIzBr0gDeajIDhiHQe1I+RRBEjpigfVSZw9TT9rkcuNL0/nysMkyxdtOaNXMF3R++eXU WI6s7/SoFWk2lyDnt7fR6hRN+jmOk3w2vEn5nq+gdHbUubO0+uHd2czxJLKH4BhDlRJN sWog== X-Gm-Message-State: AOAM533ZTvrStbvEZ4sUXogevXFTWscL4wmncR6VKTHFfSzdTxFfFljM Vf/JgoA4RdOrbYrF93bEM6Jgf4hbrvTLapZkBv4= X-Google-Smtp-Source: ABdhPJyWTSEfFbP6gjteRbqN7UnDlk1IyUwyQCOmA2WExNodziGL4ZmGV3WmqgbWHfnkAJzN+WmKKQ== X-Received: by 2002:a17:906:39cf:: with SMTP id i15mr2814304eje.534.1615370525170; Wed, 10 Mar 2021 02:02:05 -0800 (PST) Received: from phil-XPS-13-9360 (host-78-147-225-8.as13285.net. [78.147.225.8]) by smtp.gmail.com with ESMTPSA id bv9sm9672719ejb.21.2021.03.10.02.02.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Mar 2021 02:02:04 -0800 (PST) References: <87pn0731c1.fsf@eauchat.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Phil To: help-guix@gnu.org Subject: Re: Python, poetry, and pandas In-reply-to: <87pn0731c1.fsf@eauchat.org> Date: Wed, 10 Mar 2021 10:02:03 +0000 Message-ID: <85a6rbmin8.fsf@beadling.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a00:1450:4864:20::635; envelope-from=phil@beadling.co.uk; helo=mail-ej1-x635.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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=1615371522; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RMxz1jw9EPyOsqXWXQj3RHz8NCgQH6TuyDG9ErTJkWQ=; b=cyn5cnCdGMr/didRq8o+oD8MJhPvEU8Ls6FR1gxMh8Y67cuNhX/UpzO6+mz5ith0XB5O1v gV+roZJD+lMBQ0kaZFrU/XKzZwFF1zGvMzsfLgjq+Es3MOvT8xl4eL6M64BqLI0yGz3ndZ kthF0zvFBC4sJ309rmtVn12h1y8LHl6BEwIGmwoywhM61vbGvLxli7g6CjUlBDF1Fr+0EQ mzDeoYrmqOuYm4HYwhL6h+ktoFuFndb5OaqjRhjEBDaj+3WSn6pDT/ioeM1jLBYVf4ao8P 9dv0YvxscCdwrvpfgUCYfloj2J/XBDvmKVmyyjmJ4MnuKBuY1gY19JRJHveOhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615371522; a=rsa-sha256; cv=none; b=IinZcW54lpG+8NPQtmqQBZUW7DbaIRENQyb4gWiFrRFeHWHONIoF36vduGeAnItv5uCC+5 v7UeSTaqNzax7VY3zE7HWwkzSODiTyG1TMuArkv9hRnAFA/a8V0SxGmihhkL075HvVRbXU dT68F90/hVQuTJNNgEXRe/Ckc5NdAFVSU0uD1ofTx4+mp4tellb8+FDne+AyG4PuID1VHC xLx7MUd6hQPMZ0zcMDlgaUR9VYFxhOEHKsmEtfep87wU+G4CwB2Bzi2TIlXkFikpPuQUFA e0od2McSDdaNMva9Nr9rYk1WHD1GTE5l68MjlGayuhpm5qW+R0t2NqwOuGmnQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b="wUu/ZWQm"; 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: -2.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b="wUu/ZWQm"; 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: BBCF7186BA X-Spam-Score: -2.59 X-Migadu-Scanner: scn1.migadu.com X-TUID: RawkvapDrtpM Hi S=C3=A9bastien, S=C3=A9bastien Lerique writes: > Dear all, > > (I am aware that python-pandas is packaged for guix, but some packages > I will need down the road might not be; this project is also in > collaboration with non guix users, so I am looking for a workflow > which will work for them too.) > Under the covers Poetry is just using regular Python virtualenvs I think. These don't work well with Guix for a number of reasons - but in my previous attempts to use them I found that Guix's use of PYTHONPATH meant that virtualenvs where never isolated from packages installed by Guix. Guix offers pretty much everything that virtualenvs offers, but it does things a little differently - you'll need to look at environments, profiles, manifests, and use of a guix.scm to recreate (IMHO) a better experience in the end. When I started using Guix I went to some lengths to harmonize virtualenvs and Guix - and others have made more substantial efforts than I did - but you end up creating as many problems as you fix: https://lists.gnu.org/archive/html/help-guix/2020-11/msg00237.html If you search the mail archive a couple of other people have asked similar questions to do with poetry, pyenv, pip, etc - they're all interesting reading and easy to grep with those keywords: https://lists.gnu.org/archive/html/help-guix/ The advice I was given at the time was don't mix package managers, and in hindsight I'm glad repackaged what I needed under Guix. I've packaged quite a few python libraries now, and most are pretty trivial to do - if they are in PyPi you can just use this: guix import pypi If you need a later version than Guix provides (eg pandas), my advice is to use the ability to "inherit" the current definition in Guix and tweak the version. For Pandas I did this for a more recent version I needed and all I had to do was disable 2 unit tests (which failed for a non-Guix reason). Apologies - not exactly the answer you want (I have a stab at that below), but it's worth considering moving to Guix packaging exclusively to keep your life simple. > File > "/home/sl/.cache/pypoetry/virtualenvs/poetry-test-vOWX4_Vr-py3.8/lib/pyth= on3.8/site-packages/pandas/core/window/ewm.py", > line 9, in > import pandas._libs.window.aggregations as window_aggregations > ImportError: libstdc++.so.6: cannot open shared object file: No such > file or directory If it's only missing a reference to the underlying C++ library you could install this library using Guix, or if you're using a foreign distro point = to the non-Guix version under /usr/lib which, at a guess, Poetry may have picked up - but this is going to cause you more trouble down the line than repackaging in Guix in my experience.