blend2bam的FileNotFoundError

2024-04-26 09:39:13 发布

您现在位置:Python中文网/ 问答频道 /正文

因此,我尝试按照官方Panda3D页面的建议,使用blend2bam将.blend文件转换为.bam,但我遇到了一个FileNotFound错误。 我正在使用Windows和Python3.7(从Panda3D安装)。 我尝试了很多可能的方法来解决src和dst,但仍然没有成功

C:\Panda3D-1.10.6-x64\mystuff\pandatest>blend2bam C:\Panda3D-1.10.6-x64\mystuff\pandatest\car_model.blend C:\Panda3D-1.10.6-x64\mystuff\pandatest\
Traceback (most recent call last):
  File "c:\panda3d-1.10.6-x64\python\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\panda3d-1.10.6-x64\python\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Panda3D-1.10.6-x64\python\Scripts\blend2bam.exe\__main__.py", line 9, in <module>
  File "c:\panda3d-1.10.6-x64\python\lib\site-packages\blend2bam\cli.py", line 195, in main
    use_gltf28 = blenderutils.is_blender_28(args.blender_dir)
  File "c:\panda3d-1.10.6-x64\python\lib\site-packages\blend2bam\blenderutils.py", line 22, in is_blender_28
    output = subprocess.check_output([binpath, '--version'])
  File "c:\panda3d-1.10.6-x64\python\lib\subprocess.py", line 411, in check_output
    **kwargs).stdout
  File "c:\panda3d-1.10.6-x64\python\lib\subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:
  File "c:\panda3d-1.10.6-x64\python\lib\subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "c:\panda3d-1.10.6-x64\python\lib\subprocess.py", line 1207, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden

Tags: runinpymainliblinepanda3dfile
3条回答

我的解决方法是使用Blender2.7和Yabee

遇到了同样的错误。它调用blender,因此需要知道在哪里可以找到它: blend2bam blender dir“C:\Program Files\blender Foundation\blender 2.82”test.blend test\u bam\u dir

我今天也遇到了同样的问题,我想我终于解决了。您需要使用blender安装目录作为参数。这是我的:

文件名:

(source) >> cube.blend 

(dest)>>    cube.bam

例如:

blend2bam cube.blend cube.bam  blender-dir D:\Programs\Blender

诀窍是路径必须简单。没有空间等

我希望有帮助

尼亚齐

相关问题 更多 >