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 · 13 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)

@dc740
Copy link

dc740 commented May 22, 2024

Ubuntu 22.04:
Snap can't access openscad
The included openscad throws the error from this report.

I tried to compile freecad from source, since most dependencies were available, but there is ONE exception, which is VTK. You need version 7. Version 9 is available but not installable (broken -dev dependencies) and finally, version 7 does not compile, even after installing all the dependencies: https://discourse.vtk.org/t/vtk-7-1-1-cant-build-from-ubuntu-22-04-1-lts-aarch64/10381/3

so... long story short: you can't do things that require openscad.

@luzpaz
Copy link
Collaborator

luzpaz commented Jul 13, 2024

I tried to compile freecad from source, since most dependencies were available, but there is ONE exception, which is VTK. You need version 7. Version 9 is available but not installable (broken -dev dependencies) and finally, version 7 does not compile, even after installing all the dependencies: https://discourse.vtk.org/t/vtk-7-1-1-cant-build-from-ubuntu-22-04-1-lts-aarch64/10381/3

Re: VTK related ticket #26

@callahanp
Copy link

These errors are still present in Ubuntu 24.04
Snap version OpenScad models are not usable.
$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble

Adding snap-specific PYTHONPATH to sys.path: /home/pac1/snap/freecad/common/.local/lib/python3.8/site-packages:/snap/freecad/908/lib/python3.8/site-packages:/snap/freecad/908/usr/lib/python3/dist-packages
Qt: Session management error: Could not open network socket
connect failed: No such file or directory
inotify_add_watch(/var/lib/snapd/void) failed: (Permission denied)
It looks like you may be using a Snap version of OpenSCAD. If OpenSCAD execution fails to load the temporary file, use FreeCAD's OpenSCAD Workbench Preferences to change the transfer mechanism.
/snap/freecad/908/usr/bin/openscad: error while loading shared libraries: libQt5Gamepad.so.5: cannot open shared object file: No such file or directory

[code]
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)
[/code]

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.

8 participants