ValueError: height of box too small

I’m starting with a Draft:Shapestring to create an engraving path. Upon selecting the shapestring and creating a new job, I receive the following:

09:47:01  Traceback (most recent call last):
  File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Job.py", line 552, in onChanged
    processor = PostProcessor.load(obj.PostProcessor)
  File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Post/Processor.py", line 47, in load
    exec("import %s as current_post" % postname, namespace)
  File "<string>", line 1, in <module>
  File "/tmp/.mount_FreeCAxEJiPX/usr/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Post/scripts/estlcam_post.py", line 30, in <module>
    import PathScripts.PostUtils as PostUtils
  File "/tmp/.mount_FreeCAxEJiPX/usr/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
<class 'ModuleNotFoundError'>: No module named 'PathScripts.PostUtils'
09:47:01  Traceback (most recent call last):
  File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Stock.py", line 231, in onChanged
    self.execute(obj)
  File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Stock.py", line 222, in execute
    shape = Part.makeBox(self.length, self.width, self.height, self.origin)
<class 'ValueError'>: height of box too small
09:47:01  Job.ERROR: height of box too small
09:47:01  Traceback (most recent call last):
09:47:01    File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Gui/Job.py", line 1643, in Create
    obj = PathJob.Create("Job", base, template)
09:47:01    File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Job.py", line 863, in Create
    obj.Proxy = ObjectJob(obj, models, templateFile)
09:47:01    File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Job.py", line 240, in __init__
    self.setupStock(obj)
09:47:01    File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Job.py", line 386, in setupStock
    obj.Stock = PathStock.CreateFromTemplate(obj, json.loads(stockTemplate))
09:47:01    File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Stock.py", line 563, in CreateFromTemplate
    return CreateFromBase(job, neg, pos, placement)
09:47:01    File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Stock.py", line 390, in CreateFromBase
    obj.Proxy.execute(obj)
09:47:01    File "/tmp/.mount_FreeCAxEJiPX/usr/Mod/Path/Path/Main/Stock.py", line 222, in execute
    shape = Part.makeBox(self.length, self.width, self.height, self.origin)
09:47:01  ValueError: height of box too small
09:47:01

There doesn’t appear to be anything useful regarding “No module named ‘PathScripts.PostUtils’,” and no amount of messing with the size of the shapestring eliminates “height of box too small”, and it fails with both Vcarve and Engrave. I just want to engrave some text…

Thanks!

OS: Debian GNU/Linux 12 (bookworm) (XFCE/xfce)
Word size of FreeCAD: 64-bit
Version: 0.21.1.33694 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.21.1)
Hash: f6708547a9bb3f71a4aaade12109f511a72c207c
Python 3.10.12, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * freecad.gears 1.0.0
  * Manipulator 1.5.0
  * Assembly4 0.50.4
  * FeedsAndSpeeds 0.5.0

Code Restructuring - JobFixer Script

Thanks, but that did nothing of value.

Message “No module named 'PathScripts.PostUtils” comes from outdated estlcam_post.py. Sorry, I missed out this on first sight.
(I recommend turn off all unused postprocessors)
Could you provide a file?

The location of “PostUtils” changed during a code refactor.
With FreeCAD running you can locate the file , now called “Utils”. for my current version it is "/tmp/.mount_FreeCA1L8pXR/usr/Mod/Path/Path/Post/Utils.py "
the " .mount_FreeCA1L8pXR " part will vary according to your installation.

The post processor file is located in similar fashion ; " /tmp/.mount_FreeCA1L8pXR/usr/Mod/Path/Path/Post/scripts/estlcam_post.py "
Copy the post processor you want to use, paste into your Macro directory and edit so that the import for PostUtils comes from the new directory

You will have something like the first two lines in the following code example.
Comment out the PathUtils reference with # i.e., #from PathScripts import PathUtils
Comment out the PostUtils reference with # i.e., #from PathScripts import PostUtils
and paste line
import Path.Post.Utils as PostUtils
you may not need the first "Post. " seems to depend on the system.
You could also use import Path.Post.Utils as Utils in which case need to use the Find function in a text editor and search for “PostUtils” and change it to “Utils”

#from PathScripts import PostUtils
#from PathScripts import PathUtils

from PathScripts import PathUtils
import Path.Post.Utils as PostUtils

Experiment with the import path, it may require an alternate wording, but since you are using Debian one of these should work.
.

and no amount of messing with the size of the shapestring eliminates “height of box too small”, and it fails with both Vcarve and Engrave. I just want to engrave some text…

Have a look at this topic for this error
https://devtalk.freecad.org/t/creating-a-2d-path-job-for-shapestrings-fails/54797/1
The end result is that you need to give the stock a height

Thank you bmsaus4ax! That did the trick.