Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSCAD snap version throws error "libQt5Gamepad.so.5: cannot open shared object file" on import, works with AppImage version #51

Open
46cv8 opened this issue Aug 8, 2022 · 10 comments · Fixed by #55
Labels
blocked Waiting for some other issue to be resolved bug Something isn't working

Comments

@46cv8
Copy link

46cv8 commented Aug 8, 2022

I'm running Ubuntu 20.04 and I just installed the latest version of FreeCAD via snap.
When I attempt to import a simple scad file containing only a cube I get the following error.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/snap/freecad/161/usr/Mod/OpenSCAD/importCSG.py", line 124, in open
    tmpfile = callopenscad(filename)
  File "/snap/freecad/161/usr/Mod/OpenSCAD/OpenSCADUtils.py", line 212, in callopenscad
    check_output2([osfilename, '-o', outputfilename, inputfilename])
  File "/snap/freecad/161/usr/Mod/OpenSCAD/OpenSCADUtils.py", line 182, in check_output2
    raise OpenSCADError('%s %s\n' % (stdoutd.strip(),stderrd.strip()))
<class 'OpenSCADUtils.OpenSCADError'>: ' /snap/freecad/161/usr/bin/openscad: error while loading shared libraries: libQt5Gamepad.so.5: cannot open shared object file: No such file or directory\n'

This is working on the AppImage version (albeit it was getting a different error until I applied the patch mentioned in FreeCAD/FreeCAD-Bundle#107) I mentioned the snap version seemed broken with a different error and they asked I open an issue here.

@ppd
Copy link
Collaborator

ppd commented Aug 8, 2022

Thank you. I'll look into it.

@ppd
Copy link
Collaborator

ppd commented Aug 9, 2022

libqt5gamepad5 is not available any more in the neon archives for 5.15.3. We'll have to wait for the extension to update to Qt 5.15.5.

@ppd ppd added bug Something isn't working blocked Waiting for some other issue to be resolved labels Aug 9, 2022
@46cv8
Copy link
Author

46cv8 commented Aug 9, 2022

@ppd thanks for looking into it, feel free to close the issue or do whatever you want with this, I am happily using the AppImage version for now.

ppd added a commit that referenced this issue Aug 30, 2022
ppd added a commit that referenced this issue Sep 2, 2022
ppd added a commit that referenced this issue Sep 2, 2022
@ppd ppd closed this as completed in #55 Sep 2, 2022
ppd added a commit that referenced this issue Sep 2, 2022
@sophana
Copy link

sophana commented May 5, 2023

Hi, I'm still seeing libQt5Gamepad.so.5 not found error when using openscad with snap from 2022-12-31

@luzpaz luzpaz reopened this May 5, 2023
@luzpaz
Copy link
Collaborator

luzpaz commented May 5, 2023

Full About info please

@sophana
Copy link

sophana commented May 5, 2023

/snap/freecad/517/usr/bin/openscad: error while loading shared libraries: libQt5Gamepad.so.5: cannot open shared object file: No such file or directory
OS: Ubuntu Core 20 (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git) Snap 517
Build type: Release
Branch: tag: 0.20.2
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United States (en_US)

I tried using appImage, it is not better. Where to report?

Traceback (most recent call last):
  File "/tmp/.mount_FreeCAfhL3In/usr/Mod/OpenSCAD/OpenSCADCommands.py", line 423, in loadelement
    filename, filter = QtGui.QFileDialog.getOpenFileName(parent=self.form, caption='Open file', dir='.', filter='OpenSCAD Files (*.scad)',selectedFilter='',option=0)
AttributeError: PySide2.QtWidgets.QFileDialog.getOpenFileName(): unsupported keyword 'option'
OS: Ubuntu 20.04.6 LTS (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)

@luzpaz
Copy link
Collaborator

luzpaz commented Jun 7, 2023

@sophana AppImage reports go to https://github.com/FreeCAD/FreeCAD-Bundle/issues

@luzpaz
Copy link
Collaborator

luzpaz commented Aug 12, 2023

@sophana can you check the latest v0.21 Snap ?

@LinuxMaster393
Copy link

I just encountered this error myself when running v0.21.1 on Ubuntu 22.04 installed from Snap. However, OpenSCAD installed from either Snap or apt doesn't have this error.

@lifeisafractal
Copy link

lifeisafractal commented Feb 4, 2024

I have this issue running v0.21.2 installed via snap on Ubuntu 23.10.

(edit) add version about info

OS: Ubuntu Core 20 (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.2.33771 (Git) Snap 908
Build type: Release
Branch: tag: 0.21.2
Hash: b9bfa5c5507506e4515816414cd27f4851d00489
Python 3.8.10, Qt 5.15.7, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United States (en_US)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Waiting for some other issue to be resolved bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants