Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fbx format convert fail #12

Open
clime57 opened this issue Jun 5, 2022 · 2 comments
Open

fbx format convert fail #12

clime57 opened this issue Jun 5, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@clime57
Copy link

clime57 commented Jun 5, 2022

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
Copy link
Author

clime57 commented Jun 5, 2022

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

@wangerzi
Copy link
Owner

wangerzi commented Jun 8, 2022

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

@wangerzi wangerzi added the bug Something isn't working label Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants