Category : python

I am trying to wrap a C++ library into a Python module with Boost Python. Everything is OK when I used Python 2.7, but I got segmentation fault when upgraded to 3.6. In my CMakeLists.txt, I wrote find_package(Pythonlibs 3.6 REQUIRED) find_package(Boost COMPONENTS python REQUIRED) message(STATUS ${Boost_INCLUDE_DIR}) message(STATUS ${Boost_LIBRARIES}) message(STATUS ${PYTHON_INCLUDE_DIR}) message(STATUS ${PYTHON_LIBRARIES}) and cmake returned ..

Read more

C:UsersloginnDesktopteste_face>pip install opencv-python Collecting opencv-python Using cached opencv-python-4.4.0.44.tar.gz (88.9 MB) Installing build dependencies … done Getting requirements to build wheel … done Preparing wheel metadata … done Requirement already satisfied: numpy>=1.17.3 in c:usersloginnappdatalocalprogramspythonpython39libsite-packages (from opencv-python) (1.19.2) Building wheels for collected packages: opencv-python Building wheel for opencv-python (PEP 517) … – It doesn’t leave here anymore… ..

Read more

I’ve got two problems: 1: I initialize my log by: Path(str(Path(__file__).parent.parent.parent.parent) + "log").mkdir(parents=True, exist_ok=True) logging.basicConfig( filename=str(Path(__file__).parent.parent.parent.parent) + "log" + time.strftime( "%d.%m.%Y_%H%M%S") + ".log", level=logging.DEBUG, format="[%(asctime)s ThreadID:%(thread)d %(levelname)s:%(name)s]: %(message)s", datefmt="%d.%m.%Y %H:%M:%S" ) logging.info("Started") And calling it in multiple instances by: log = logging.getLogger(__name__) Now the Problem here is that we use an api which calles the ..

Read more