help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trash-cli commands fail after upgrade to 0.21.10.24


From: Daniel Meißner
Subject: Re: trash-cli commands fail after upgrade to 0.21.10.24
Date: Thu, 10 Feb 2022 14:51:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]