all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / 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: Thu, 10 Feb 2022 14:51:56 +0100	[thread overview]
Message-ID: <87k0e2u8w3.fsf@ruhr-uni-bochum.de> (raw)
In-Reply-To: <CACy6W0BK4uejscUObUzNmOvjcN_F=ud-mArnto59LRUSJX0iQQ@mail.gmail.com> (Jacob MacDonald's message of "Fri, 4 Feb 2022 22:39:44 -0600")

Hi!

Jacob MacDonald writes:

> I use Guix on top of a Pop!_OS install. Guix's version of trash-cli
> recently updated, and the command stopped working for me. Python can't
> find the 'trashcli' module unless I install python-wrapper beside it.
> python-wrapper does not seem to be a propagated input of trash-cli.
> I'm not sure what the expected behavior around system/Guix Python and
> python-wrapper is. Is it normal to need to install Python in my
> profile to launch packages written in the language?

AFAIK this should work without python-wrapper.

> hg is the only other script in ~/.guix-profile/bin with a Python
> shebang, but it's straight to Guix's Python. The previous version of
> trash-cli also didn't behave like this.

Do you remember which version of trash-cli worked?  In Guix’ history I
find three versions 0.12.9.14, 0.17.1.1 and 0.17.1.14.

I can reproduce the problem.  Interestingly, the shebang points to
Python3 despite the fact that the packages requests python2:

--8<---------------cut here---------------start------------->8---
daniel@xii-04 ~$ guix shell --pure trash-cli coreutils
Folgende Ableitung wird erstellt:
   /gnu/store/7mmjs56vyc4hrgmd464bxllk9d2082sr-profile.drv

Zertifikatsbündel der Zertifikatsautoritäten wird erstellt …
Liste der Emacs-Unterverzeichnisse wird erzeugt …
Schriftartenverzeichnis wird erstellt …
Verzeichnis von Info-Handbüchern wird erstellt …
Profil mit 2 Paketen wird erstellt …
daniel@xii-04 ~ [env]$ head $GUIX_ENVIRONMENT/bin/trash
#!/gnu/store/j5pp84nxd2gmlckdbf8pdljk5xh1byzc-python-wrapper-3.9.9/bin/python
from __future__ import absolute_import
import sys
from trashcli.put import main as main
sys.exit(main())
--8<---------------cut here---------------end--------------->8---


I don’t know if this is the root cause of the problem, though.  Maybe
someone else who knows the python-build-system better could help.

Best

--
Daniel


  reply	other threads:[~2022-02-10 18:57 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 [this message]
2022-02-10 20:53   ` Simon Streit
2022-02-11  2:59   ` Jacob MacDonald
2022-02-13 14:00   ` Daniel Meißner
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

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

  git send-email \
    --in-reply-to=87k0e2u8w3.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.
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.