Giter VIP home page Giter VIP logo

freecad-snap's Introduction

freecad: Official snap package for FreeCAD

freecad

Get it from the Snap Store

About FreeCAD

FreeCAD is a parametric 3D modeler. Parametric modeling allows you to easily modify your design by going back into your model history and changing its parameters. FreeCAD is open source (LGPL license) and completely modular, allowing for very advanced extension and customization.

FreeCAD is multiplatfom, and reads and writes many open file formats such as STEP, IGES, STL and others.

Visit the upstream project: https://www.freecad.org/ and https://github.com/FreeCAD/FreeCAD/

Channels

There are three maintained channels for this snap:

  • stable contains the latest upstream release, i.e. the most recent tagged commit. Use this if you don't know what you're doing.
  • edge contains automated (daily) builds from the latest master commit. Use this to test new features. Might be unstable.
  • beta contains automated weekly promotions from edge. Use this if you want edge with fewer updates.

Apps/Commands

There are multiple apps/commands included in the snap:

  • freecad.freecad: Run FreeCAD
  • freecad.cmd: Run FreeCAD command line interface
  • freecad.pip: Install python packages for user (not system-wide). E.g. freecad.pip install py_slvs for Assembly3.

FreeCAD Link Branch by RealThunder

There's also a snap that packages the well-known experimental FreeCAD fork by RealThunder: https://snapcraft.io/freecad-realthunder Try it for some exciting new features and improvements.

freecad-realthunder

freecad-snap's People

Contributors

chennes avatar cjmayo avatar furgo16 avatar luzpaz avatar ppd avatar riqueenz avatar scarlettgatelymoore avatar yorikvanhavre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freecad-snap's Issues

Tracking VTK dependencies

With VTK 9.x we encountered several issues. It is unfortunately not as stable as VTK 8.x was. Since we don't use the new functions of VTK 9.x, we decided to stay with VTK 8.2 for the Windows (LibPack) builds. Maybe you could do the same for Snap or should it be VTK 9.x for some reasons?

Originally posted by @donovaly in #1 (comment)

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

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.

Automate reporting when experimental builds are created by having CI post to an optional open PR/ticket

Thanks to the work of ppd, we now have a more streamlined approach to build experimental builds and test them comfortably.

Re: https://github.com/FreeCAD/FreeCAD-snap/blob/master/docs/index.md#build-snaps-from-freecad-branches-or-forks

Screenshot_20220805_165835

It would be sweet if we could also functionality (add a field to the snap.yaml) that would automate posting the instructions on how to install experimental snaps to a specific ticket or PR. Currently the instructions are posted to the PR that triggers the builds, but someone needs to manually post said instructions elsewhere. I remember that TravisCI has this option where you could specify it to connect to an IRC channel and post it's results. Can we do something less fancy by just posting an open ticket/PR ?

Permission issues in python. Unable to launch sub-processes (other apps)

Is there an existing issue for this?

  • I have searched the existing issues

Version

0.20 (Release)

Full version info

[code]
OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
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)
Installed mods: 
  * 3DfindIT 1.2.0
  * slic3r-tools

[/code]

Subproject(s) affected?

None

Problem description

Running other programs using python doesn't work (permission problems). Many addons as well as python console is effected by this and this is not something addon devs can fix. FreeCad needs permissions to do this when installed via Snap on Ubuntu.

To reproduce:

# Install slic3r on ubuntu
sudo apt install slice3r 

run the following in the python console from FreeCad

>>> import subprocess
>>> subprocess.Popen('/usr/bin/slic3r')

Application fails to run. It opens successfully if run from another (non-FreeCad) python console.

A practical example of this are several addons for 3D printing that prepare and export parts in a correct format and launches them in 3D printer software.

