GNU bug report logs -
#55042
python-scipy breaks login on foreign distro
Previous Next
Reported by: zimoun <zimon.toutoune <at> gmail.com>
Date: Wed, 20 Apr 2022 15:09:02 UTC
Severity: normal
Tags: moreinfo
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55042 in the body.
You can then email your comments to 55042 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#55042
; Package
guix
.
(Wed, 20 Apr 2022 15:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
zimoun <zimon.toutoune <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 20 Apr 2022 15:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
Running Guix on the top of Ubuntu, GDM refuses to log in if the package
“python-scipy” is installed and its profile sourced.
Basically, consider
mkdir -p ~/.config/guix/profiles
guix package -i python-scipy -p ~/.config/guix/profiles/python
Then also consider that the file ~/.bash_profile contains:
--8<---------------cut here---------------start------------->8---
GUIX_PROFILE=~/.config/guix/profiles/python
. $GUIX_PROFILE/etc/profile
--8<---------------cut here---------------end--------------->8---
which basically export:
--8<---------------cut here---------------start------------->8---
export PATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/bin${PATH:+:}$PATH"
export XDG_DATA_DIRS="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
export GI_TYPELIB_PATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/lib/girepository-1.0${GI_TYPELIB_PATH:+:}$GI_TYPELIB_PATH"
export GUIX_PYTHONPATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/lib/python3.9/site-packages${GUIX_PYTHONPATH:+:}$GUIX_PYTHONPATH"
--8<---------------cut here---------------end--------------->8---
Well, I do not know where does the issue come from. From my
understanding, the issue is potentially because GI_TYPELIB_PATH.
Compare:
--8<---------------cut here---------------start------------->8---
$ ls /usr/lib/girepository-1.0/
AccountsService-1.0.typelib PackageKitGlib-1.0.typelib UnityExtras-7.0.typelib
AppIndicator3-0.1.typelib Unity-7.0.typelib
$ ls ~/.config/guix/profiles/python/lib/girepository-1.0
cairo-1.0.typelib GIRepository-2.0.typelib Vulkan-1.0.typelib
DBus-1.0.typelib GL-1.0.typelib win32-1.0.typelib
DBusGLib-1.0.typelib GLib-2.0.typelib xfixes-4.0.typelib
fontconfig-2.0.typelib GModule-2.0.typelib xft-2.0.typelib
freetype2-2.0.typelib GObject-2.0.typelib xlib-2.0.typelib
Gio-2.0.typelib libxml2-2.0.typelib xrandr-1.3.typelib
--8<---------------cut here---------------end--------------->8---
And note that ’python-scipy’ propagates X11, for some reasons.
--8<---------------cut here---------------start------------->8---
$ ls -1 ~/.config/guix/profiles/python/lib/ | grep X11
libX11.la
libX11.so
libX11.so.6
libX11.so.6.4.0
libX11-xcb.la
libX11-xcb.so
libX11-xcb.so.1
libX11-xcb.so.1.0.0
--8<---------------cut here---------------end--------------->8---
Cheers,
simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#55042
; Package
guix
.
(Thu, 21 Apr 2022 15:41:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 55042 <at> debbugs.gnu.org (full text, mbox):
Hi Simon,
zimoun <zimon.toutoune <at> gmail.com> writes:
> Hi,
>
> Running Guix on the top of Ubuntu, GDM refuses to log in if the package
> “python-scipy” is installed and its profile sourced.
>
> Basically, consider
>
> mkdir -p ~/.config/guix/profiles
> guix package -i python-scipy -p ~/.config/guix/profiles/python
>
> Then also consider that the file ~/.bash_profile contains:
>
> GUIX_PROFILE=~/.config/guix/profiles/python
> . $GUIX_PROFILE/etc/profile
>
>
> which basically export:
>
> export PATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/bin${PATH:+:}$PATH"
> export XDG_DATA_DIRS="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
> export GI_TYPELIB_PATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/lib/girepository-1.0${GI_TYPELIB_PATH:+:}$GI_TYPELIB_PATH"
> export GUIX_PYTHONPATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/lib/python3.9/site-packages${GUIX_PYTHONPATH:+:}$GUIX_PYTHONPATH"
It's probably XDG_DATA_DIRS; could you try unsetting it? See the old
bug #26202, which looks like a duplicate to me.
Thanks,
Maxim
Information forwarded
to
bug-guix <at> gnu.org
:
bug#55042
; Package
guix
.
(Thu, 21 Apr 2022 16:11:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 55042 <at> debbugs.gnu.org (full text, mbox):
Hi Maxim,
On Thu, 21 Apr 2022 at 17:40, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
> It's probably XDG_DATA_DIRS; could you try unsetting it? See the old
> bug #26202, which looks like a duplicate to me.
Indeed, it seems a duplicate. Note that I cannot reproduce on Debian,
as I wrote [1].
By unset the variable, you mean just not source any Guix profile at
login time, right?
1: <https://issues.guix.gnu.org/issue/26202#4>
Cheers.
simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#55042
; Package
guix
.
(Fri, 22 Apr 2022 04:26:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 55042 <at> debbugs.gnu.org (full text, mbox):
Hi Simon,
zimoun <zimon.toutoune <at> gmail.com> writes:
> Hi Maxim,
>
> On Thu, 21 Apr 2022 at 17:40, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
>
>> It's probably XDG_DATA_DIRS; could you try unsetting it? See the old
>> bug #26202, which looks like a duplicate to me.
>
> Indeed, it seems a duplicate. Note that I cannot reproduce on Debian,
> as I wrote [1].
>
> By unset the variable, you mean just not source any Guix profile at
> login time, right?
I forget how it works, but I think the greeter would typically read
/etc/profile or /etc/profile.d/guix.sh which sets your profile variables
such as XDG_DATA_DIRS. You could hack it temporarily to unset
XDG_DATA_DIRS after it's done sourcing these.
Easier said than accomplished, depending on the greeter.
Cheers!
Maxim
Added tag(s) moreinfo.
Request was from
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 08 Jun 2022 20:39:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Thu, 29 Sep 2022 02:53:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
zimoun <zimon.toutoune <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 29 Sep 2022 02:53:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 55042-done <at> debbugs.gnu.org (full text, mbox):
Hi,
zimoun <zimon.toutoune <at> gmail.com> writes:
> Hi Maxim,
>
> On Thu, 21 Apr 2022 at 17:40, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
>
>> It's probably XDG_DATA_DIRS; could you try unsetting it? See the old
>> bug #26202, which looks like a duplicate to me.
>
> Indeed, it seems a duplicate. Note that I cannot reproduce on Debian,
> as I wrote [1].
I've tested multiple times now that the XDG_DATA_DIRS issue causing this
kind of problem has been resolved with
23aafc800c9e678662766440916449ec5bbce830.
Closing.
--
Thanks,
Maxim
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 27 Oct 2022 11:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 180 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.