Search found 26 matches

by 0xCoto
Wed Jul 12, 2023 9:52 pm
Forum: Install / Compile
Topic: Installing FreeCAD with Conda gets stuck at "Solving environment"
Replies: 2
Views: 1212

Installing FreeCAD with Conda gets stuck at "Solving environment"

Followed all instructions on the wiki and README for Linux on a fresh machine, but it gets stuck at "Solving environment" : $ conda create -n fc_test freecad Collecting package metadata (current_repodata.json): done Solving environment: unsuccessful attempt using repodata from current_repo...
by 0xCoto
Wed Mar 08, 2023 2:24 pm
Forum: Install / Compile
Topic: Using CLI-Docker as non-root user
Replies: 2
Views: 1351

Re: Using CLI-Docker as non-root user

@manuel-buchner @marius Any luck with this?
by 0xCoto
Wed Mar 08, 2023 6:12 am
Forum: Install / Compile
Topic: Installing on RHEL for Python scripting
Replies: 3
Views: 516

Re: Installing on RHEL for Python scripting

adrianinsaval wrote: Tue Mar 07, 2023 11:59 am Does the same happen if you use the appimage? You could try the snap or flatpak versions too
If I install it using the AppImage, how would I import FreeCAD in Python? And where would I point sys.path.append("???")
by 0xCoto
Tue Mar 07, 2023 3:49 am
Forum: Install / Compile
Topic: Installing on RHEL for Python scripting
Replies: 3
Views: 516

Installing on RHEL for Python scripting

We're looking to install FreeCAD on Amazon Linux ( https://aws.amazon.com/amazon-linux-2 ) in order to run a Python snippet on AWS Lambda ( https://aws.amazon.com/lambda ). In case you're unfamiliar with Amazon Linux, it's essentially based on Red Hat Enterprise Linux. The only solution we've found ...
by 0xCoto
Sat Dec 10, 2022 5:29 pm
Forum: Python scripting and macros
Topic: Read txt content of STEP file instead of filename
Replies: 5
Views: 983

Re: Read txt content of STEP file instead of filename

Depends how much files you have to read. Maybe there is some time saving possibility. Thanks for your input, I'll only be dealing with a single STEP file of relatively small size (simple model, nothing too fancy). I'm not familiar with Brep, could you please give an example of how you'd do such STE...
by 0xCoto
Sat Dec 10, 2022 2:50 pm
Forum: Python scripting and macros
Topic: Read txt content of STEP file instead of filename
Replies: 5
Views: 983

Read txt content of STEP file instead of filename

I am currently using Import.insert(step_filename, "Unnamed") to import a STEP file from disk, and this works fine. However, because I am building an API that takes the txt content of the STEP file as an input, I would rather not have to read/write from/to the disk for this application. Is ...
by 0xCoto
Sat Dec 10, 2022 4:53 am
Forum: Python scripting and macros
Topic: import FreeCAD disables output globally?
Replies: 14
Views: 1489

Re: import FreeCAD disables output globally?

wmayer wrote: Fri Dec 09, 2022 4:04 pm So, all what you have to do is disabling them in line 811, 821, 832, 842, 853 and 863.
Would that mean that I'd have to intervene and make changes to the source code, or can I configure this "separately" in Python?
by 0xCoto
Fri Dec 09, 2022 1:11 pm
Forum: Python scripting and macros
Topic: import FreeCAD disables output globally?
Replies: 14
Views: 1489

Re: import FreeCAD disables output globally?

I have tested it with the current developer version, not with 0.19. I will have a look... I can confirm that in 0.19 it doesn't work because the "Console" observer is not instantiated when loading FreeCAD as Python module. This once was fixed with 377b01b4b4ab . So, the minimum version yo...
by 0xCoto
Fri Dec 09, 2022 10:28 am
Forum: Python scripting and macros
Topic: import FreeCAD disables output globally?
Replies: 14
Views: 1489

Re: import FreeCAD disables output globally?

Also tried a minimum reproducible example, but I can't seem to reproduce your case: https://i.gyazo.com/9ccedfc1e2fa586db5422dba446e701b.png My suspicion is that "Console" might not be the exact "console name" or "identifier" it picks up when being run from the terminal...