Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
859
views
How to `import FreeCAD` in CLI (python)
How can I `import FreeCAD` from the python console? I'm trying to write a script that can manipulate a given FreeCAD file, but I can't even get FreeCAD imported into the python console on a system where FreeCAD is installed. ``` user@disp7637:~$ sudo dpkg -l | grep -i freecad ii freecad 0.19.1+dfsg1...
How can I
import FreeCAD
from the python console?
I'm trying to write a script that can manipulate a given FreeCAD file, but I can't even get FreeCAD imported into the python console on a system where FreeCAD is installed.
user@disp7637:~$ sudo dpkg -l | grep -i freecad
ii freecad 0.19.1+dfsg1-2+deb11u1 all Extensible Open Source CAx program
ii freecad-common 0.19.1+dfsg1-2+deb11u1 all Extensible Open Source CAx program - common files
ii freecad-python3 0.19.1+dfsg1-2+deb11u1 amd64 Extensible Open Source CAx program - Python 3 binaries
ii libfreecad-python3-0.19 0.19.1+dfsg1-2+deb11u1 amd64 Extensible Open Source CAx program - Python 3 library files
user@disp7637:~$
user@disp7637:~$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import FreeCAD
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'FreeCAD'
>>> import freecad
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'freecad'
>>>
I am running Debian 11
user@disp7637:~$ cat /etc/issue
Debian GNU/Linux 11 \n \l
user@disp7637:~$
How can I import FreeCAD
in the python console?
Michael Altfield
(382 rep)
Aug 16, 2023, 01:05 PM
• Last activity: Aug 17, 2023, 03:05 PM
5
votes
2
answers
1631
views
On Screen Protractor
A handy program for measuring the pixel dimensions of something on-screen is screen ruler: sudo apt install screenruler ; screenruler I like how you can place it anywhere on your screen and it stays on top of all other applications as you use it. I'm hoping to find something similar to this that's a...
A handy program for measuring the pixel dimensions of something on-screen is screen ruler:
sudo apt install screenruler ; screenruler
I like how you can place it anywhere on your screen and it stays on top of all other applications as you use it.
I'm hoping to find something similar to this that's a protractor instead of a ruler.
I searched for "protractor" in the repository of Debian 11 and got no results:
sudo apt-cache search "protractor"
Such a tool would be great for measuring angles on-screen. However, ultimately, I will likely need something that can actually draw a line based on a specified angle.
Hopefully I won't have to learn something as sophisticated as AutoCad in order to accomplish this. What's the simplest way to measure and draw angles in Linux?
Lonnie Best
(5415 rep)
Nov 15, 2022, 03:58 PM
• Last activity: Jun 12, 2023, 11:09 AM
1
votes
1
answers
835
views
Pacman: opencascade74 and opencascade are in conflict while upgrading
when I run `sudo pacman -Syu` pacman throws this error: ``` :: Synchronizing package databases... core is up to date extra is up to date community-testing is up to date community is up to date multilib is up to date :: Starting full system upgrade... resolving dependencies... looking for conflicting...
when I run
sudo pacman -Syu
pacman throws this error:
:: Synchronizing package databases...
core is up to date
extra is up to date
community-testing is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: opencascade74 and opencascade are in conflict
I tried to clear cache with sudo pacman -Sc
but error remains
When I try to remove opencascade
package but:
sudo pacman -R opencascade
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing opencascade breaks dependency 'opencascade' required by freecad
How can I get around this error to upgrade my system ?
Jan Černý
(1723 rep)
Nov 23, 2020, 11:04 AM
• Last activity: Nov 30, 2020, 02:23 AM
1
votes
3
answers
6656
views
How to make FreeCAD utilize multiple cores?
I am currently on a modified version of Debian-standard, jessie, using xfce and LightDM with some AMD drivers for the GPU. But my issues are that I am using an 8 core AMD FX 8320, all cores are being detected and are running fine in Linux, but for some reason FreeCAD is only using one (not even enti...
I am currently on a modified version of Debian-standard, jessie, using xfce and LightDM with some AMD drivers for the GPU. But my issues are that I am using an 8 core AMD FX 8320, all cores are being detected and are running fine in Linux, but for some reason FreeCAD is only using one (not even entirely) to load a small file. I was thinking maybe if it could utilize multiple cores on my system then it could load the 1.4 MB DAE file without halting the system and taking more than an hour?
Other specs that may be useful?:
- 8GB 1600mhz DDR3 RAM
- A not-so-great ASRock motherboard.
- 1TB HDD.
user288937
(11 rep)
Jan 22, 2016, 02:17 AM
• Last activity: Jul 8, 2019, 03:18 PM
1
votes
0
answers
44
views
Launch a program to only specific resources
Question: -- How can I launch a program such that it only uses X ram and Y CPU cores, etc? I happen to be using Ubuntu in this case, but since I often am on other distros, I need a general GNU/Linux solution. Example use: -- I have a program, openscad, which I want to use to convert an image from 2D...
Question:
--
How can I launch a program such that it only uses X ram and Y CPU cores, etc? I happen to be using Ubuntu in this case, but since I often am on other distros, I need a general GNU/Linux solution.
Example use:
--
I have a program, openscad, which I want to use to convert an image from 2D to 3D. It runs snappy enough on 50x50, but I would like 500x500, and this effectively takes down an i7 such that I cannot use other programs easily - such as the file manager or firefox. On an older machine, it was basically only responsive to kernel level reboot not even switching to a different virtual terminal with F1 etc.
Search so far:
--
I think what I am looking for is something called a "quota" manager, but I keep finding stuff for hard disk space, and I just want the computer to remain usable. I'm not sure exactly what I'm looking for but I know its effect. I found : https://unix.stackexchange.com/questions/417506/what-is-the-effect-of-setting-cpu-cpu-quota-us-in-cpu-cgroup but it is unanswered - although it points to my solution maybe?
wblan
(11 rep)
Dec 9, 2018, 02:43 AM
• Last activity: Dec 9, 2018, 02:45 AM
2
votes
1
answers
190
views
Starting with CAD on linux
I would like to do some CAD work on Linux (Fedora). I have no experience in CAD, so I have to learn it from scratch. Do you know an CAD Tool for Linux which is easy to use? I prefer an easy tool over a fully functional, jack of all trades program.
I would like to do some CAD work on Linux (Fedora).
I have no experience in CAD, so I have to learn it from scratch. Do you know an CAD Tool for Linux which is easy to use? I prefer an easy tool over a fully functional, jack of all trades program.
user3820836
(21 rep)
Jun 24, 2015, 10:55 AM
• Last activity: Jul 8, 2015, 11:34 PM
Showing page 1 of 6 total questions