FEM results load error

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
vegemitepower
Posts: 2
Joined: Thu Dec 22, 2022 4:06 am

FEM results load error

Post by vegemitepower »

Hello,

I get the following error when trying to solve a FEM using 'Solver job control'

Code: Select all

15:05:41  
....
15:05:45  CalculiX done without error!
15:05:45  
15:05:45  CalculiX read results...
15:05:45  Read ccx results from frd file: C:\Users\XXXX~1\AppData\Local\Temp\fcfem_bxkldrdy\FEMMeshGmsh.frd
15:05:45  Failed to set matplotlib backend to Qt5Agg
15:05:45  loading results failed
When instead using 'Run solver calculations' this error appears:

Code: Select all

15:08:51  Run of CalxuliX ccx tools solver started.
....
15:08:51  CalculiX finished without error.
15:08:51  
15:08:51  CalculiX read results...
15:08:51  Read ccx results from frd file: C:\Users\XXXXX~1\AppData\Local\Temp\fcfem_9r3ld12h\FEMMeshGmsh.frd
15:08:51  Failed to set matplotlib backend to Qt5Agg
15:08:51  Running the Python command 'FEM_SolverRun' failed:
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD 0.20\Mod\Fem\femcommands\commands.py", line 1053, in Activated
    run_fem_solver(self.selobj)
  File "C:\Program Files\FreeCAD 0.20\Mod\Fem\femsolver\run.py", line 108, in run_fem_solver
    fea.run()  # standard, no working dir is given in solver
  File "C:\Program Files\FreeCAD 0.20\Mod\Fem\femtools\ccxtools.py", line 694, in run
    self.load_results()
  File "C:\Program Files\FreeCAD 0.20\Mod\Fem\femtools\ccxtools.py", line 814, in load_results
    self.load_results_ccxfrd()
  File "C:\Program Files\FreeCAD 0.20\Mod\Fem\femtools\ccxtools.py", line 824, in load_results_ccxfrd
    importCcxFrdResults.importFrd(
  File "C:\Program Files\FreeCAD 0.20\Mod\Fem\feminout\importCcxFrdResults.py", line 134, in importFrd
    res_obj = ObjectsFem.makeResultMechanical(doc, results_name)
  File "C:\Program Files\FreeCAD 0.20\Mod\Fem\ObjectsFem.py", line 613, in makeResultMechanical
    from femviewprovider import view_result_mechanical
  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:\Program Files\FreeCAD 0.20\Mod\Fem\femviewprovider\view_result_mechanical.py", line 37, in <module>
    from femtaskpanels import task_result_mechanical
  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:\Program Files\FreeCAD 0.20\Mod\Fem\femtaskpanels\task_result_mechanical.py", line 39, in <module>
    import matplotlib.pyplot as plt
  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\XXXXX\AppData\Roaming\Python\Python38\site-packages\matplotlib\__init__.py", line 109, in <module>
    from . import _api, _vers
cannot import name '_c_internal_utils' from partially initialized module 'matplotlib' (most likely due to a circular import) (C:\Users\XXXX\AppData\Roaming\Python\Python38\site-packages\matplotlib\__init__.py)
Couldn't find a similar issue through searching.

File attached.
OS: Windows 7 version 6.1 (Build 7601:SP1)
Version: 0.20.1
Revision number: 29410 (Git)
Attachments
SimpleFEM.FCStd
(175.16 KiB) Downloaded 38 times
vegemitepower
Posts: 2
Joined: Thu Dec 22, 2022 4:06 am

Re: FEM results load error

Post by vegemitepower »

Ok, should've tried a bit more before posting, but if anyone has the same issue, here is how I solved it:

I had Python 3.8 installed previously. Uninstalling Python then deleting C:\Users\XXXX\AppData\Roaming\Python\Python38\ resolved the issue.
Post Reply