bkaba@bkaba:~$ cat some_python_module/some_python_module.py
print('Oh no, it works')
Now let’s run it with the same python import rules:
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from some_python_module import some_python_module
Oh no, it works
Now, please, tell me, why it supposed to fail and why it worked with opencv 4.5.5?
But my original question was “how I supposed to import custom built opencv lib in python module?”
from .cv2 import *
# wildcard import above does not import "private" variables like __version__
# this makes them available