You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python cannot import pybgs. After building Visual Studio 2015 ALL_BUILD (with bgs_python) the following file appears in my site_packages folder for anaconda - pybgs-3.0.0.post2-py3.7-win-amd64.egg but nothing else. When I try to import in python i get the following error:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pybgs'
I tried to run an easy_install to get the .egg file running but that didn't help. Why will python not import this file?
**Windows 10
-**Visual Studio 2015
Python version 3.7.1:
The text was updated successfully, but these errors were encountered:
Hi @Gr8Dane7 , sorry for my delayed feedback to you.
Usually you should have a *.pyd file instead of .egg
I just released a new version of the BGSLibrary, now v3.1.0.
I tested it on Windows, Mac and Linux, both compiling the C++ library on OpenCV 3.4.7, 3.4.16 and 4.6.0.
I also tested its respective Python wrapper and GT user interface.
If you are still getting "No module named 'pybgs'" it's because you should update your PYTHONPATH environment variable. Note:
:: If you want the Python Wrapper
:: cmake -DOpenCV_DIR=%OpenCV_DIR% -DBGS_PYTHON_SUPPORT=ON -DBGS_CORE_STATIC=ON -G "Visual Studio 16 2019" ..
:: The Python package will be generated at %BUILD_DIR%\pybgs.cp37-win_amd64.pyd
:: You also need to add it in your PYTHONPATH.
Everything is working for me, could you please check in your side if this new version fix your issues?
Thanks in advance,
Andrews
Python cannot import pybgs. After building Visual Studio 2015 ALL_BUILD (with bgs_python) the following file appears in my site_packages folder for anaconda - pybgs-3.0.0.post2-py3.7-win-amd64.egg but nothing else. When I try to import in python i get the following error:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pybgs'
I tried to run an easy_install to get the .egg file running but that didn't help. Why will python not import this file?
-**Visual Studio 2015
The text was updated successfully, but these errors were encountered: