View Issue Details

IDProjectCategoryView StatusLast Update
0004343FreeCADPatchpublic2021-03-13 17:55
Reporterdenns Assigned Tolooo  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version0.18 
Target Version0.20 
Summary0004343: OpenSCAD broken with AppImage
Description




Attempting to use OpenSCAD features results in the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/denns/tmp/freecadapp/squashfs-root/usr/Mod/OpenSCAD/importCSG.py", line 105, in insert
    tmpfile=callopenscad(filename)
  File "/home/denns/tmp/freecadapp/squashfs-root/usr/Mod/OpenSCAD/OpenSCADUtils.py", line 179, in callopenscad
    check_output2([osfilename,'-o',outputfilename, inputfilename])
  File "/home/denns/tmp/freecadapp/squashfs-root/usr/Mod/OpenSCAD/OpenSCADUtils.py", line 158, in check_output2
    raise OpenSCADError('%s %s\n' % (stdoutd.strip(),stderrd.strip()))
<class 'OpenSCADUtils.OpenSCADError'>: " /usr/bin/openscad: /home/denns/tmp/freecadapp/squashfs-root/usr/lib/libQt5Core.so.5: version `Qt_5.14' not found (required by /usr/bin/openscad)\n/usr/bin/openscad: /home/denns/tmp/freecadapp/squashfs-root/usr/lib/libQt5Core.so.5: version `Qt_5.13' not found (required by /usr/lib/libqscintilla2_qt5.so.15)\n"

This is caused by a mismatch between the version of QT in the AppImage and the version used by OpenSCAD (outside of the AppImage). It can be fixed by unsetting LD_LIBRARY_PATH in prior to calling OpenSCAD.
Steps To ReproduceImport an OpenSCAD file with the AppImage release of OpenSCAD. Tested on Arch linux with 0.18.
Additional InformationForum discussion: https://forum.freecadweb.org/viewtopic.php?t=40848

Patch for 0.18 (tested working for me):

148c148,153
<         kwargs.update({'stdout':subprocess.PIPE,'stderr':subprocess.PIPE})
---
>         env = os.environ.copy()
>         try:
>             env.pop('LD_LIBRARY_PATH')
>         except KeyError:
>             None
>         kwargs.update({'stdout':subprocess.PIPE,'stderr':subprocess.PIPE,'env':env})

Patch for git master:

157c157,162
<         kwargs.update({'stdout':subprocess.PIPE,'stderr':subprocess.PIPE})
---
>         env = os.environ.copy()
>         try:
>             env.pop('LD_LIBRARY_PATH')
>         except KeyError:
>             None
>         kwargs.update({'stdout':subprocess.PIPE,'stderr':subprocess.PIPE,'env':env})
Tags#lowhangingfruit, appimage, OpenSCAD, packaging
FreeCAD InformationOS: Arch Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16146 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.18.4)
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Activities

Kunda1

2021-02-25 19:40

administrator   ~0015436

@denns sorry about neglecting this. Not sure what happened is this still an issue that requires this patch?

Kunda1

2021-02-25 19:51

administrator   ~0015437

opened ticket on https://github.com/FreeCAD/FreeCAD-AppImage/issues/56

Kunda1

2021-03-13 17:55

administrator   ~0015505

What's blocking is a missing openscad package on conda. Anyone willing to create one?

Issue History

Date Modified Username Field Change
2020-05-14 20:46 denns New Issue
2021-02-06 06:49 abdullah Target Version => 0.20
2021-02-25 19:40 Kunda1 Note Added: 0015436
2021-02-25 19:51 Kunda1 Note Added: 0015437
2021-02-25 19:58 Kunda1 Assigned To => looo
2021-02-25 19:58 Kunda1 Status new => assigned
2021-03-13 17:44 Kunda1 Tag Attached: OpenSCAD
2021-03-13 17:44 Kunda1 Tag Attached: appimage
2021-03-13 17:55 Kunda1 Note Added: 0015505
2021-03-13 17:55 Kunda1 Tag Attached: packaging
2021-03-13 17:55 Kunda1 Tag Attached: #lowhangingfruit