All Questions
5,893
questions
-1
votes
1
answer
45
views
Small differences between scipy.fft (Python) results and FFTW (C) results [closed]
I am trying to recreate a result using FFTW in C from some known working code in scipy.fft in Python. I am finding small inaccuracies in my results.
My input data is real 3d with dimensions = (294, ...
1
vote
0
answers
27
views
Python C++ extension DLL is not imported in python interpreter
I have written a Python extension in C/C++ to wrap my code for Python.
I followed CPython documentation in the parts of C/C++ functions each module should provide
For example, my module contains:
/* ...
1
vote
0
answers
48
views
Cython - Export my lib to a .so file and use in a C program - Symbols not found
I'm learning cython and the exercise I'm doing wants me to make a lib (.so) to use in a C program (already compiled), that require that lib. I already have done the lib. It is working.
But now, I need ...
0
votes
0
answers
32
views
how to read cython shared object file? [closed]
I just came to know about shared object of cython and I tried to read it but unable to read but I am curious in knowing how to read code inside cython shared object file are they readable ?
0
votes
1
answer
87
views
Python "While not" loop in C
I have written a function in Python that uses a while loop with an inverted condition like this:
while (not x < 0):
#do something
Is there an elegant solution to map this over to C without having ...
0
votes
1
answer
86
views
Why does a zig const reference cause a segmentation fault when passed to C-function?
Consider the following file hello.zig which defines a basic Python C extension (and which works):
const c = @cImport({
@cInclude("Python.h");
});
var module = c.PyModuleDef{
.m_name ...
0
votes
1
answer
30
views
How to open Audit Process Creation by coding?
enter image description here
Local Group Policy Editor->Local Computer Policy->Computer Configuration->Windows Settings->Security settings->Advanced Audit Policy Configuration->...
2
votes
0
answers
89
views
Embedded python script in golang with go routines
I'm working on a Go application that interfaces with Python via CGO to process store data. I'm using goroutines because I have more than 4M store.
Issue: The execution gets blocked after some ...
2
votes
0
answers
63
views
cimport cython module that wraps C libraries
I have this kind of C/cython project:
project/
├── src/
│ └── modules/
│ ├── cython1.pyx
│ ├── cython1.pxd
│ ├── cython2.pyx
│ ├── cython2.pxd
│ ├── includes/
│ │ ...
0
votes
0
answers
47
views
Readin file csv with shared object
I'm trying to create a shared object with Python to read a CSV file to be used by a C application.
I'm having a really hard time doing this.
My code is here:
from cffi import FFI
import csv
import io
...
0
votes
0
answers
21
views
VueJS changes will not get reflected on webpage even after recompiling
I am running this project in a docker dev container, there are 2 parts to this project's frontend, sist2-admin which works fine and recompiles fine for example when I change the Logo in the navbar and ...
0
votes
1
answer
81
views
Transfer pointer from dll (c/c++) to python
I have a DLL written in C++ ( it can be rewritten in C ) and python code where I import the DLL with cdll.LoadLibrary(). Then I specify a function from DLL and it's agrument types. Then I call the ...
2
votes
0
answers
83
views
Unable to register custom compiled TensorFlow operator
I have recently been trying to add a custom operator to tensorflow that requires me to perform a custom build. Unfortunately, I am unable to register the operator and the following error occurs in ...
0
votes
2
answers
69
views
How does Python's Binascii.a2b_base64 (base64.b64decode) work?
I checked the source code in Python and implemented a function that is the same as the Python's binascii.a2b_base64 function.
This function is located under path Python-3.12.4/Modules/binascii.c, line ...
0
votes
1
answer
64
views
Running Custom C over ssh with paramiko [duplicate]
I've been trying to automatically execute some compiled C code over an SSH session. However, I have a big issue; my C code requires user input, and therefore I need to be able to catch those inputs ...