Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing from blender REPL (DEBIAN) #98

Closed
taiya opened this issue May 15, 2021 · 0 comments
Closed

Executing from blender REPL (DEBIAN) #98

taiya opened this issue May 15, 2021 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@taiya
Copy link
Collaborator

taiya commented May 15, 2021

Figure out where blender python is:

sudo apt-get install blender
blender --background --python-expr "import sys; print(f'REPL: {sys.path}')"
blender --background --python-expr "import sys; print(f'REPL: {sys.executable}')"
alias bython3="/path/to/bin/python" #< adjust according to above

Install system level requirements:

 sudo apt-get install libpython3.8-dev #< needed by mathutils and pybullet
 sudo apt-get install libopenexr25 libopenexr-dev #< neeeded by openexr

Install the requirements inside the blender REPL

bython3 -m ensurepip
bython3 -m pip install --upgrade pip wheel
bython3 -m pip install --upgrade --global-option=build_ext --global-option="-I/usr/include/python3.7m" mathutils bullet
bython3 -m pip install --upgrade -r requirements.txt
bython3 -m pip install -e . 

Test the module loads w/o problems (mostly pybullet and openexr being the issue)

bython3 -c "import kubric" 
@taiya taiya added the documentation Improvements or additions to documentation label May 15, 2021
@taiya taiya changed the title Executing from blender REPL Executing from blender REPL (DEBIAN) May 15, 2021
@taiya taiya added the bug Something isn't working label May 15, 2021
@taiya taiya closed this as completed May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Development

No branches or pull requests

1 participant