Our findings show that although Python for FreeCAD is more arduous to learn, its advantages counterbalance the initial difficulties. We have created a parametric open source hardware design to compare these tools. In this work we analyze OpenSCAD and compare it with FreeCAD Python scripts. This is an important deficiency because it is key to share the design in the most accessible formats with no information loss. However, OpenSCAD lacks the ability to export to standard parametric formats thus, the parametric dimensional information of the model is lost. OpenSCAD is the most widely used scripting tool for parametric modeling of open source labware. Parametric design using a solid modeling programming language allows customization and provides a source file for the design. In addition, parametric modeling is encouraged in order to facilitate customization for other experiments. Removing the imports was a mistake, probably.Open source hardware for scientific equipment needs to provide source files and enough documentation to allow the study, replication and modification of the design. 'NoneType' object has no attribute 'serialize' Still, not it is ideal because now it is not able to export to an inp file.ġ7:31:54 Running the Python command 'EM_FHInputFile' failed:įile "C:\Users\lucam\AppData\Roaming\FreeCAD\Mod\EM\EM_FHInputFile.py", line 187, in ActivatedįreeCADGui.doCommand('obj=EM.createFHInputFile(App.ActiveDocument)')įile "C:\Users\lucam\AppData\Roaming\FreeCAD\Mod\EM\EM_FHInputFile.py", line 150, in createFHInputFileįile "C:\Users\lucam\AppData\Roaming\FreeCAD\Mod\EM\EM_FHPlane.py", line 535, in serialize " from every file "EM_" listed at the traceback, the errors stopped. Nevertheless, after removing every "from EM_Globals import. (most likely due to a circular import) (C:\Users\lucam\AppData\Roaming\FreeCAD\Mod\EM\EM_Globals.py) : cannot import name 'makeSegShape' from partially initialized module 'EM_Globals' Return original_import(name, *args, **kwargs)įile "C:\Users\lucam\AppData\Roaming\FreeCAD\Mod\EM\EM_FHNode.py", line 38, in įrom EM_Globals import EMFHNODE_DEF_NODECOLORįile "C:\Users\lucam\AppData\Roaming\FreeCAD\Mod\EM\EM_Globals.py", line 45, in įile "C:\Users\lucam\AppData\Roaming\FreeCAD\Mod\EM\EM.py", line 58, in įile "C:\Users\lucam\AppData\Roaming\FreeCAD\Mod\EM\EM_FHSegment.py", line 40, in Actually, it was just repeating itself numerous times.ġ7:04:53 Traceback (most recent call last):įile "C:\FreeCAD 0.19\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\_feature_.py", line 142, in _import I did read better the traceback and I noticed it was not that big. Microsoft VBScript runtime error '800a000d' : cannot import name 'makeSegShape' from partially initialized module 'EM_Globals' (most likely due to a circular import) (.\AppData\Roaming\FreeCAD\Mod\EM\EM_Globals.py)ĭoes anyone have any idea how to fix that?Īny chance to share the offending file? In case you can send it to me at my email address you can find in the 'contacts' page. There is a huge traceback I will post only what seems the relevant part:įile ".\AppData\Roaming\FreeCAD\Mod\EM\EM_FHSegment.py", line 40, in When I open a previously saved project there is a python import error and FreeCad won't recognized all previously defined FHSegments. FastFieldSolvers Forum - Python Import Error
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |