Discussion: State of the snap (Snap Packaging)

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by vocx »

vejmarie wrote: Tue Aug 18, 2020 2:21 am Just updated it.
See a problem here, Libblas.so.3.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Discussion: State of the snap (Snap Packaging)

Post by vejmarie »

Thanks I will update that. The lib is probably missing from the build
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

This doesn't look right:
FreeCAD-Snap-downloads-edge.png
FreeCAD-Snap-downloads-edge.png (188.21 KiB) Viewed 5553 times
source: https://snapcraft.io/freecad
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
ressu
Posts: 3
Joined: Tue Oct 27, 2020 11:00 pm

Re: Addon manager not working in v0.19 beta snap

Post by ressu »

vejmarie wrote: Tue Aug 18, 2020 2:20 am
JulianStirling wrote: Thu Jul 23, 2020 8:17 am I have installed the beta of v0.19 as I wanted to play with Assembly 4. I am on Kubuntu 20.04 so I can't the freecad-daily PPA. So I have installed with snap.

When I open the add-on manager I can see all the packages, but if I click to "Install selected" the program hangs at "Cloning module". There is no output in the terminal.
Can you check in your home directory if you have a .snap directory ? If yes what are the write permissions ? I can install Assembly4 with the snap (I am using it with my build for CADCloud).
I'm trying to use the snap to install addons too and I keep seeing the error

Code: Select all

git.exc.GitCommandError: 'git clone --branch=master -v https://github.com/Zolko-123/FreeCAD_Assembly4 /home/ressu/snap/freecad/18/.FreeCAD//Mod/Assembly4' returned with exit code 128
stderr: 'Cloning into '/home/ressu/snap/freecad/18/.FreeCAD//Mod/Assembly4'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'
So there are parts missing from the snap for properly working with the addons
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Discussion: State of the snap (Snap Packaging)

Post by vejmarie »

that is weird because it did work on my system. Can you check if you have git installed ? The path reported are the right one by the way which is good.
mdschiller
Posts: 2
Joined: Thu Nov 12, 2020 2:07 am

Re: Discussion: State of the snap (Snap Packaging)

Post by mdschiller »

With a snap installation from the beta channel on Mint 20, I'm also unable to install Addons. Well, at least the Assembly4 addon.

The Addon Manager is able to show the description of Assembly4, but installation is stuck at "Cloning module".

Git is on my path. My user has write access to ~/snap.

I did not try "to use the snap to install addons too and I keep seeing the error" as I'm a bit new to snap and haven't figured out how to do that. What I can do to get Assembly4 to install is download the zip from https://github.com/Zolko-123/FreeCAD_Assembly4 and uncompress it to ~/snap/freecad/18/.FreeCAD/Mod/Assembly4. After I do that, the Assembly4 workbench loads. However, if I go into the Addon Manager and go to Assembly4, the description no longer loads. Instead, the progress bar is stuck at "Downloading info.." and the description box contains the text: "Retrieving info from https://github.com/Zolko-123/FreeCAD_Assembly4".
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Discussion: State of the snap (Snap Packaging)

Post by vejmarie »

mdschiller wrote: Thu Nov 12, 2020 2:26 am With a snap installation from the beta channel on Mint 20, I'm also unable to install Addons. Well, at least the Assembly4 addon.

The Addon Manager is able to show the description of Assembly4, but installation is stuck at "Cloning module".

Git is on my path. My user has write access to ~/snap.

I did not try "to use the snap to install addons too and I keep seeing the error" as I'm a bit new to snap and haven't figured out how to do that. What I can do to get Assembly4 to install is download the zip from https://github.com/Zolko-123/FreeCAD_Assembly4 and uncompress it to ~/snap/freecad/18/.FreeCAD/Mod/Assembly4. After I do that, the Assembly4 workbench loads. However, if I go into the Addon Manager and go to Assembly4, the description no longer loads. Instead, the progress bar is stuck at "Downloading info.." and the description box contains the text: "Retrieving info from https://github.com/Zolko-123/FreeCAD_Assembly4".
I just fixed an issue regarding that feature. I believe it shall be working now. It was working on my build system but not on a fresh installed one. It is now workig into both. Can you recheck with the beta channel one. I can successfully install Assembly4
mdschiller
Posts: 2
Joined: Thu Nov 12, 2020 2:07 am

Re: Discussion: State of the snap (Snap Packaging)

Post by mdschiller »

vejmarie wrote: Fri Nov 13, 2020 9:21 pm
mdschiller wrote: Thu Nov 12, 2020 2:26 am With a snap installation from the beta channel on Mint 20...
I just fixed an issue regarding that feature. I believe it shall be working now. It was working on my build system but not on a fresh installed one. It is now workig into both. Can you recheck with the beta channel one. I can successfully install Assembly4
With a fresh Snap installation on Mint 20, the Assembly 4 installation now works. Thanks!
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: Addon manager not working in v0.19 beta snap

Post by vejmarie »

ressu wrote: Wed Nov 11, 2020 9:05 pm
vejmarie wrote: Tue Aug 18, 2020 2:20 am
JulianStirling wrote: Thu Jul 23, 2020 8:17 am I have installed the beta of v0.19 as I wanted to play with Assembly 4. I am on Kubuntu 20.04 so I can't the freecad-daily PPA. So I have installed with snap.

When I open the add-on manager I can see all the packages, but if I click to "Install selected" the program hangs at "Cloning module". There is no output in the terminal.
Can you check in your home directory if you have a .snap directory ? If yes what are the write permissions ? I can install Assembly4 with the snap (I am using it with my build for CADCloud).
I'm trying to use the snap to install addons too and I keep seeing the error

Code: Select all

git.exc.GitCommandError: 'git clone --branch=master -v https://github.com/Zolko-123/FreeCAD_Assembly4 /home/ressu/snap/freecad/18/.FreeCAD//Mod/Assembly4' returned with exit code 128
stderr: 'Cloning into '/home/ressu/snap/freecad/18/.FreeCAD//Mod/Assembly4'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'
So there are parts missing from the snap for properly working with the addons
Hi, this issue has been fixed with latest snap beta channel.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

Can any of the snap users/maintainers comment on this PR #4110 please as it may impact packaging
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply