Job not editable once opened in AppImage or flatpak

Hello,

I have had this issue for while (so it is not new with 0.21) but have managed to get around it by using the native rpm build in Fedora 38 which works just fine. However, with the update to Fedora 39, some dependencies have been dropped ( https://bugzilla.redhat.com/show_bug.cgi?id=2248627 ) and a native build is no longer possible so if I want to upgrade, I need to use the AppImage/Flatpak.

So the issue that is preventing me from doing so is this:
I move from computer to computer often as my design computer is not in the same place as my workshop computer where my CNC router is. When I open an existing FreeCAD file with the AppImage from the FreeCAD site or the flatpak from Flathub, the existing Path information is present but “flattened” in that all the contents of the Job directory are outside of it now and the Job is not editable. See image:
Screenshot from 2023-11-09 12-18-55.png
When I double-click on the Job, all I get is the option to move it. I cannot drag the parts of the Job back under it and make things work.

When I open the file, the error log at the bottom is the following so it is obvious that it is not finding the modules it needs.

11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathJob’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathSetupSheet’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathStock’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathToolBit’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathToolController’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathToolBit’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathToolController’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathPocketShape’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathProfile’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathDressupHoldingTags’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathJobGui’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathSetupSheetGui’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathIconViewProvider’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathIconViewProvider’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathToolBitGui’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathToolControllerGui’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathToolBitGui’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathToolControllerGui’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathOpGui’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathOpGui’
11:49:59 Traceback (most recent call last):
File “/tmp/.mount_FreeCA1wJl7U/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.PathDressupTagGui’

Any guidance on making this work would be helpful.

Is this just a matter of paths needed in an AppImage/flatpak container/sandbox are different and I have to set things up differently?

Thanks,
/Mike

Code Restructuring - JobFixer Script

I had read that post but didn’t think it was related since I had created my paths quite recently. But I tried the JobFixer V9 script on a few of my files and it mostly worked like a charm. I guess I did get caught up by this format migration and a few may have gotten saved in a broken way while I was trying to fix them manually. For those few I assume that wiping the path job files and recreating from scratch will clear things up.

Also, the python 3.12 in Fedora 39 does not seem to like the script. Downloading and installing python3.11 and using that ran without errors.

Thanks for the pointer xemul and thanks for the script sliptonic . It saved a lot of effort.

/Mike