From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#35625: Python3 Cannot Find Existing Shared Library within guix environment Date: Wed, 8 May 2019 14:38:02 +0200 Message-ID: References: <20190507163211.53a415fe@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000063bc2a05885f9b10" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOLqh-0004R5-MG for bug-guix@gnu.org; Wed, 08 May 2019 08:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOLqf-00052p-Td for bug-guix@gnu.org; Wed, 08 May 2019 08:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOLqf-00052i-Qu for bug-guix@gnu.org; Wed, 08 May 2019 08:39:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOLqf-0000uZ-N2 for bug-guix@gnu.org; Wed, 08 May 2019 08:39:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:53092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOLpx-000461-V9 for bug-Guix@gnu.org; Wed, 08 May 2019 08:38:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOLpw-0004br-2x for bug-Guix@gnu.org; Wed, 08 May 2019 08:38:17 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:36637) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOLpv-0004Yd-Mz for bug-Guix@gnu.org; Wed, 08 May 2019 08:38:16 -0400 Received: by mail-ed1-x534.google.com with SMTP id a8so21937623edx.3 for ; Wed, 08 May 2019 05:38:15 -0700 (PDT) In-Reply-To: <20190507163211.53a415fe@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Jesse Gibbons Cc: bug-Guix@gnu.org --00000000000063bc2a05885f9b10 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Jesse, Jesse Gibbons ezt =C3=ADrta (id=C5=91pont: 2019. m= =C3=A1j. 8., Sze, 0:33): > I brought this to the help mailing list, and now I see it as a > particular bug in guix. When I change into a guix environment and try > to run a Python project that uses the WebKitGTK2 library, it cannot > find the specified shared library, even though it is in $LIBRARY_PATH. > As a result, the project crashes. This does not happen when I call guix > build. On a side note, guix build fails due to another error (possibly > related). > > Thanks in advance for looking into this. > -Jesse > > > Package Definition: > #! > see https://github.com/jendrikseipp/rednotebook > !# > (define-module (custom packages rednotebook) > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (guix build-system python) > #:use-module (guix licenses)) > (define-public rednotebook > > (package > (name "rednotebook") > (version "2.11.1") > (source > (origin > (method url-fetch) > (uri (string-append > "https://github.com/jendrikseipp/rednotebook/archive/v" > version > ".tar.gz")) > (sha256 > (base32 > "15n1ziypfj3lzpvhha7r637zrb259l9yrcsvkic9cg5mndiaivs3")))) > (build-system python-build-system) > (inputs > `(("python" ,(@ (gnu packages python) python-3)))) > (propagated-inputs > `(("python-pygobject" > ,(@ (gnu packages glib) python-pygobject)) > ("gtk+" ,(@ (gnu packages gtk) gtk+)) > ("gtksourceview" > ,(@ (gnu packages gtk) gtksourceview-3)) > ("webkitgtk" > ,(@ (gnu packages webkit) webkitgtk-2.24)) > ("python-pyyaml" > ,(@ (gnu packages python-xyz) python-pyyaml)))) > (home-page "https://www.rednotebook.app") > (synopsis #f) > (description > "RedNotebook is a modern desktop journal. It lets you format, tag and > search your entries. You can also add pictures, links and customizable > templates, spell check your notes, and export to plain text, HTML, Latex = or > PDF.") > (license gpl2+)) > ) > > > Program log (streams merged): > Adding /home/jesse/Documents/rednotebook/rednotebook-2.11.1 to sys.path > 2019-05-07 16:15:41,122 INFO Writing log to file > "/home/jesse/.rednotebook/rednotebook.log" > 2019-05-07 16:15:41,122 INFO System encoding: utf-8 > 2019-05-07 16:15:41,122 INFO Language code: None > rednotebook/journal.py:161: PyGIDeprecationWarning: Since version 3.11, > calling threads_init is no longer needed. See: > https://wiki.gnome.org/PyGObject/Threading > GObject.threads_init() > 2019-05-07 16:15:41,182 WARNING For spell checking, please install > enchant (python3-enchant). > > ** (journal.py:2179): WARNING **: 16:15:41.209: Failed to load shared > library 'libwebkit2gtk-4.0.so.37' referenced by the typelib: > libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or > directory > > ** (journal.py:2179): WARNING **: 16:15:41.209: Failed to load shared > library 'libjavascriptcoregtk-4.0.so.18' referenced by the typelib: > libjavascriptcoregtk-4.0.so.18: cannot open shared object file: No such > file or directory > /gnu/store/kz1d84nv5rlqdf415i16wz8zvf492l1c-profile/lib/python3.7/site-pa= ckages/gi/types.py:226: > Warning: cannot derive 'rednotebook+gui+browser+Browser' from non-derivab= le > parent type 'void' > _gi.type_register(cls, namespace.get('__gtype_name__')) > Traceback (most recent call last): > File "rednotebook/journal.py", line 168, in > from rednotebook.gui.main_window import MainWindow > File > "/home/jesse/Documents/rednotebook/rednotebook-2.11.1/rednotebook/gui/mai= n_window.py", > line 45, in > from rednotebook.gui import browser > File > "/home/jesse/Documents/rednotebook/rednotebook-2.11.1/rednotebook/gui/bro= wser.py", > line 41, in > class Browser(WebKit2.WebView): > File > "/gnu/store/kz1d84nv5rlqdf415i16wz8zvf492l1c-profile/lib/python3.7/site-p= ackages/gi/types.py", > line 235, in __init__ > super(GObjectMeta, cls).__init__(name, bases, dict_) > File > "/gnu/store/kz1d84nv5rlqdf415i16wz8zvf492l1c-profile/lib/python3.7/site-p= ackages/gi/types.py", > line 214, in __init__ > cls._type_register(cls.__dict__) > File > "/gnu/store/kz1d84nv5rlqdf415i16wz8zvf492l1c-profile/lib/python3.7/site-p= ackages/gi/types.py", > line 226, in _type_register > _gi.type_register(cls, namespace.get('__gtype_name__')) > RuntimeError: could not create new GType: rednotebook+gui+browser+Browser > (subclass of void) > > So it seems that the guix environment misses some environment variables. Can you check if this is still the case, when you keep the build output using guix build --keep-failed --check, and then guix environment , and source the environment variables dropped at the kept build directory? If that helps, then can you send the two environments? --00000000000063bc2a05885f9b10 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Jesse,