Thanks!

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Crash when loading last update of deprecated freecad-ppd

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x430c0) [0x7fc033cc30c0]
#1  0x7fc034f0c6f7 in QLayout::addChildWidget(QWidget*) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x17
#2  0x7fc034f09e86 in QGridLayout::addWidget(QWidget*, int, int, int, int, QFlags<Qt::AlignmentFlag>) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x76
#3  /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x3b2b6f) [0x7fc03512fb6f]
#4  0x7fc035130850 in QMessageBox::setIcon(QMessageBox::Icon) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x40
#5  0x7fc035131275 in QMessageBox::changeEvent(QEvent*) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xd5
#6  /snap/freecad-ppd/274/usr/lib/python3/dist-packages/PySide2/QtWidgets.cpython-38-x86_64-linux-gnu.so(+0x4a06c3) [0x7fc0076db6c3]
#7  0x7fc034f2dc14 in QWidget::event(QEvent*) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1a4
#8  0x7fc03512e383 in QMessageBox::event(QEvent*) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x13
#9  /snap/freecad-ppd/274/usr/lib/python3/dist-packages/PySide2/QtWidgets.cpython-38-x86_64-linux-gnu.so(+0x4a24a3) [0x7fc0076dd4a3]
#10  0x7fc034eeadc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x83
#11  0x7fc034ef3bb8 in QApplication::notify(QObject*, QEvent*) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1a8
#12  0x7fc036743708 in Gui::GUIApplication::notify(QObject*, QEvent*) from /snap/freecad-ppd/274/usr/lib/libFreeCADGui.so+0x88
#13  0x7fc03436c19a in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x12a
#14  0x7fc034ef0839 in QApplication::setStyle(QStyle*) from /snap/freecad-ppd/274/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x409
#15  0x7fc0366a9dc9 in Gui::Application::setStyleSheet(QString const&, bool) from /snap/freecad-ppd/274/usr/lib/libFreeCADGui.so+0x619
#16  0x7fc0366ab5d3 in Gui::Application::runApplication() from /snap/freecad-ppd/274/usr/lib/libFreeCADGui.so+0x13b3
#17  /snap/freecad-ppd/274/usr/bin/FreeCAD(+0x70e8) [0x561965f1e0e8]
#18  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fc033ca40b3]
#19  /snap/freecad-ppd/274/usr/bin/FreeCAD(+0x748e) [0x561965f1e48e]

Updated, acknowledged deprecation notice, splash screen completes and then crash

Image open and import fails

Is there an existing issue for this?

  • I have searched the existing issues

Forums discussion

Cannot import pictures

Version

0.20 (Release)

Full version info

[code]
OS: Ubuntu Core 20 (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29177 +233 (Git) Snap 245
Build type: Release
Branch: tag: 0.20.1
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: German/Germany (de_DE)
[/code]

Subproject(s) affected?

No response

Issue description

Hello,

first of all thanks a lot for developing and maintaining FreeCAD! Great job :-)

Unfortunately I have a problem importing images in the Image workbench. According to this or this tutorial video, I should be able to view or import pictures from the Image workbench without further preparation. But when I press the respective buttons, it has no effect. Namely, the commands show up in the Python console (see screenshot 1), but no file selection box opens. What am I missing?

I am using Xubuntu 20.04.5 (amd64) and FreeCAD 0.20.1 installed via system Snap-Store. So nothing funny there. If you need more information, just let me know.

Some more observations:

  • the built-in self-test (freecad --run-test 0 &> test_output.txt) finds 39 errors (see screenshot 2 and attached output). I fail to find anything related to image import, but I may be wrong
  • in this video (see 3:15), importing an image creates an ImagePlane object. This doesn't happen on my system

Thanks again for your support and have a great day!

Georg

Anything else?

Bug_import
Bug_self-test
test_output.txt

Code of Conduct

  • I agree to follow this project's Code of Conduct

How to call with Python?

I have successfully installed freecad with snap, but I can't call it with Python.
Errors are reported as follows:
ImportError: libFreeCADApp.so: cannot open shared object file: No such file or directory

Add 'Snap' to FreeCAD 'About' info

Something that I've noticed that I was wondering is possible...?

In the About info, it would be nice to indicate that we're using a Snap package + bonus name of the channel we're using (stable, beta, edge, misc-experimental). Is that something we can do?

