Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python blend2bam的FileNotFoundError_Python_Blender_Panda3d - Fatal编程技术网

Python blend2bam的FileNotFoundError

Python blend2bam的FileNotFoundError,python,blender,panda3d,Python,Blender,Panda3d,因此,我尝试按照官方Panda3D页面的建议,使用blend2bam将.blend文件转换为.bam,但我遇到了一个FileNotFound错误。 我使用的是从Panda3D安装的Windows和Python3.7。 我尝试了很多可能的方法来解决src和dst,但仍然没有成功 C:\Panda3D-1.10.6-x64\mystuff\pandatest>blend2bam C:\Panda3D-1.10.6-x64\mystuff\pandatest\car_model.blend C:

因此,我尝试按照官方Panda3D页面的建议,使用blend2bam将.blend文件转换为.bam,但我遇到了一个FileNotFound错误。 我使用的是从Panda3D安装的Windows和Python3.7。 我尝试了很多可能的方法来解决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

我的解决方法是使用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
诀窍是路径必须简单。没有空间等

我希望有帮助

尼亚齐