Open ZacZhangzhuo opened 1 year ago
It seems that this is an issue related to pytest that is not related to this package.
Can you try running these pytest-free examples?
python -m examples.pybullet_demo -d DUCK
:(compas) C:\Zac\GitHub\pybullet_planning_tutorials>python -m examples.pybullet_demo -d DUCK
pybullet build time: Jun 11 2023 10:38:36
Arguments: Namespace(noviewer=False, demo='DUCK', debug=False)
Traceback (most recent call last):
File "C:\Applications\Miniconda\envs\compas\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Applications\Miniconda\envs\compas\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Zac\GitHub\pybullet_planning_tutorials\examples\pybullet_demo.py", line 411, in <module>
main()
File "C:\Zac\GitHub\pybullet_planning_tutorials\examples\pybullet_demo.py", line 401, in main
duck_demo(viewer=not args.noviewer)
File "C:\Zac\GitHub\pybullet_planning_tutorials\examples\pybullet_demo.py", line 114, in duck_demo
cprint('hello duck! <ctrl+left mouse> to pan', 'green')
File "C:\Applications\Miniconda\envs\compas\lib\site-packages\termcolor\termcolor.py", line 189, in cprint
print(
OSError: [WinError 6] 句柄无效。
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
OSError: [WinError 6] 句柄无效。
numActiveThreads = 0
stopping threads
Thread with taskId 0 with handle 0000000000000738 exiting
Thread TERMINATED
finished
numActiveThreads = 0
btShutDownExampleBrowser stopping threads
Thread with taskId 0 with handle 0000000000000274 exiting
Thread TERMINATED
termcolor
problem, but did not think so afterwards.
Hi, Thanks for this amazing tool!!!
Prerequisites
I carefully followed the installation instruction, and successfully ran pybullet with the following example:
The example runs well as you can see from the below capture:![image](https://github.com/yijiangh/pybullet_planning/assets/57562250/c6b9d894-9531-49c4-84bc-c879d296352b)
Issue
While, running pytest tests caused some trouble and it was a bit abstract for me to troubleshooting the bug.
When I was running
pytest -s -m collision_fn --viewer
When I was running
pytest -s -m motion_planning_2D --viewer
System Information
Python 3.9.13
Thanks in advance for any insights or clues!!!