How to run the "Hello World" PyBullet example
Posted: Fri Jan 15, 2021 6:38 pm
I try to run the first official example: https://github.com/dgym/pybullet/blob/m ... loworld.py
I installed PyBullet like this:
When I try to run the example I get this error message:
I think it is because the example is old (Mar 31, 2012) and PyBullet was updated. The module name is "pybullet". I renamed import like this:
I have this error message:
Could you copy the official example above and try it you your machine? How I should to change the example to run it? I want to use PyBullet with OpenGL and PyQt5. I want to have GUI and 3D graphics with Physics in one window. Please, help me to run the simple PyBullet example above.
I installed PyBullet like this:
Code: Select all
pip install pybullet
Code: Select all
Traceback (most recent call last):
File "main.py", line 1, in <module>
from bullet.bullet import (ModuleNotFoundError: No module named 'bullet'
Code: Select all
from pybullet import (
Vector3, Transform,
BoxShape,
DefaultMotionState,
RigidBody,
DiscreteDynamicsWorld)
Code: Select all
pybullet build time: Nov 3 2020 18:27:37
Traceback (most recent call last):
File "main.py", line 1, in <module>
from pybullet import (ImportError: cannot import name 'Vector3' from 'pybullet'
(C:\Users\8Observer8\AppData\Roaming\Python\Python37\site-packages\pybullet.cp37-win32.pyd)