* bug#32170: python-cairocffi error "dlopen() failed to load a library: cairo / cairo-2"
@ 2018-07-16 7:35 Ben Sturmfels
2018-07-16 21:54 ` Danny Milosavljevic
0 siblings, 1 reply; 3+ messages in thread
From: Ben Sturmfels @ 2018-07-16 7:35 UTC (permalink / raw)
To: 32170
[-- Attachment #1: Type: text/plain, Size: 988 bytes --]
Hi Folks,
I'm having problems running Python code that depends on the
"python-cairocffi" package. Running "from cairocffi._ffi import ffi" on
Trisquel 8 works fine, but on GuixSD I get:
$ guix environment --container --ad-hoc python cairo python-cairocffi
$ python3.6 -c "from cairocffi._ffi import ffi"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ben/.guix-profile/lib/python3.6/site-packages/cairocffi/__init__.py", line 41, in <module>
cairo = dlopen(ffi, 'cairo', 'cairo-2')
File "/home/ben/.guix-profile/lib/python3.6/site-packages/cairocffi/__init__.py", line 38, in dlopen
raise OSError("dlopen() failed to load a library: %s" % ' / '.join(names))
OSError: dlopen() failed to load a library: cairo / cairo-2
The background on this is that I use the Weasyprint PDF library from
PyPI and Weasyprint issues the above "from cairocffi._ffi import ffi".
I'm running GuixSD up-to-date with the latest master branch.
Regards,
Ben
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#32170: python-cairocffi error "dlopen() failed to load a library: cairo / cairo-2"
2018-07-16 7:35 bug#32170: python-cairocffi error "dlopen() failed to load a library: cairo / cairo-2" Ben Sturmfels
@ 2018-07-16 21:54 ` Danny Milosavljevic
2018-07-17 5:41 ` Ben Sturmfels
0 siblings, 1 reply; 3+ messages in thread
From: Danny Milosavljevic @ 2018-07-16 21:54 UTC (permalink / raw)
To: Ben Sturmfels; +Cc: 32170-done
[-- Attachment #1: Type: text/plain, Size: 371 bytes --]
Hi Ben,
thanks for the report.
I've fixed it in a545090ce5e6b9da1f473f558dabda69f317e461 on guix master
by allowing absolute paths as python-cairocffi's dlopen's parameter
and also substituting the sonames by the absolute paths in the callers.
python-cairocffi's dlopen is re-exported. That means that users that
use it also have to use the absolute paths.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#32170: python-cairocffi error "dlopen() failed to load a library: cairo / cairo-2"
2018-07-16 21:54 ` Danny Milosavljevic
@ 2018-07-17 5:41 ` Ben Sturmfels
0 siblings, 0 replies; 3+ messages in thread
From: Ben Sturmfels @ 2018-07-17 5:41 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 32170-done
[-- Attachment #1.1: Type: text/plain, Size: 522 bytes --]
On 17/07/18 07:54, Danny Milosavljevic wrote:
> Hi Ben,
>
> thanks for the report.
>
> I've fixed it in a545090ce5e6b9da1f473f558dabda69f317e461 on guix master
> by allowing absolute paths as python-cairocffi's dlopen's parameter
> and also substituting the sonames by the absolute paths in the callers.
>
> python-cairocffi's dlopen is re-exported. That means that users that
> use it also have to use the absolute paths.
Thanks Danny, I appreciate you squashing this one so quickly!
Regards,
Ben
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-17 5:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-16 7:35 bug#32170: python-cairocffi error "dlopen() failed to load a library: cairo / cairo-2" Ben Sturmfels
2018-07-16 21:54 ` Danny Milosavljevic
2018-07-17 5:41 ` Ben Sturmfels
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).