Snap Store upload fails: This login method is not longer supported

 Traceback (most recent call last):
  File "/snap/snapcraft/7664/bin/snapcraft", line 8, in <module>
    sys.exit(run())
  File "/snap/snapcraft/7664/lib/python3.8/site-packages/snapcraft/cli.py", line 179, in run
    dispatcher.run()
  File "/snap/snapcraft/7664/lib/python3.8/site-packages/craft_cli/dispatcher.py", line 406, in run
    return self._loaded_command.run(self._parsed_command_args)
  File "/snap/snapcraft/7664/lib/python3.8/site-packages/snapcraft/commands/upload.py", line 89, in run
    client.verify_upload(snap_name=snap_name)
  File "/snap/snapcraft/7664/lib/python3.8/site-packages/snapcraft/commands/store/client.py", line 344, in verify_upload
    self.request(
  File "/snap/snapcraft/7664/lib/python3.8/site-packages/snapcraft/commands/store/client.py", line 217, in request
    return self.store_client.request(*args, **kwargs)
  File "/snap/snapcraft/7664/lib/python3.8/site-packages/craft_store/ubuntu_one_store_client.py", line 137, in request
    self._refresh_token()
  File "/snap/snapcraft/7664/lib/python3.8/site-packages/craft_store/ubuntu_one_store_client.py", line 70, in _refresh_token
    macaroons = json.loads(self._auth.get_credentials())
  File "/snap/snapcraft/7664/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/snap/snapcraft/7664/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/snap/snapcraft/7664/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This login method is not longer supported      

https://github.com/FreeCAD/FreeCAD-snap/runs/6891164630

Build reporting `libpsm-infinipath1` should be added to .yaml but it's already there

Per https://github.com/FreeCAD/FreeCAD-snap/runs/7169358403?check_suite_focus=true#step:6:13721

The 'freecad' part is missing libraries that are not included in the snap or base. They can be satisfied by adding the following entries to the existing stage-packages for this part:
- libpsm-infinipath1

But libpsm-infinipath1 already exists

- libpsm-infinipath1

So I'm confused as to what's the issue?

Preparing for Qt6

Even though v0.20 will still support min version of Qt 5.9 I just wanted to put on the radar that the team is discussing support for Qt6, FWIW

Mirroring the ticket on Flatpak

SpaceMouse Support

I had problems getting my SpaceMouse working with the FreeCAD snap.
According to the instructions I should copy my ~/.Xauthority file, but I did not have that file...

After some investigation I understood that it should work without X11 permissions, instead using the UNIX domain socket /run/spnav.sock.

After some digging I come to the conclusion that I can get it to work by adding the /run/spnav.sock rw, to /var/lib/snapd/apparmor/profiles/snap.freecad.freecad. As I understands it /etc/spnavrc r, should also be added to get configuration management fully working.

I have no previous knowledge regarding snaps, so I have no clue how one could add that to the snap.

Hope this information might be helpful making the SpaceMouse just work for end users.

Track strategy

https://snapcraft.io/docs/channels

Snaps are release to channels, which have the format <track>/<risk>/<branch>.
The default track is latest, which is what we're using for the current stable release as latest/stable.

It is possible to request more tracks, which is commonly used to release multiple supported stable versions.
For FreeCAD, this could mean creating a 0.19 track which retains the 0.19.4 release when latest inevitably switches to the new 0.20 release.

Is that something we possibly want and can support?

error on: raise SystemExit()

Hi, I have a few raise SystemExit() calls in my macro code, but since I started to use the snap I get: <class 'TypeError'>: bad argument type for built-in operation. Is there a simple way to resolve this?

Method to limit known cmake warnings in daily build less verbose ?

ref: https://github.com/FreeCAD/FreeCAD-snap/actions/runs/5127557766/jobs/9223324235#step:4:5125


=================================================
Now run 'cmake --build /home/runner/work/FreeCAD-snap/FreeCAD-snap/parts/freecad/build' to build FreeCAD
=================================================

CMake Warning at src/Base/CMakeLists.txt:381 (add_library):
  Cannot generate a safe runtime search path for target FreeCADBase because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/App/CMakeLists.txt:316 (add_library):
  Cannot generate a safe runtime search path for target FreeCADApp because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Main/CMakeLists.txt:48 (add_executable):
  Cannot generate a safe runtime search path for target FreeCADMain because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Main/CMakeLists.txt:77 (add_executable):
  Cannot generate a safe runtime search path for target FreeCADMainCmd
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Main/CMakeLists.txt:121 (add_library):
  Cannot generate a safe runtime search path for target FreeCADMainPy because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Main/CMakeLists.txt:146 (add_library):
  Cannot generate a safe runtime search path for target FreeCADGuiPy because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Draft/App/CMakeLists.txt:34 (add_library):
  Cannot generate a safe runtime search path for target DraftUtils because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Fem/App/CMakeLists.txt:199 (add_library):
  Cannot generate a safe runtime search path for target Fem because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libm.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libSM.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libICE.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libX11.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXext.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXt.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/9 may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Fem/Gui/CMakeLists.txt:365 (add_library):
  Cannot generate a safe runtime search path for target FemGui because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libm.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libSM.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libICE.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libX11.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXext.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXt.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/9 may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Import/App/CMakeLists.txt:77 (add_library):
  Cannot generate a safe runtime search path for target Import because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Import/Gui/CMakeLists.txt:39 (add_library):
  Cannot generate a safe runtime search path for target ImportGui because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Inspection/App/CMakeLists.txt:45 (add_library):
  Cannot generate a safe runtime search path for target Inspection because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Inspection/Gui/CMakeLists.txt:58 (add_library):
  Cannot generate a safe runtime search path for target InspectionGui because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Mesh/App/CMakeLists.txt:411 (add_library):
  Cannot generate a safe runtime search path for target Mesh because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Mesh/Gui/CMakeLists.txt:171 (add_library):
  Cannot generate a safe runtime search path for target MeshGui because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/MeshPart/App/CMakeLists.txt:79 (add_library):
  Cannot generate a safe runtime search path for target MeshPart because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libm.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libSM.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libICE.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libX11.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXext.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXt.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/MeshPart/App/CMakeLists.txt:109 (add_library):
  Cannot generate a safe runtime search path for target flatmesh because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libm.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libSM.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libICE.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libX11.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXext.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXt.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/MeshPart/Gui/CMakeLists.txt:85 (add_library):
  Cannot generate a safe runtime search path for target MeshPartGui because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libm.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libSM.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libICE.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libX11.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXext.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libXt.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Part/App/CMakeLists.txt:571 (add_library):
  Cannot generate a safe runtime search path for target Part because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Part/Gui/CMakeLists.txt:263 (add_library):
  Cannot generate a safe runtime search path for target PartGui because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/PartDesign/App/CMakeLists.txt:147 (add_library):
  Cannot generate a safe runtime search path for target PartDesign because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/PartDesign/Gui/CMakeLists.txt:264 (add_library):
  Cannot generate a safe runtime search path for target PartDesignGui because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Path/App/CMakeLists.txt:126 (add_library):
  Cannot generate a safe runtime search path for target Path because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Path/libarea/CMakeLists.txt:97 (add_library):
  Cannot generate a safe runtime search path for target area-native because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Path/libarea/CMakeLists.txt:104 (add_library):
  Cannot generate a safe runtime search path for target area because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Path/PathSimulator/App/CMakeLists.txt:44 (add_library):
  Cannot generate a safe runtime search path for target PathSimulator because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Path/Gui/CMakeLists.txt:92 (add_library):
  Cannot generate a safe runtime search path for target PathGui because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Points/App/CMakeLists.txt:64 (add_library):
  Cannot generate a safe runtime search path for target Points because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Points/Gui/CMakeLists.txt:67 (add_library):
  Cannot generate a safe runtime search path for target PointsGui because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/ReverseEngineering/App/CMakeLists.txt:81 (add_library):
  Cannot generate a safe runtime search path for target ReverseEngineering
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/ReverseEngineering/Gui/CMakeLists.txt:74 (add_library):
  Cannot generate a safe runtime search path for target ReverseEngineeringGui
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Robot/App/CMakeLists.txt:131 (add_library):
  Cannot generate a safe runtime search path for target Robot because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Robot/Gui/CMakeLists.txt:136 (add_library):
  Cannot generate a safe runtime search path for target RobotGui because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at src/Mod/Sketcher/App/CMakeLists.txt:150 (add_library):
  Cannot generate a safe runtime search path for target Sketcher because
  files in some directories may conflict with libraries in implicit
CMake Warning at src/Gui/CMakeLists.txt:1290 (add_library):
  Cannot generate a safe runtime search path for target FreeCADGui because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at tests/CMakeLists.txt:37 (add_executable):
  Cannot generate a safe runtime search path for target Tests_run because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at tests/CMakeLists.txt:43 (add_executable):
  Cannot generate a safe runtime search path for target Sketcher_tests_run
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at tests/src/Qt/CMakeLists.txt:19 (add_executable):
  Cannot generate a safe runtime search path for target
  InventorBuilder_Tests_run because files in some directories may conflict
  with libraries in implicit directories:

    runtime library [libboost_filesystem.so.1.71.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/kde-frameworks-5-99-qt-5-15-7-core20-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  tests/src/Qt/CMakeLists.txt:46 (SETUP_TESTS)

keep stable backward compatible with debian 11(snap 2.49)

Debian 11 currently has snap version 2.49. Freecad requires version 2.55, meaning it's not compatible with debian 11 anymore.
Please consider adding such bleeding-edge requirements only for --edge snaps, not for stable.

$ snap --version
snap    2.49-1+deb11u1
snapd   2.49-1+deb11u1
series  16
debian  11

missing module(s) cant find 3dmodels dir

when I try to configure kicad step up to use my kicad 3dmodels directory, it is unable to see any of the contents in the /usr directory, and I think has some permissions issue.

image

apparently, snap apps are restricted from full file system access. 🀷

image

easyw/kicadStepUpMod#145 - reference to the same issue, I updated to ubuntu 22.04 since I posted there and I am still affected.

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu-xorg)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) Snap 161
Build type: Release
Branch: tag: 0.20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * kicadStepUpMod 10.14.5
Application: KiCad

