From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Gibbons Subject: bug#35625: Python3 Cannot Find Existing Shared Library within guix environment Date: Sun, 19 May 2019 18:46:16 -0600 Message-ID: <20190519184616.29816176@gmail.com> References: <20190507163211.53a415fe@gmail.com> <20190508093150.5f362771@gmail.com> <20190519165108.16a4e068@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/fRgcy0O5E2OVlOhaE4rnEdu" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSWSF-00066u-Ow for bug-guix@gnu.org; Sun, 19 May 2019 20:47:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSWSE-0006Tw-CX for bug-guix@gnu.org; Sun, 19 May 2019 20:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50460) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSWSE-0006Tn-8k for bug-guix@gnu.org; Sun, 19 May 2019 20:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hSWSE-0004BS-4A for bug-guix@gnu.org; Sun, 19 May 2019 20:47:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:57681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSWRa-00061u-59 for bug-Guix@gnu.org; Sun, 19 May 2019 20:46:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSWRY-00066q-RX for bug-Guix@gnu.org; Sun, 19 May 2019 20:46:22 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:46388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSWRY-000664-Ff for bug-Guix@gnu.org; Sun, 19 May 2019 20:46:20 -0400 Received: by mail-pl1-x62b.google.com with SMTP id r18so5858257pls.13 for ; Sun, 19 May 2019 17:46:20 -0700 (PDT) In-Reply-To: <20190519165108.16a4e068@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 --MP_/fRgcy0O5E2OVlOhaE4rnEdu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline The good news is this bug is no longer an impediment to installing the package because I took a(n arguably foolish) risk and disabled the tests in the package definition (see attachment: rednotebook.scm). The bad news is this bug persists when I run the installed package. When I install rednotebook and run it, I get an error like the following: Adding /gnu/store/cb2qs9gg7jlb83qc9k1aballzrfvia35-rednotebook-2.11.1/lib/python3.7/site-packages to sys.path 2019-05-19 18:00:57,995 INFO Writing log to file "/home/jesse/.rednotebook/rednotebook.log" 2019-05-19 18:00:57,995 INFO System encoding: utf-8 2019-05-19 18:00:57,995 INFO Language code: en_US 2019-05-19 18:00:58,054 WARNING For spell checking, please install enchant (python3-enchant). ** (.rednotebook-real:5662): WARNING **: 18:00:58.089: 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 ** (.rednotebook-real:5662): WARNING **: 18:00:58.089: 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/f34bv1iaghh7hsymqm57abi8p1lyavv6-python-pygobject-3.28.3/lib/python3.7/site-packages/gi/types.py:226: Warning: cannot derive 'rednotebook+gui+browser+Browser' from non-derivable parent type 'void' _gi.type_register(cls, namespace.get('__gtype_name__')) Traceback (most recent call last): File "/gnu/store/cb2qs9gg7jlb83qc9k1aballzrfvia35-rednotebook-2.11.1/bin/.rednotebook-real", line 6, in import journal ModuleNotFoundError: No module named 'journal' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/gnu/store/cb2qs9gg7jlb83qc9k1aballzrfvia35-rednotebook-2.11.1/bin/.rednotebook-real", line 11, in import rednotebook.journal File "/gnu/store/cb2qs9gg7jlb83qc9k1aballzrfvia35-rednotebook-2.11.1/lib/python3.7/site-packages/rednotebook/journal.py", line 168, in from rednotebook.gui.main_window import MainWindow File "/gnu/store/cb2qs9gg7jlb83qc9k1aballzrfvia35-rednotebook-2.11.1/lib/python3.7/site-packages/rednotebook/gui/main_window.py", line 45, in from rednotebook.gui import browser File "/gnu/store/cb2qs9gg7jlb83qc9k1aballzrfvia35-rednotebook-2.11.1/lib/python3.7/site-packages/rednotebook/gui/browser.py", line 41, in class Browser(WebKit2.WebView): File "/gnu/store/f34bv1iaghh7hsymqm57abi8p1lyavv6-python-pygobject-3.28.3/lib/python3.7/site-packages/gi/types.py", line 235, in __init__ super(GObjectMeta, cls).__init__(name, bases, dict_) File "/gnu/store/f34bv1iaghh7hsymqm57abi8p1lyavv6-python-pygobject-3.28.3/lib/python3.7/site-packages/gi/types.py", line 214, in __init__ cls._type_register(cls.__dict__) File "/gnu/store/f34bv1iaghh7hsymqm57abi8p1lyavv6-python-pygobject-3.28.3/lib/python3.7/site-packages/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) Looks like this bug infests more than a temporary guix environment. The program crashes unable to find some essential class definitions even when I add a directory containing the necessary shared libraries to $LD_LIBRARY_PATH and check that GI_TYPELIB_PATH has the necessary typelib files. --MP_/fRgcy0O5E2OVlOhaE4rnEdu Content-Type: text/x-scheme Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rednotebook.scm #! 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) (arguments `(#:tests? #f)) (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+)) ) --MP_/fRgcy0O5E2OVlOhaE4rnEdu--