khimaros / freecad-build Goto Github PK
View Code? Open in Web Editor NEWbuild tools for FreeCAD based CAD projects, including Git diff integration and headless part export
License: GNU General Public License v3.0
build tools for FreeCAD based CAD projects, including Git diff integration and headless part export
License: GNU General Public License v3.0
I'm getting the following error when I attempt to use this tool to diff two FreeCAD files
!!! failed to generate diff for /tmp/meshdiff.GzagNrvO/modified/intake.step in /tmp/meshdiff.GzagNrvO
Here's the commands I ran:
git clone https://github.com/khimaros/freecad-build.git
# main repo with old file to diff
git clone https://github.com/Eco-Libre/life-line.git
mv life-line/ eco-libre-life-line
cd eco-libre-life-line
git reset --hard e253913e2b06574ef150e16a960c00321d0d160f
cd ..
# forked repo with new file to diff
git clone https://github.com/Matterhorn777/life-line.git
mv life-line matterhorn777-life-line
cd matterhorn777-life-line
git reset --hard 362ec16ce9a9391e0a2766ea2841d9d87ef574eb
cd ..
# make step files
cd freecad-build/
./freecad-export ../eco-libre-life-line/intake.FCStd ../eco-libre-life-line/intake.step
./freecad-export ../matterhorn777-life-line/intake.FCStd ../matterhorn777-life-line/intake.step
# do diff
./freecad-diff ../eco-libre-life-line/intake.step ../matterhorn777-life-line/intake.step
Here is the complete output of the last command (with error and traceback)
user@eco-libre:~/sandbox/freecad-build$ ./freecad-diff ../eco-libre-life-line/intake.step ../matterhorn777-life-line/intake.step
>>> starting freecad-diff ../eco-libre-life-line/intake.step ../matterhorn777-life-line/intake.step
FreeCAD 0.20.2, Libs: 0.20.2R
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
### loading document /tmp/meshdiff.nUaFqGNL/previous/intake.step step
### active document
Recompute......
### finding part with label intake
### found labeled part
### found usable part Unnamed#Part__Feature Part::Feature
Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/previous.step [cannot read STEP file]
FreeCAD 0.20.2, Libs: 0.20.2R (100 %)
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
### loading document /tmp/meshdiff.nUaFqGNL/modified/intake.step step
### active document
Recompute......
### finding part with label intake
### found labeled part
### found usable part Unnamed#Part__Feature Part::Feature
Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/modified.step [cannot read STEP file]
FreeCAD 0.20.2, Libs: 0.20.2R (100 %)
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
### loading document /tmp/meshdiff.nUaFqGNL/modified.step step
Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/modified.step [cannot read STEP file]
Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/previous.step [cannot read STEP file]
Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/diff-output.step [cannot read STEP file]
!!! failed to generate diff for /tmp/meshdiff.nUaFqGNL/modified/intake.step in /tmp/meshdiff.nUaFqGNL
user@eco-libre:~/sandbox/freecad-build$
I received this error on Debian 12 using the latest version of FreeCAD available in the apt repos as of 2023-12-09
user@eco-libre:~$ cat /etc/issue
Debian GNU/Linux 12 \n \l
user@eco-libre:~$ uname -a
Linux eco-libre 6.1.62-1.qubes.fc32.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 14 07:11:33 CET 2023 x86_64 GNU/Linux
user@eco-libre:~$ sudo dpkg -l | grep -i freecad
ii freecad 0.20.2+dfsg1-4 all Extensible Open Source CAx program
ii freecad-common 0.20.2+dfsg1-4 all Extensible Open Source CAx program - common files
ii freecad-python3 0.20.2+dfsg1-4 amd64 Extensible Open Source CAx program - Python 3 binaries
ii libfreecad-python3-0.20 0.20.2+dfsg1-4 amd64 Extensible Open Source CAx program - Python 3 library files
user@eco-libre:~$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.