Realthunder's Link branch Snap packages

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
ppd
Posts: 105
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Assembly3 preview

Post by ppd »

bambuko wrote: Tue Jan 25, 2022 9:01 am Is it possible to have snap and apimage (of the same version of FreeCAD) on the same machine? without causing problems
i.e. I have already apimage installed - do I have to uninstall it before I try snap version?
You can have both of them installed at the same time, they don't interfere. Snaps keep their configuration in a dedicated directory and don't have access to hidden directories in your home folder. You can even install multiple versions of the same snap at the same time, e.g. the stable version and the daily builds.
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly3 preview

Post by bambuko »

That's great - thank you!
What is this directory? and I presume it applies to macro directory as well?
It would be good to explain it to potential users of snap?
User avatar
ppd
Posts: 105
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Assembly3 preview

Post by ppd »

The directory for all FreeCAD stuff is $SNAP_USER_COMMON, which translates to $HOME/snap/freecad-ppd/common.

The stable version (0.19.3) creates .FreeCAD in this directory, where you can find all the usual subdirectories:
Screenshot from 2022-01-25 10-44-13.png
Screenshot from 2022-01-25 10-44-13.png (22.76 KiB) Viewed 1264 times
Do you need to interact with those directories directly? How would you explain it to users? This discussion should probably move to another thread though.
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly3 preview

Post by bambuko »

ppd wrote: Tue Jan 25, 2022 9:48 am Do you need to interact with those directories directly? How would you explain it to users? This discussion should probably move to another thread though.
Thank you!
and and the answers are:
yes - I need to interact with these directories when installing (for example) macros
yes - I need access to (for example) create config backup?
BTW - if I have more than one version of snap how do I share commong config settings?
yes - it would be good to have a thread (install subforum?) dedicated to handling snaps
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly3 preview

Post by bambuko »

chrisb wrote:...ping...
Can you please, (or anybody else who can do it?) separate last 14 posts into a dedicated topic (install FreeCAD with snap), probably in the install subforum?

They apply both to Link branch and Master branch equally (both are available in snap) and do not belong here in Assembly 3 thread...

Master: https://snapcraft.io/freecad-ppd
Realthunder: https://snapcraft.io/freecad-realthunder
User avatar
Kunda1
Veteran
Posts: 12702
Joined: Thu Jan 05, 2017 9:03 pm

Re: Realthunder's Link branch Snap packages

Post by Kunda1 »

Mod edit: Split in to Realthunder's Link branch Snap packages and moved to the Packaging subforum
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post by bambuko »

I have asked this question on Realthunder's Github, so this is just a copy in case someone can help me here? please
What am I doing wrong?

Code: Select all

bambuko@Z97MD3Hcd5bddbb://snap/bin$ ls -l
total 0
lrwxrwxrwx 1 root root 13 Jan 25 15:23 freecad-realthunder -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 25 15:23 freecad-realthunder.cmd -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 25 15:23 freecad-realthunder.pip -> /usr/bin/snap
bambuko@Z97MD3Hcd5bddbb://snap/bin$ freecad-realthunder.pip install py_slvs for Assembly3
Collecting py_slvs
  Downloading py_slvs-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (293 kB)
     |████████████████████████████████| 293 kB 1.1 MB/s            
Collecting for
  Downloading for-0.0.0.0.0.0a0.dev20210120.tar.gz (972 bytes)
  Preparing metadata (setup.py) ... done
ERROR: Could not find a version that satisfies the requirement Assembly3 (from versions: none)
ERROR: No matching distribution found
User avatar
Kunda1
Veteran
Posts: 12702
Joined: Thu Jan 05, 2017 9:03 pm

Re: Realthunder's Link branch Snap packages

Post by Kunda1 »

The command is freecad-realthunder.pip install py_slvs (without the for Assembly3) ;)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
ppd
Posts: 105
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Realthunder's Link branch Snap packages

Post by ppd »

Assembly3 has an install dialog for py_slvs included nowadays. No need to use the terminal.
bambuko wrote: Tue Jan 25, 2022 9:58 am BTW - if I have more than one version of snap how do I share commong config settings?
Maybe set FREECAD_USER_DATA to the same directory for all? Somewhere in the home folder, where the snaps have access, i.e. not in hidden directories.
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
bambuko
Veteran
Posts: 1549
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post by bambuko »

Kunda1 wrote: Tue Jan 25, 2022 4:02 pm ...(without the for Assembly3) ;)
if you dumb you suffer :lol: sorry and thank you!
Post Reply