unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Python: Error loading shared library in Guix
Date: Tue, 19 Mar 2019 19:04:29 +0100	[thread overview]
Message-ID: <20190319190429.646199b0@alma-ubu> (raw)
In-Reply-To: <8736nincg6.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 417 bytes --]

On Tue, 19 Mar 2019 15:52:41 +0100
Ricardo Wurmus <rekado@elephly.net> wrote:

> Using the full file name would work, for example:
> 
> ./pre-inst-env guix environment --ad-hoc python zlib -- \
>     python3 -c "import os; import ctypes;
> libz=ctypes.CDLL(os.environ['GUIX_ENVIRONMENT']+'/lib/libz.so.1')"

Right! With a "substitute*", I can inject the full path and then it
works.

Thanks,

Björn


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

      reply	other threads:[~2019-03-19 18:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19 14:25 Python: Error loading shared library in Guix Björn Höfling
2019-03-19 14:52 ` Ricardo Wurmus
2019-03-19 18:04   ` Björn Höfling [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190319190429.646199b0@alma-ubu \
    --to=bjoern.hoefling@bjoernhoefling.de \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).