Open Sam2much96 opened 9 months ago
Hi! You need to have "tcomposer" binary in your PATH. Otherwise RenderChan won't find it.
Hi. there are two reasons for this error
Fix:
opentoonz.py line 51 should be changed to
commandline=[self.findBinary("tcomposer"),'--appimage-exec', 'tcomposer', filename, "-o", os.path.join(img_outputPath, "image."+img_format), "-nthreads",extraParams['nthreads'], "-step", extraParams['step'], "-shrink", extraParams['shrink'], "-multimedia", extraParams['multimedia']]
And tcomposer.txt should point to an appimage of opentoonz-morevna in rebnderchan's directory
Fix: pointing tcomposer.txt to a compiled app image of opentoonz-morevna-1.4.0.appimage and running the following commands $./OpenToonz-1.4.0-morevna-2020.06.14-linux64-b6177.appimage --appimage-exec tcomposer '/path to tonnz files.tnz' -o '/path to output fileimage.tiff' -nthreads all
successfully compiles. If asked for qt dependencies errors $sudo apt install qt-creator this installs all required qt dependencies for running tcomposer in command line if missing
Thank you for sharing your findings! Can you please post output of those two commands?
which tcomposer
ls -al /usr/bin/snap
Result:
samuel@samuel-x540na:~$ ls -al /usr/bin/snap -rwxr-xr-x 1 root root 16138392 May 29 2023 /usr/bin/snap samuel@samuel-x540na:~$ which tcomposer samuel@samuel-x540na:~$
I think Snap is buggy generally. Using App Images works better. No Hassles with snap or missing dependencies. I'll make a PR of my implementation of this approach.
The command line in line 51 is buggy. self.conf["binary"] returns a wrong directory path on and this breaks the subprocess call when attempting to render .tnz files on Linux using python 3