Author Topic: Kratos for Dummies (ImportError)  (Read 1975 times)

Peter

  • Newbie
  • *
  • Posts: 4
Kratos for Dummies (ImportError)
« on: March 14, 2017, 02:13:37 PM »
Hallo,

I reinstalled Kratos and everything worked fine during compilation. But I always get the same error when I try to run an test example:

File "pure_diffusion_example.py", line 6, in <module>
   from KratosMultiphysics Import *
File ".../Kratos/KratosMultiphysics/__init__.py, line 13, in <module>
   from Kratos Import*
ImportError: dynamic module does not define init function (initKratos)

At first I thought that I set one environment variable wrongly but PATH, LD_LIBRARY_PATH and PYTHONPATH are set correctly.

So does anyone have an idea what the Problem could be??

Thanks
Peter

Miguel Angel Celigueta

  • Administrator
  • Newbie
  • *****
  • Posts: 38
Re: Kratos for Dummies (ImportError)
« Reply #1 on: March 14, 2017, 02:40:00 PM »
Hi,
Take a look at this post: http://kratos-wiki.cimne.upc.edu/forum/index.php?topic=17.0
Maybe you have to use 'python3' instead of 'python'
Regards,
Miguel Ángel

Peter

  • Newbie
  • *
  • Posts: 4
Re: Kratos for Dummies (ImportError)
« Reply #2 on: March 15, 2017, 11:45:35 AM »
Thanks a lot. What a stupid mistake :) I just typed in "python3" instead of "python" and everything worked.
Thanks
Peter