Jesse Gibbons <jgibbons2357@gmail.com> ezt =C3= =ADrta (id=C5=91pont: 2019. m=C3=A1j. 8., Sze, 0:33):
I brought this to the help mailing li= st, and now I see it as a
particular bug in guix. When I change into a guix environment and try
to run a Python project that uses the WebKitGTK2 library, it cannot
find the specified shared library, even though it is in $LIBRARY_PATH.
As a result, the project crashes. This does not happen when I call guix
build. On a side note, guix build fails due to another error (possibly
related).

Thanks in advance for looking into this.
-Jesse


Package Definition:
#!
see https://github.com/jendrikseipp/rednotebook
!#
(define-module (custom packages rednotebook)
=C2=A0 #:use-module (guix packages)
=C2=A0 #:use-module (guix download)
=C2=A0 #:use-module (guix build-system python)
=C2=A0 #:use-module (guix licenses))
(define-public rednotebook

=C2=A0 (package
=C2=A0 =C2=A0(name "rednotebook")
=C2=A0 =C2=A0(version "2.11.1")
=C2=A0 =C2=A0(source
=C2=A0 =C2=A0 (origin
=C2=A0 =C2=A0 =C2=A0(method url-fetch)
=C2=A0 =C2=A0 =C2=A0(uri (string-append
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"= https://github.com/jendrikseipp/rednotebook/archive/v"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0version
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0".tar.gz"))
=C2=A0 =C2=A0 =C2=A0(sha256
=C2=A0 =C2=A0 =C2=A0 (base32
=C2=A0 =C2=A0 =C2=A0 =C2=A0"15n1ziypfj3lzpvhha7r637zrb259l9yrcsvkic9cg= 5mndiaivs3"))))
=C2=A0 =C2=A0(build-system python-build-system)
=C2=A0 =C2=A0(inputs
=C2=A0 =C2=A0 `(("python" ,(@ (gnu packages python) python-3))))<= br> =C2=A0 =C2=A0(propagated-inputs
=C2=A0 =C2=A0 `(("python-pygobject"
=C2=A0 =C2=A0 =C2=A0 =C2=A0,(@ (gnu packages glib) python-pygobject))
=C2=A0 =C2=A0 =C2=A0 ("gtk+" ,(@ (gnu packages gtk) gtk+))
=C2=A0 =C2=A0 =C2=A0 ("gtksourceview"
=C2=A0 =C2=A0 =C2=A0 =C2=A0,(@ (gnu packages gtk) gtksourceview-3))
=C2=A0 =C2=A0 =C2=A0 ("webkitgtk"
=C2=A0 =C2=A0 =C2=A0 =C2=A0,(@ (gnu packages webkit) webkitgtk-2.24))
=C2=A0 =C2=A0 =C2=A0 ("python-pyyaml"
=C2=A0 =C2=A0 =C2=A0 =C2=A0,(@ (gnu packages python-xyz) python-pyyaml))))<= br> =C2=A0 =C2=A0(home-page "https://www.rednotebook.app") =C2=A0 =C2=A0(synopsis #f)
=C2=A0 =C2=A0(description
=C2=A0 =C2=A0 "RedNotebook is a modern desktop journal. It lets you fo= rmat, tag and search your entries. You can also add pictures, links and cus= tomizable templates, spell check your notes, and export to plain text, HTML= , Latex or PDF.")
=C2=A0 =C2=A0(license gpl2+))
=C2=A0 )


Program log (streams merged):
Adding /home/jesse/Documents/rednotebook/rednotebook-2.11.1 to sys.path
2019-05-07 16:15:41,122 INFO=C2=A0 =C2=A0 =C2=A0Writing log to file "/= home/jesse/.rednotebook/rednotebook.log"
2019-05-07 16:15:41,122 INFO=C2=A0 =C2=A0 =C2=A0System encoding: utf-8
2019-05-07 16:15:41,122 INFO=C2=A0 =C2=A0 =C2=A0Language code: None
rednotebook/journal.py:161: PyGIDeprecationWarning: Since version 3.11, cal= ling threads_init is no longer needed. See: https://wiki.g= nome.org/PyGObject/Threading
=C2=A0 GObject.threads_init()
2019-05-07 16:15:41,182 WARNING=C2=A0 For spell checking, please install en= chant (python3-enchant).

** (journal.py:2179): WARNING **: 16:15:41.209: Failed to load shared libra= ry 'libwebkit2gtk-4.0.so.37' referenced by the typelib: libwebkit2g= tk-4.0.so.37: cannot open shared object file: No such file or directory

** (journal.py:2179): WARNING **: 16:15:41.209: Failed to load shared libra= ry 'li= bjavascriptcoregtk-4.0.so.18' referenced by the typelib: libjavascriptcoregtk= -4.0.so.18: cannot open shared object file: No such file or directory /gnu/store/kz1d84nv5rlqdf415i16wz8zvf492l1c-profile/lib/python3.7/site-pack= ages/gi/types.py:226: Warning: cannot derive 'rednotebook+gui+browser+B= rowser' from non-derivable parent type 'void'
=C2=A0 _gi.type_register(cls, namespace.get('__gtype_name__'))
Traceback (most recent call last):
=C2=A0 File "rednotebook/journal.py", line 168, in <module>=
=C2=A0 =C2=A0 from rednotebook.gui.main_window import MainWindow
=C2=A0 File "/home/jesse/Documents/rednotebook/rednotebook-2.11.1/redn= otebook/gui/main_window.py", line 45, in <module>
=C2=A0 =C2=A0 from rednotebook.gui import browser
=C2=A0 File "/home/jesse/Documents/rednotebook/rednotebook-2.11.1/redn= otebook/gui/browser.py", line 41, in <module>
=C2=A0 =C2=A0 class Browser(WebKit2.WebView):
=C2=A0 File "/gnu/store/kz1d84nv5rlqdf415i16wz8zvf492l1c-profile/lib/p= ython3.7/site-packages/gi/types.py", line 235, in __init__
=C2=A0 =C2=A0 super(GObjectMeta, cls).__init__(name, bases, dict_)
=C2=A0 File "/gnu/store/kz1d84nv5rlqdf415i16wz8zvf492l1c-profile/lib/p= ython3.7/site-packages/gi/types.py", line 214, in __init__
=C2=A0 =C2=A0 cls._type_register(cls.__dict__)
=C2=A0 File "/gnu/store/kz1d84nv5rlqdf415i16wz8zvf492l1c-profile/lib/p= ython3.7/site-packages/gi/types.py", line 226, in _type_register
=C2=A0 =C2=A0 _gi.type_register(cls, namespace.get('__gtype_name__'= ))
RuntimeError: could not create new GType: rednotebook+gui+browser+Browser (= subclass of void)

So it seems that the guix environment=C2=A0 misses so= me environment variables. Can you check if this is still the case, when you= keep the build output using guix build --keep-failed --check, and then gui= x environment <package>, and source the environment variables dropped= at the kept build directory?

If that helps, then = can you send the two environments?

--00000000000063bc2a05885f9b10--