bgfx-python icon indicating copy to clipboard operation
bgfx-python copied to clipboard

bgfx-python Does not work.

Open mnmkay opened this issue 3 years ago • 1 comments

Windows 10 64-bit Python 3.9.6 Installed via pip.

Attempting helloworld.py, the following lines:

import os

# noinspection PyUnresolvedReferences
from pybgfx.utils.imgui_utils import ImGuiExtra
from pybgfx import bgfx
...

Fails with this error:

File "c:\python\bgfxtest\helloworld.py", line 4, in from pybgfx import bgfx File "C:\Users\MikenM\AppData\Roaming\Python\Python39\site-packages\pybgfx_init_.py", line 13, in initialise("pybgfx", _lib_name, "bgfx_python.map") File "C:\Users\MikenM\AppData\Roaming\Python\Python39\site-packages\pybgfx\initializor.py", line 39, in initialise add_types_to_namespaces(files, pkg, pkg_module) File "C:\Users\MikenM\AppData\Roaming\Python\Python39\site-packages\pybgfx\initializor.py", line 69, in add_types_to_namespaces entity = getattr(cppyy.gbl, simple_name) AttributeError: <namespace cppyy.gbl at 0x1b84eb594c0> has no attribute 'ImDrawListSharedData'. Full details: type object '' has no attribute 'ImDrawListSharedData' 'ImDrawListSharedData' is not a known C++ class 'ImDrawListSharedData' is not a known C++ template 'ImDrawListSharedData' is not a known C++ enum

Here was pip's install output:

pip install bgfx-python

Defaulting to user installation because normal site-packages is not writeable Collecting bgfx-python Downloading bgfx_python-2.0.1-cp39-cp39-win_amd64.whl (7.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 11.9 MB/s eta 0:00:00 Collecting clang Downloading clang-14.0-py3-none-any.whl (31 kB) Collecting cppyy Downloading cppyy-2.3.1.tar.gz (19 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting loguru Downloading loguru-0.6.0-py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 KB 535.4 kB/s eta 0:00:00 Collecting CPyCppyy==1.12.10 Downloading CPyCppyy-1.12.10.tar.gz (199 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.2/199.2 KB 2.9 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting cppyy-cling==6.25.3 Using cached cppyy_cling-6.25.3-py2.py3-none-win_amd64.whl (18.4 MB) Collecting cppyy-backend==1.14.8 Using cached cppyy_backend-1.14.8-py2.py3-none-win_amd64.whl Collecting colorama>=0.3.4 Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) Collecting win32-setctime>=1.0.0 Downloading win32_setctime-1.1.0-py3-none-any.whl (3.6 kB) Building wheels for collected packages: cppyy, CPyCppyy Building wheel for cppyy (pyproject.toml) ... done Created wheel for cppyy: filename=cppyy-2.3.1-py3-none-any.whl size=21511159 sha256=496ea886cadfbc124232f01b950a2c1bc4776f1135a829f372b749d7143872ae Stored in directory: C:\users\mikenm\appdata\local\pip\cache\wheels\0b\76\60\4682e65e1b52fa632f534b5cf270475fe21554073445d12091 Building wheel for CPyCppyy (pyproject.toml) ... done Created wheel for CPyCppyy: filename=CPyCppyy-1.12.10-cp39-cp39-win_amd64.whl size=237179 sha256=f28cbc79d6992aa893b51d2b07fe222370468f57fa45b0f15d16088d8c74f27d Stored in directory: C:\users\mikenm\appdata\local\pip\cache\wheels\7c\5c\a2\1d56bb6aa877c060b46c8618eab080a8dcbad10b44fabc0c6c Successfully built cppyy CPyCppyy Installing collected packages: cppyy-cling, clang, win32-setctime, cppyy-backend, colorama, loguru, CPyCppyy, cppyy, bgfx-python Successfully installed CPyCppyy-1.12.10 bgfx-python-2.0.1 clang-14.0 colorama-0.4.4 cppyy-2.3.1 cppyy-backend-1.14.8 cppyy-cling-6.25.3 loguru-0.6.0 win32-setctime-1.1.0 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available. You should consider upgrading via the 'c:\program files\python39\python.exe -m pip install --upgrade pip' command.

mnmkay avatar Jun 02 '22 03:06 mnmkay

This entire repo seems abandoned and has been a waste of several days of dev time.

ilulillirillion avatar Jun 04 '24 04:06 ilulillirillion