-
Notifications
You must be signed in to change notification settings - Fork 10
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
OpenCamLib missing in the snap package. #116
Comments
Moved to FreeCAD Snap repo |
Per https://packages.ubuntu.com/source/oracular/opencamlib looks like package name is https://packages.ubuntu.com/oracular/libopencamlib-2023.01 Where should I add it? FreeCAD-snap/snap/snapcraft.yaml Lines 172 to 253 in f03356c
In CC @chennes |
CC @adrianinsaval any idea? |
@luzpaz indeed, the binary package name is I'm not familiar enough with CAM, and also the bug report stating "Gives install opencamlib error" is quite vague. There are no steps to reproduce in it. But my guess is that |
Also one thing to notice is that It might be useful to see what the freecad-daily PPA does in this regard. Does OpenCamLib work there? And if so, which package does it pull as an install dependency? Update: at a quick glance, it does not seem to install it as a dependency. If it relies on users manually installing the package, does installing |
It looks like snapcraft is pulling packages from the FreeCAD-snap/snap/snapcraft.yaml Lines 125 to 135 in 5c8ccc1
In any case, given that |
Maybe we can contact the opencamlib Ubuntu package maintainers to coordinate with them ? |
can you use pip packages in snap? |
I don't think they can add it to older ubuntu versions at this stage. What could be doable is to add opencamlib to our ppa and then use that in the snap |
@adrianinsaval, yes. That's how we install ifcopenshell from PyPI in the snap. If opencamlib is there, it can easily be added to the snap.
|
And it seems it's available: https://pypi.org/project/opencamlib/ @leho-l , could you try if running this command on a terminal addresses your issue in the meantime, while a conclusion is reached on how to best include it in the package?
|
the ppa has freecad packages for 20.04, 22.04 and 24.04, but the occt incompatibility is a valid point. |
Indeed, I'm using the 22.04 PPA on my laptop and the 24.04 one on my desktop. Thanks! What I meant was that the In any case, I think using the pip package is the simplest, least effort and most robust approach. I guess something like this would do: diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 37115ef..7890198 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -290,6 +290,7 @@ parts:
- libsuitesparseconfig5 # scikit-sparse
python-packages:
- ifcopenshell # BIM
+ - opencamlib # CAM
- pip
- scikit-sparse
stage: |
Is there an existing issue for this?
Problem description
Gives install opencamlib error on opening 3d surface operation in existing older file made with 0.21.
Allso in a new file 3d surface operation doesnt seem to work.
Full version info
Subproject(s) affected?
CAM
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: