ubuntu-22.04

Using memory sanitizer (asan) on C/C++ library loaded to python with ctypes

Using memory sanitizer (asan) on C/C++ library loaded to python with ctypes Question: I have C++ library compiled with AddressSanitizer(asan) using g++ and cmake: SET( AXULIARY_COMPILE_FLAGS "-g -Og -fsanitize=address -fno-omit-frame-pointer") this works very well when running stand-alone C/C++ executable program. But I’m unable to make it work when loaded as shared/dynamic library (.so) into python …

Total answers: 1

Correct way to use venv and pip in pypy

Correct way to use venv and pip in pypy Question: I’ve been using cpython forever, but I’m new to pypy. In cpython, this is how I use virtual environments and pip. python3 -m venv venv source venv/bin/activate python3 -m pip install <package> I recently started using pypy for a project, and noticed that the following …

Total answers: 1

How to resolve, Import "pqcrypto" could not be resolved?

How to resolve, Import "pqcrypto" could not be resolved? Question: I am trying to use the pqcrypto library but can not resolve the issue: Import "pqcrypto" could not be resolved Pylance (reportMissingImports) I am using python 3.10.6 on a ubuntu 22.4 virtual machine (virtual box). Pip version 23.0.1. Initially I could not pip install this …

Total answers: 1