FEM WB fails to load : master 9/9/19

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: FEM WB fails to load : master 9/9/19

Post by sgrogan »

sgrogan wrote: Mon Sep 09, 2019 10:21 pm by sgrogan » Mon Sep 09, 2019 6:21 pm
I'm not sure how the relative imports work
It looks like femutils imports run which tries to import femutils?
"fight the good fight"
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM WB fails to load : master 9/9/19

Post by bernd »

I can not reproduce it ... :(

sgrogan wrote: Mon Sep 09, 2019 11:18 pm
sgrogan wrote: Mon Sep 09, 2019 10:21 pm by sgrogan » Mon Sep 09, 2019 6:21 pm
I'm not sure how the relative imports work
It looks like femutils imports run which tries to import femutils?
fixed in git commit 818c3df
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM WB fails to load : master 9/9/19

Post by bernd »

would someone give it a try with the fix?
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: FEM WB fails to load : master 9/9/19

Post by vocx »

bernd wrote: Tue Sep 10, 2019 6:08 am would someone give it a try with the fix?
Still fails. Compiled right now.

Code: Select all

>>> import Fem
>>> import femtools.femutils
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/freecad-build-vocx/Mod/Fem/femtools/femutils.py", line 35, in <module>
    from femsolver.run import _getUniquePath as getUniquePath
  File "/opt/freecad-build-vocx/Mod/Fem/femsolver/run.py", line 35, in <module>
    import femtools.femutils as femutils
AttributeError: module 'femtools' has no attribute 'femutils'
>>> App.Version()
['0', '19', '18159 (Git)', 'git://github.com/FreeCAD/FreeCAD.git master', '2019/09/10 05:47:26', 'master', '818c3df49cc400222aa862cb19439e65ac6b4450']
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM WB fails to load : master 9/9/19

Post by bernd »

I did another workaround ... git commit 90bcf3e

Would someone try this?
User avatar
freman
Veteran
Posts: 2214
Joined: Tue Nov 27, 2018 10:30 pm

Re: FEM WB fails to load : master 9/9/19

Post by freman »

building now.

why are you not able to reproduce this , it seems to hit multiple linux distros, win and MacOs.

If I switch to Sketcher WB and double click on a sketch?

Code: Select all


  File "~/master-build/Mod/Show/TempoVis.py", line 28, in <module>
    from . import Containers
<type 'exceptions.ImportError'>: cannot import name Containers
ViewProviderSketch::setEdit: could not import Show module. Visibility automation will not work.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM WB fails to load : master 9/9/19

Post by bernd »

freman wrote: Tue Sep 10, 2019 10:38 am why are you not able to reproduce this , it seems to hit multiple linux distros, win and MacOs.
When I would know this I would reproduce it :mrgreen:

even on a clean build no problems here ...
User avatar
freman
Veteran
Posts: 2214
Joined: Tue Nov 27, 2018 10:30 pm

Re: FEM WB fails to load : master 9/9/19

Post by freman »

bernd wrote: Tue Sep 10, 2019 12:23 pm
freman wrote: Tue Sep 10, 2019 10:38 am why are you not able to reproduce this , it seems to hit multiple linux distros, win and MacOs.
When I would know this I would reproduce it :mrgreen:

even on a clean build no problems here ...
So you are only doing one build on one platform, that is why you cannot reproduce it. No one expects you have 6 different PCs + a Mac but if you had at least some different builds on your platform it may help pinpoint the key factor. Maybe qt or python versions.

It does not seem to be some corner case of one or two users having a rather unusual config. , it is hitting all platforms. It seems your config is the odd one where it does work.

There is a small number of commits which have gone through in the last few days and a good guess could be made as to which ones caused this issue.
Maybe some of those could be walked back so the we get a working master until this is fixed.

Code: Select all

>>> import Fem
>>> import femtools
>>> import femtools.femutils
>>> ### Begin command Std_Workbench
>>> Gui.activateWorkbench("FemWorkbench")
>>> ### End command Std_Workbench
>>> 
>>> 
If that is a sufficient test, this is working here now. Thanks for rapid efforts. Hope there is conformation from others.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM WB fails to load : master 9/9/19

Post by bernd »

there still seam to be a problem on windows. Just pushed another fix ... git commit a3f5a71 would be cool of someone on windows could give it a try ...
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM WB fails to load : master 9/9/19

Post by bernd »

bernd wrote: Tue Sep 10, 2019 4:23 pm there still seam to be a problem on windows. Just pushed another fix ... git commit a3f5a71 would be cool of someone on windows could give it a try ...
unit test still fail on windows ... https://travis-ci.org/FreeCAD/FreeCAD/b ... tification and https://api.travis-ci.org/v3/job/583254733/log.txt
Post Reply