cffi Questions
5
I am trying to install a new Django project from git, I created a new virtual envt using
python3(version: 3.8.5). When I try to install the required libraries in the requirements.txt, I get the fol...
Cacology asked 23/6, 2021 at 6:57
5
Solved
I followed a guide to get my python flask app running and I am at the last step where I change http into https with certbot. But when I run my certbot command sudo certbot --nginx -d domainname -d ...
Haematocryal asked 20/4, 2020 at 2:54
1
I'm trying to extract informations from a client certificate encrypted in PKCS#12 in Common Lisp.
I've tried with the following steps:
Load the given p12 file onto BIO with d2i_PKCS12_bio
Verify...
Helenahelene asked 10/4, 2017 at 14:11
1
I am trying to call a c function or c program from python using cffi, but I find most examples too complex for me to easily learn from. One of the best examples I have found is this example and I h...
1
I try to write BLOB into database - chunk by chunk, using database API C-function (say, db-write-chunk).
This function takes a pointer to a foreign memory (where chunk is placed) as an argument.
So...
Greasy asked 19/11, 2018 at 20:12
0
I am trying to call Haskell (ghc version 7.6.3) from Common Lisp (sbcl version 1.2.4) on a debian pc.
The Haskell code is
{-# LANGUAGE ForeignFunctionInterface #-}
module Safe where
import For...
Javanese asked 4/8, 2018 at 6:32
1
Installing cffi in the virtual environment encounters errors, but seems to install. Are these errors actually critical, ones that could lead it to fail when installing cryptography (see further bel...
Everything asked 7/5, 2018 at 0:46
3
Solved
ok I tried this translate-from-foreign method and it did work
I have these defined in my structs.lisp file in my library which loads first before all my other dependencies
(cffi:defcstruct (cv-siz...
Putrefaction asked 2/10, 2013 at 9:24
1
Solved
I am trying to write the CFFI wrapper for Sundials CVODE library. SWIG was choking on Sundials headers since they are quite interconnected and SWIG couldn't find the right headers, so I did it by h...
Incorrect asked 7/3, 2016 at 10:48
0
I'm writing a FFI on Common Lisp for Chipmunk2d (a 2D physics simulation library) using CFFI.
When I evaluate on the REPL:
> (cp:moment-for-circle 100 0 1 #(0 0))
(translate-into-foreign-memor...
Bohannan asked 27/2, 2016 at 15:18
2
Solved
native c header:
typedef HANDLE HCAMERA;
int Begin(HCAMERA* h);
int End(HCAMERA h);
HANDLE is defined:
typedef void *HANDLE;
native c source I want:
HCAMERA h;
int r = 0;
r = Begin(&h);
...
Eupatorium asked 7/1, 2016 at 2:56
1
Solved
I've been trying to build a lispy interface to the CFFI bindings (https://gitorious.org/dh-misc/hdf5/source/cb616fd619a387e3cdc927994b9ad12b6b514236:) but I ran into a situation where code runs cor...
Zachariahzacharias asked 10/10, 2013 at 21:5
1
Solved
On this line ((pointerp (first args)) (mem-aref (%vector-float-to-c-array (first args)) :float (second args))) in the below code the (second args) compiles with the warning This is not a number NIL...
Echidna asked 26/4, 2014 at 4:47
3
Solved
I'm under the impression that CFFI cant pass structs by value, but the CFFI documentation says:
To pass or return a structure by value to a function, load the cffi-libffi system and specify the ...
Macroclimate asked 24/9, 2013 at 1:34
4
Solved
I have a matrix defined so if I do this
(format t "~a" (get-real-2d 0 0))
it prints out the element in the first row first column
and if I do this
(format t "~a" (get-real-2d a 0 1))
it prin...
Bellis asked 21/9, 2013 at 4:23
1
© 2022 - 2024 — McMap. All rights reserved.