Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python errors when importing .ipt file #77

Open
coelhoDj opened this issue Jul 26, 2023 · 4 comments
Open

Python errors when importing .ipt file #77

coelhoDj opened this issue Jul 26, 2023 · 4 comments
Assignees

Comments

@coelhoDj
Copy link

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:

  • InventorLoader 1.4.0
    [/code]

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
Copy link
Owner

jmplonka commented Aug 9, 2023

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
Copy link

gmartincan commented Aug 9, 2023 via email

@coelhoDj
Copy link
Author

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
Copy link
Owner

jmplonka commented Aug 11, 2023

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 ezdxf (don't forget ./!)

@jmplonka jmplonka self-assigned this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants