Closed SuperSimon81 closed 4 years ago
Hi @SuperSimon81! When you're building from source, you also need to checkout the dependencies submodule. From the project's root run this command:
git submodule update --init --recursive
Hope this helps.
Im actually not trying to build from source but just install the precompiled binaries for macos using pip. Will try your suggestion but have the impression I'm misunderstanding something.
There are no wheels yet for MacOS 10.15, so pip will try to build from source. I'm actually moving the CI pipeline from Travis/Appveyor to Github Actions and I will be able to create wheels for the latest MacOS version.
I see. I will try to build it myself while awaiting wheels for 10.15. Thank you for your swift replies.
@SuperSimon81 wheels are now available for MacOS with the release 1.0.2
.
I installed the binary now using pip. Trying to run hello_world it seems to fail at importing bgfx_lib. Any tips?
File "/Users/simon/Documents/Projects/github/bgfx-python/examples/helloworld/helloworld.py", line 3, in <module>
from bgfx import bgfx, ImGuiExtra, BGFX_CLEAR_COLOR, BGFX_CLEAR_DEPTH, \
File "/Users/simon/Documents/Projects/github/bgfx-python/bgfx/__init__.py", line 2, in <module>
from .utils import *
File "/Users/simon/Documents/Projects/github/bgfx-python/bgfx/utils.py", line 12, in <module>
import bgfx.bgfx_lib as bgfx_lib
ModuleNotFoundError: No module named 'bgfx.bgfx_lib'```
Are you running the examples inside the project root? If so, pip
will try to import the folder bgfx
of the project instead of the wheel's one. You can move the folder aside or delete the bgfx
one. I did the same thing in the Github Action as I didn't want to create a separate repo for such simple examples.
I was running it using PyCharm, in which I´ve had mysterious trouble loading modules before. Visual Studio Code I got it running immediately. Thanks again.
Hi and thank you for your efforts in making python bindings for bgfx
Im trying to install bgfx-python using pip on my machine running macos 10.15.4 and python 3.8. Any suggestions on how to proceed? Below is the terminal output of running pip install bgx-python
Simon