cython Questions
4
4
Solved
I'm trying to install eth-brownie using 'pipx install eth-brownie' but I get an error saying
pip failed to build package: cytoolz
Some possibly relevant errors from pip install:
build\lib.win-amd6...
1
I have used cythonize to compile my python modules. This way speed of code is increased and also the code can not be read by developers. However I have doubts if some python developer can crack tha...
6
Solved
I want to wrap a test project containing C++ and OpenMP code with Cython, and build it with distutils via a setup.py file. The content of my file looks like this:
from distutils.core import setup
...
Laughable asked 24/5, 2013 at 14:23
1
Introductory notes: trying to accelerate Python+Numpy code with Cython is a common problem and this question is an attempt to create a canonical question about what types of operation you can accel...
5
Solved
This setup.py:
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
extensions = (
Extension('myext', ['myext/__init__.py',
'myext/algor...
Agro asked 10/5, 2015 at 22:38
2
Solved
1
Is it possible (and how) to use MinGW-w64 for building of C-extensions for Python or embeding Python on Windows?
Let's take as example the following cython-extension foo.pyx:
print("foo loaded...
3
Solved
I'd like to make the integer constants (ACTIVE_TAG, etc) defined here:
//island management, m_activationState1
#define ACTIVE_TAG 1
#define ISLAND_SLEEPING 2
#define WANTS_DEACTIVATION 3
#define D...
4
I've managed to build some DLLs on Linux that are necessary for my Python extension using MinGW. Something along these lines:
from setuptools.command.build_py import build_py
class BuildGo(build_p...
Bonaparte asked 30/1, 2018 at 9:31
1
Solved
I set up my development environment on Fedora 35 and when I run any brownie command such as $ brownie console or even brownie --version I get the following error:
Traceback (most recent call last):...
2
Solved
Whenever I try to compile the simpleset cython example
helloworld.pyx
print "Hello World"
setup.py
from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cy...
Cattery asked 7/6, 2017 at 16:37
2
Solved
I coded some program which updates a numpy list in each iteration and does some operations on it. the number of iterations depends on time. for example in 1 second, there might be 1000 to 2500 iter...
Qua asked 7/9, 2017 at 17:37
9
I get this warning while running a python program (some basic web automation using selenium):
warning: Debugger speedups using cython not found. Run
'"/usr/bin/python3.5"
"/root/.p2/pool/plugi...
View asked 17/4, 2016 at 18:23
8
Solved
I'm trying to speed up the answer here using Cython. I try to compile the code (after doing the cygwinccompiler.py hack explained here), but get a fatal error: numpy/arrayobject.h: No such file or ...
2
How can I convert a python list of python strings to a null-terminated char** so I can pass it to external C function?
I have:
struct saferun_task:
saferun_jail *jail
saferun_limits *limits
c...
5
I have a Python2.6 program that can load Python modules compiled to .so files using Cython. I used Cython to compile the .py modules to .so files and everything works fine.
This is the setup.py f...
3
I was handed some code that looks like this:
In "header.hpp":
enum class my_enum_type {
val1 = 0;
...
}
In "header_lib.pyx":
cdef extern from "header.hpp":
enum my_enum_type:
val1 = 0;
....
1
I am trying to auto update Cython .so modules that my python program uses on the fly. After I download the new module and del module and import module Python seems to still be importing the older v...
Apanage asked 25/1, 2020 at 3:37
4
Solved
I'm creating a project that uses Python OpenCV. My image processing is a bit slow, so I thought I can made the code faster by creating a .pyd file (I read that somewhere).
I am able to create a .c...
Insignificant asked 28/4, 2016 at 17:46
2
Solved
I'm trying to run Hadoopy, which has a file _main.pyx, and import _main is failing with module not found in __init__.py.
I'm trying to run this on OS X w/ standard python 2.7.
6
I used pyinstaller to generate an executable for a python script, and when trying to run the executable I get the error ModuleNotFoundError: No module named 'scipy.special.cython_special'. I'm not ...
Constitute asked 25/6, 2020 at 17:57
0
I'm trying to convert a python script into Cython executable binary. It also uses other modules like Tensorflow, pandas, numpy, matplotlib, seaborn, and pickle. Here is my compile command.
cython -...
Saavedra asked 31/8, 2021 at 12:57
2
Solved
I have a situation where the same Python module is present in the same directory in two different versions; mymodule.py and mymodule.so (I obtain the latter from the first via Cython, but that's ir...
Comus asked 10/5, 2019 at 9:34
4
Non-zero exit code (1):
_pydevd_bundle/pydevd_cython.c:13:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with ...
Undersexed asked 13/11, 2017 at 5:43
© 2022 - 2024 — McMap. All rights reserved.