Open maxime1992 opened 2 years ago
I noticed while testing that docker pull wj2015/3d-model-convert-to-gltf:latest
is not using the latest version, but an older one.
I was able to fix the problem by copying the latest version from the repository (master branch) to the Docker container.
I have the same problem - I get "TypeError: handler() missing 1 required positional argument: 'need_draco'" in the terminal
The bug was fixed https://github.com/wangerzi/3d-model-convert-to-gltf/issues/12, but the bug free verison docker image yet been uploaded.
In my case, I use command mode.
I fix this problem by changing the content of the convert.sh file, and it works well for me:
inputPath=$( cd "$(dirname "$2")" pwd ) inputFile=$inputPath/`basename $2` outPath=$( cd "$(dirname "$3")" pwd ) outFile=$outPath/`basename $3` docker run -v $inputPath:$inputPath -v $outPath:$outPath --name stp-to-gltf wj2015/3d-model-convert-to-gltf:v1.6 docker cp Convert.py stp-to-gltf:/opt/3d-model-convert-to-gltf/server/service/Convert.py docker exec -it stp-to-gltf /bin/bash -c "cd $inputPath && conda run -n pythonocc python /opt/3d-model-convert-to-gltf/server/convert.py $1 $inputFile $outFile $4"
sh convert.sh stp test.stp test.gltf
I follow this method, transfer the test.stp to test.gltf . But when I use the tree.js to open the test.gltf,It can not get the model.
I had the same problem, but I was able to fix it by changing the container' tag in convert.sh
.
After:
docker run -v $inputPath:$inputPath -v $outPath:$outPath wj2015/3d-model-convert-to-gltf:v1.7 /bin/bash -c "cd $inputPath && conda run -n pythonocc python /opt/3d-model-convert-to-gltf/server/convert.py $1 $inputFile $outFile $4"
Changing container's tag from v1.6
to v1.7
.
v1.7 is available on docker hub :)
https://hub.docker.com/r/wj2015/3d-model-convert-to-gltf/tags
I just tried running the following:
and I get the following error:
Am I missing something?