Version: 6.0.2+dfsg-1, release build

Libraries:
	wxWidgets 3.0.5
	libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.12

Platform: Linux 5.15.0-46-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu-xorg, x11

Build Info:
	Date: Feb 12 2022 09:36:02
	wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.1
	Curl: 7.81.0
	ngspice: 36
	Compiler: GCC 11.2.0 with C++ ABI 1016

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON

snap adds hidden `--user` flag when running `pip` from within FC

Gist

So there's something unusual about the copy of Python that's executing inside the FreeCAD Snap -- it doesn't operate the same way as the normal system Python. The results of the earlier testing make it seem like it has an addition hidden "--user" parameter, or something along those lines.

Background

Trying to install the new BlenderBIM workbench I ran in to some problems that @chennes has been helping me troubleshoot. For some reason the snap doesn't like installing the ifcopenshell 3rd party dependency. We opened a ticket for it at FreeCAD/FreeCAD#12967 but most of the troubleshooting happened in our DMs

At first FreeCAD would just hang: https://forum.freecadweb.org/viewtopic.php?p=635481#p635481
Chennes provided a fix to the addon manager: FreeCAD/FreeCAD#7634
Results discussion thread
image
Then we tried on the FC console: discussion thread
We then moved to DMs eventually narrowing it down to the code block below.
Important note: I was able to install via pip in my OS's CLI

