jruebsam / condatest

0 stars 0 forks source link

Did you ever get to the bottom of this? #1

Open playaspec opened 2 years ago

playaspec commented 2 years ago

I ported a module written for Windows to Linux, and spent a day and a half scratching my head trying to figure out what I was doing wrong, until I ran my code in the system's native python and it worked flawlessly. Something about Conda's python and ctypes seems to result in a segfault pretty consistently. More than 16 hours trying to find "my" bug and it was Anaconda all along. Would love to know how to resolve this, other than just ditching Anaconda and reverting to native venv.

jruebsam commented 2 years ago

@playaspec Unfortunately not. However, I solved my issues by using pybind11 to wrap my c/c++ code.

playaspec commented 2 years ago

I finally concluded that camera user space driver I was using was built against system libs, and not the conda venv libs, despite being in a Conda environment when they were built. Removing all Conda references from $PATH solved the immediate problem as I could at least run without crashing, but I still need to muck about with the camera driver's Makefile to build against Conda's libs and includes so I can use this device regardless of environment.