[Top][All Lists]

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

Re: trash-cli commands fail after upgrade to

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


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, and

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:

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
from __future__ import absolute_import
import sys
from trashcli.put import main as 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.



reply via email to

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