jmplonka / InventorLoader

Workbench for FreeCAD to loads or import Autodesk (R) Inventor (R) files.
GNU General Public License v2.0
119 stars 17 forks source link

Python errors when importing .ipt file #77

Open coelhoDj opened 1 year ago

coelhoDj commented 1 year ago

Couldn't open an inventor2019 ipt file. Don't know what's wrong with my Freecad version.

[code] OS: Windows 10 Version 2009 Word size of FreeCAD: 64-bit Version: 0.20.2.29177 +426 (Git) Build type: Release Branch: (HEAD detached from 0.20.2) Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8 Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3 Locale: Portuguese/Portugal (pt_PT) Installed mods:

This was what returned me:

" 22:42:30 Traceback (most recent call last): File "", line 1, in File "C:\Program Files\FreeCAD 0.20\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport__feature__.py", line 142, in _import return original_import(name, *args, kwargs) File "C:\Users\HC\AppData\Roaming\FreeCAD\Mod\InventorLoader.\importerIL.py", line 8, in import os, sys, FreeCAD, FreeCADGui, importerSAT, importerDXF, Import_IPT, importerF3D File "C:\Program Files\FreeCAD 0.20\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport__feature.py", line 142, in _import return original_import(name, *args, **kwargs) File "C:\Users\HC\AppData\Roaming\FreeCAD\Mod\InventorLoader.\importerDXF.py", line 8, in from ezdxf import readfile File "C:\Program Files\FreeCAD 0.20\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\feature__.py", line 142, in _import return original_import(name, *args, kwargs) <class 'ModuleNotFoundError'>: No module named 'ezdxf'

" Would be grateful for your help. Thank you for your time.

jmplonka commented 1 year ago

I don't know, why package ezdxf is not installed?!? As a Workaround: please open the command line tool. Navigate to the bin path of your FreeCAD installatin (e.g C:\Program Files\FreeCAD 0.20\bin) type: C:\Program Files\FreeCAD 0.20\bin>python.exe -m pip install ezdxf Reopen FreeCAD and try again to import your IPT file.

gmartincan commented 1 year ago

Hi, Maybe the problem is on inventor file version as you suggest. I've tried other files and were imported correctly. Attached one of the files i can't import.

Thanks

El mié, 9 ago 2023 a las 12:19, jmplonka @.***>) escribió:

I don't know, why package ezdxf is not installed?!? As a Workaround: please open the command line tool. Navigate to the bin path of your FreeCAD installatin (e.g C:\Program Files\FreeCAD 0.20\bin) type:

>python.exe -m pip install ezdxf

Reopen FreeCAD and try again to import your IPT file.

— Reply to this email directly, view it on GitHub https://github.com/jmplonka/InventorLoader/issues/77#issuecomment-1671138272, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXKPZJAE4PB3JIVCOCRNSDXUNW2XANCNFSM6AAAAAA2ZGIQXU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Gerardo Martín

coelhoDj commented 1 year ago

I don't know, why package ezdxf is not installed?!? As a Workaround: please open the command line tool. Navigate to the bin path of your FreeCAD installatin (e.g C:\Program Files\FreeCAD 0.20\bin) type: C:\Program Files\FreeCAD 0.20\bin>python.exe -m pip install ezdxf Reopen FreeCAD and try again to import your IPT file.

It Worked ! I really aprecciated your help. Have a nice day! image

jmplonka commented 1 year ago

for those who are using a Mac: open terminal and navigate to FreeCad.app/Contents/Resources/bin (in my case: % cd /Applications/FreeCAD.app/Contents/Resources/bin) and install ezdxf: % ./python.exe -m pip install ezdx (don't forget ./!)