Hi all, thanks for all this effort. I am new to FreeCAD and to Linux (using for 1 year now). I recently updated my system to Linux Mint MATE 20.3.
I am trying to open a .DWG file (cannot share it due to property rights) and after going around the ODAFileConverter and 0.18 version of FreeCAD, I installed the daily version.
OS: Linux Mint 20.1 (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 070b5560d0cb244e9b142e7d76137ecfae3cf198
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.3.0
Locale: English/United States (en_US)
So I tried to open the .dwg directly without changing anything on FreeCAD, and by default the ODAFileConverter (which is installed) couldn't do it, I was getting the error of the Qt_5.14 version not installed, as mentioned in
this thread. I installed the 5.14.1 version of Qt, changed the version of Qt to be used, according to
this thread and I receive the following info when using the
Code: Select all
$ qmake -v
QMake version 3.1
Using Qt version 5.14.1 in /opt/Qt/5.14.1/gcc_64/lib
But the error from ODAFileConverter keeps displaying running it outside of FreeCAD:
Code: Select all
/usr/bin/ODAFileConverter_21.11.0.0/ODAFileConverter: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.14' not found (required by /usr/bin/ODAFileConverter_21.11.0.0/ODAFileConverter)
So I quit this idea and went to libredwg. Downloaded and compile the tar.gz from libredwg
webpage (version 12.1) following the instructions.
I removed the path to ODAFileConverter on the Preferences of FreeCAD, to leave just the option for libredwg, I believe.
When I open the .dwg, now it opens a window as if the document was imported and opened, but nothing shows on the board.
I get the following error on the report view:
Code: Select all
18:54:55 Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/share/freecad-daily/Mod/Draft/importDWG.py", line 80, in open
doc = importDXF.open(dxf)
File "/usr/share/freecad-daily/Mod/Draft/importDXF.py", line 2795, in open
Import.readDXF(filename)
<class 'RuntimeError'>: File doesn't exist
On the python console, I get the following:
Code: Select all
>>> import importDWG
>>> importDWG.open(u"/media/antonioferrinho/8E28B77C28B761BF/01.Diversos/Spirala/Spirala Community Home files/SITE CAD & PDF PLAN/Spirala SITE CAD.dwg")
>>> # App.setActiveDocument("Spirala_SITE_CAD")
>>> # App.ActiveDocument=App.getDocument("Spirala_SITE_CAD")
>>> # Gui.ActiveDocument=Gui.getDocument("Spirala_SITE_CAD")
>>> ### End command Std_Open
Any thoughts that might help here?
P.S:writing this post I realised that FreeCAD recognizes Qt version different from the one that is configured. Both of them are installed.