$ python -m pip install --target /home/beast/snap/freecad/common/AdditionalPythonPackages ifcopenshell
Collecting ifcopenshell
  Downloading ifcopenshell-0.7.0-221014-py310-none-manylinux1_x86_64.whl (40.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.9/40.9 MB 2.2 MB/s eta 0:00:00
Installing collected packages: ifcopenshell
Successfully installed ifcopenshell-0.7.0

About info

OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.30769 (Git) Snap 396
Build type: Release
Branch: master
Hash: 1282fdb7e8a721e9b411358d68daf8921b0bf50a
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)
Installed mods: 
  * TabBar
  * ExtremeProDark 2.3.3
  * FreeCAD-BlenderBIM 2022.10.20

Reproduce

  • Start FreeCAD snap from the CLI
  • In the FreeCAD UI code console paste the following:
import subprocess
import addonmanager_utilities as utils
python_exe = utils.get_python_exe()
args = [python_exe, '-m', 'pip', 'install', '--disable-pip-version-check', '--target', '/home/beast/snap/freecad/common/AdditionalPythonPackages', 'ifcopenshell']
try:
    proc = subprocess.run(args, check=True)
except Exception as e:
    print(e)

Result: This will error out but...

  • Look at the CLI output
    Result: ERROR: Can not combine '--user' and '--target'

Notice how --user wasn't invoked at all in the args array

Future work: Arm64 build

It could work like this:

  • Create repo on Launchpad
  • Mirror GitHub repo to Launchpad
  • Set up snap recipe(s) on Launchpad

Or like this:

What needs to be solved:

  • Having the builds on GitHub Actions is nice and transparent. Launchpad complicates stuff.
  • How do we get feedback for those builds back into this repo?

Example in the wild: https://code.launchpad.net/~ubuntu-desktop/gnome-sdk/+git/gnome-sdk

Snap: Add pycollada to snapcraft

the export to .dae functionality for FreeCAD requires collada from pycollada. Can y'all add pycollada to the snapcraft? I learned you can install it with freecad.pip, but I had to find this repo before I found that out.

Feature: Trigger builds (edge/experimental) via some sort of github bot

It would be great to be able to automate some of the following redundant tasks:

  • Trigger an 'edge' build from within the FreeCAD issue queues using a trigger word
  • Trigger a 'Publish to Branch' build from within the FreeCAD issue queues using a trigger word
  • Have a bot listen for commits made to a PR or specific FreeCAD cloned repo and generate a new build for each new commit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.