Error: "No module named fsinewton.utils.misc_func"

Bug #1154516 reported by Martin Sandve Alnæs
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
CBC.Solve
New
Undecided
Unassigned

Bug Description

demo/swing/channel_with_flap$ time python channel_with_flap.py
Traceback (most recent call last):
  File "channel_with_flap.py", line 10, in <module>
    from cbc.swing.fsiproblem import FSI
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/fsiproblem.py", line 11, in <module>
    from fsisolver import FSISolver
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/fsisolver.py", line 14, in <module>
    from primalsolver import PrimalSolver
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/primalsolver.py", line 16, in <module>
    from subproblems import *
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/subproblems.py", line 26, in <module>
    import fsinewton.utils.misc_func as mf
ImportError: No module named fsinewton.utils.misc_func

Revision history for this message
Martin Sandve Alnæs (martinal) wrote :

Adding the submodules fixed that one, see lp:~martinal/cbc.solve/swing-setup-fix, but then I get this, which is a bug in the code itself:

demo/swing/bloodvessel3d$ time python bloodvessel3d.py
Traceback (most recent call last):
  File "bloodvessel3d.py", line 7, in <module>
    from cbc.swing.fsiproblem import MeshLoadFSI
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/fsiproblem.py", line 11, in <module>
    from fsisolver import FSISolver
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/fsisolver.py", line 14, in <module>
    from primalsolver import PrimalSolver
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/primalsolver.py", line 20, in <module>
    from cbc.swing.fsinewton.solver.solver_fsinewton import FSINewtonSolver
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/fsinewton/solver/solver_fsinewton.py", line 15, in <module>
    from spaces import FSISpaces
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/cbc/swing/fsinewton/solver/spaces.py", line 8, in <module>
    import fsinewton.utils.misc_func as mf
ImportError: No module named fsinewton.utils.misc_func

Revision history for this message
Gabriel Balaban (gabrib) wrote :

This import has been fixed now. Thank you for pointing it out.

Revision history for this message
Ji Peng (jpeng) wrote :

Still suffering the same importing error for both...

~/swingWithDolfin1.1.0/demo/swing/channel_with_flap$ python channel_with_flap.py
Traceback (most recent call last):
  File "channel_with_flap.py", line 10, in <module>
    from cbc.swing.fsiproblem import FSI
  File "/usr/local/lib/python2.7/dist-packages/cbc/swing/fsiproblem.py", line 11, in <module>
    from fsisolver import FSISolver
  File "/usr/local/lib/python2.7/dist-packages/cbc/swing/fsisolver.py", line 14, in <module>
    from primalsolver import PrimalSolver
  File "/usr/local/lib/python2.7/dist-packages/cbc/swing/primalsolver.py", line 16, in <module>
    from subproblems import *
  File "/usr/local/lib/python2.7/dist-packages/cbc/swing/subproblems.py", line 26, in <module>
    import cbc.swing.fsinewton.utils.misc_func as mf
ImportError: No module named fsinewton.utils.misc_func

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.