unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Daniel Meißner" <daniel.meissner-i4k@ruhr-uni-bochum.de>
To: Jacob MacDonald <jaccarmac@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: trash-cli commands fail after upgrade to 0.21.10.24
Date: Sun, 13 Feb 2022 15:00:29 +0100	[thread overview]
Message-ID: <87fsomx3wi.fsf@ruhr-uni-bochum.de> (raw)
In-Reply-To: <87k0e2u8w3.fsf@ruhr-uni-bochum.de> ("Daniel Meißner"'s message of "Thu, 10 Feb 2022 14:51:56 +0100")

Hi,

after setting GUIX_PYTHONPATH I was able to get the cli working (see
below).  This means the package needs a fix.  We could either patch the
scripts to include something like:

--8<---------------cut here---------------start------------->8---
import sys
sys.path.insert(0, "@pythondir@")
--8<---------------cut here---------------end--------------->8---

or maybe we could use the wrap-program procedure to wrap it with
GUIX_PYTHONPATH set correctly.  Is either method preferred?


Here's how it worked for me:

--8<---------------cut here---------------start------------->8---
daniel@think ~$ guix shell trash-cli
substitute: Liste der Substitute von „https://ci.guix.gnu.org“ wird aktualisiert … 100.0%
0,4 MB will be downloaded
 python-psutil-5.8.0  304KiB                                                                             1.8MiB/s 00:00 [##################] 100.0%
 trash-cli-0.21.10.24  49KiB                                                                             1.0MiB/s 00:00 [##################] 100.0%
The following derivation will be built:
   /gnu/store/fc26wwgy2zbq7k6271w8ksvaf3x10r0h-profile.drv

applying 1 graft for /gnu/store/rrchh68lpzrg70mf3awgr4y0ks788bgj-python-psutil-5.8.0.drv ...
applying 1 graft for /gnu/store/3pr2lwjan1i88aqs70bvv3m81z9xvfs3-trash-cli-0.21.10.24.drv ...
building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
building directory of Info manuals...
building profile with 1 package...
daniel@think ~ [env]$ trash
Traceback (most recent call last):
  File "/gnu/store/kbsw86qqip1p9yzrnm36d71xhk278m1l-profile/bin/trash", line 4, in <module>
    from trashcli.put import main as main
ModuleNotFoundError: No module named 'trashcli'
daniel@think ~ [env]$ GUIX_PYTHONPATH=$GUIX_ENVIRONMENT/lib/python3.9/site-packages trash
Usage: trash [OPTION]... FILE...

trash: error: Please specify the files to trash.
daniel@think ~ [env]$
--8<---------------cut here---------------end--------------->8---

Best,

-- 
Daniel


  parent reply	other threads:[~2022-02-13 14:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-05  4:39 trash-cli commands fail after upgrade to 0.21.10.24 Jacob MacDonald
2022-02-10 13:51 ` Daniel Meißner
2022-02-10 20:53   ` Simon Streit
2022-02-11  2:59   ` Jacob MacDonald
2022-02-13 14:00   ` Daniel Meißner [this message]
2022-02-14  1:42     ` Jacob MacDonald
2022-02-16 16:11     ` Daniel Meißner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsomx3wi.fsf@ruhr-uni-bochum.de \
    --to=daniel.meissner-i4k@ruhr-uni-bochum.de \
    --cc=help-guix@gnu.org \
    --cc=jaccarmac@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).