Skip to main content
Advice
0 votes
4 replies
141 views

I have a simple .py file in a directory called core_app\functions\my_function.py like this: from typing import Optional from core_app.routes.models import (Model1, Model2, Model3) from core_app.routes....
SomeDude's user avatar
  • 14.3k
4 votes
1 answer
57 views

The Cython docs discuss passing a pointer to a memoryview by using, e.g.: cdef double[::1] x_view = x # some array cdef double* ptr = &x_view[0] however, when that array x has no elements (x....
Bernie Roesler's user avatar
0 votes
1 answer
47 views

I am writing cython code with cython v3.1.5. I have defined these fused types: ctypedef fused index_t: int32_t int64_t ctypedef fused value_t: double double complex and am trying to ...
Bernie Roesler's user avatar
0 votes
1 answer
44 views

I am working on a Cython interface to a C library. I have this class: cdef class CholeskyFactor: cdef cholmod_factor *_factor # ... etc. def __cinit__(self, A, *, order=None, **kwargs): ...
Bernie Roesler's user avatar
20 votes
2 answers
2k views

I am having trouble making a simple "Hello World" python function which I can call from a C program. Here is the contents of my helloworld.py file: def hw(): print("Hello World") ...
vibe's user avatar
  • 595
0 votes
0 answers
42 views

I am trying to compile a standalone executable from a Python project. It consists of several Python files written by me, with one Module being the "main" with the main function as the entry ...
Simon T.'s user avatar
  • 145
3 votes
2 answers
136 views

I am using Cython to generate multiple C files from multiple Python files and then compile them using GCC. Using Python3.10 on Ubuntu 22.04 my tool flow works fine. When I switch to Kubuntu 20.04 with ...
Simon T.'s user avatar
  • 145
0 votes
0 answers
46 views

I’m using cyndilib (v0.0.6) on Windows to receive an NDI source and then forward it in a different resolution(this is just one of my use-cases, there are a lot others). The problem that I'm unable to ...
Yash mandlik's user avatar
0 votes
0 answers
32 views

I tried to use Cython to read a binary file line by line, but got errors during compiling the codes, due to, probably, getline. Simple test codes are as follows: # test_getline_cython.pyx cimport ...
Elkan's user avatar
  • 616
1 vote
2 answers
93 views

I have a function I need to implement which does not vectorize well, and so I am implementing it in Cython to make the nested for-loops workable. My problem is of a similar complexity as naive matrix-...
Matteo Alleman's user avatar
0 votes
0 answers
79 views

TL;DR: When pip install builds and installs wheels, how do I determine which versions of build tool packages (e.g. Cython) it used? How do I force it to use the same versions of those packages in the ...
macdjord's user avatar
  • 635
1 vote
1 answer
69 views

I am trying to get profile=True and %%prun to give a profile of the runtime for the compiled cython program. But on my Windows machine it is not working, the same code works on google colab. Cython ...
Todd Sierens's user avatar
0 votes
1 answer
43 views

I am getting an Error compiling Cython file, 'myproject/utils/hdf5.pxd' not found` when trying to build my Cython project in a certain way. My Cython project is organized this way: myproject/ setup....
Arthur's user avatar
  • 376
0 votes
1 answer
414 views

I just had a problem that started Monday 12/05/2025, i have a custom python package on a registry that i've been using since a while, the installation of this package with pip on docker base image ...
maghraoui dhia's user avatar
0 votes
0 answers
460 views

As is known to all, Nuitka and Cython compiles Python bytecodes to C/C++. Technically, can Python applications nuitka/cython programs be reversed?
qfcy's user avatar
  • 43

15 30 50 per page
1
2 3 4 5
357