wangerzi / 3d-model-convert-to-gltf

Convert 3d model (STL/IGES/STEP/OBJ/FBX) to gltf and compression
Apache License 2.0
247 stars 48 forks source link

fbx format convert fail #12

Open clime57 opened 2 years ago

clime57 commented 2 years ago

1.GRPC Mode:

use command line to start in windows:

docker pull wj2015/3d-model-convert-to-gltf:latest docker run -d -p 8999:8999 wj2015/3d-model-convert-to-gltf:latest

all success except fbx.

2.command line mode log:

D:\3d-model-convert-to-gltf\server\examples\python>docker run -v D:\3d-model-convert-to-gltf\assets:/assets wj2015/3d-model-convert-to-gltf:latest /bin/bash -c "cd /assets && conda run -n pythonocc python /opt/3d-model-convert-to-gltf/server/convert.py fbx Samba_Dancing.fbx test.glb" ERROR conda.cli.main_run:execute(33): Subprocess for 'conda run ['python', '/opt/3d-model-convert-to-gltf/server/convert.py', 'fbx', 'Samba_Dancing.fbx', 'test.glb']' command failed. (See above for error) Traceback (most recent call last): File "/opt/3d-model-convert-to-gltf/server/convert.py", line 33, in main() File "/opt/3d-model-convert-to-gltf/server/convert.py", line 20, in main out_convert_gltf_path = Convert.convert_by_type(sys.argv[1], os.path.abspath(sys.argv[2]), is_bin) File "/opt/3d-model-convert-to-gltf/server/service/Convert.py", line 219, in convert_by_type result = model.handler(file_path, is_bin) TypeError: handler() missing 1 required positional argument: 'need_draco'

clime57 commented 2 years ago

v1.5 mirror file is good.v1.6 and latest have this bug

wangerzi commented 2 years ago

Thanks for your clearly feedback, the error seems like convert.py params pass problem, I'm already fixed but forget to push image before.

I will remind you again after this problem solved.

https://github.com/wangerzi/3d-model-convert-to-gltf/blob/master/server/service/Convert.py#L178