No module named 'dedalus.public'

459 views
Skip to first unread message

Adam Jermyn

unread,
Nov 4, 2018, 12:35:21 PM11/4/18
to Dedalus Users
I've just set up Dedalus on a Redhat Linux machine. I followed the instructions here:


with a few changes to make it work on my system. These were:
- Modified the intel library directory to match mine.
- Changed requirements.txt to install matplotlib 2.2.3 (because 3.0 doesn't support python 3.4.3).
- Changed -openmp to -qopenmp because recent Intel compilers don't support -openmp.

It all seems to work, and I'm able to import dedalus, but then when I try to run the Rayleigh Benard test case I get the following error:

Traceback (most recent call last):
  File "rayleigh_benard.py", line 16, in <module>
    import dedalus.public as de
ImportError: No module named 'dedalus.public'

My guess is that this is a problem with the version of Python (3.4.3) not supporting the package structure in Dedalus but before I go reinstalling Python I'd like to verify that...

Any suggestions would be most welcome!
Thanks,
Adam

Ben Brown

unread,
Nov 4, 2018, 2:40:24 PM11/4/18
to dedalu...@googlegroups.com
Adam,
     Are you sure that Dedalus is in your python path?

—Ben

--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/25e08903-f218-4064-a5a4-507fa37e92a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Jermyn

unread,
Nov 4, 2018, 4:12:58 PM11/4/18
to dedalu...@googlegroups.com
I think so:

~ echo $PYTHONPATH
/home/adamjermyn/dedalus/build/dedalus:

~ python
Python 3.4.3 (default, Nov  3 2018, 13:34:06)
[GCC Intel(R) C++ gcc 5.4 mode] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dedalus
>>> dir(dedalus)
['__doc__', '__loader__', '__name__', '__package__', '__path__', '__spec__']

So I'm able to import dedalus, just not dedalus.public or any other submodules.

-Adam


You received this message because you are subscribed to a topic in the Google Groups "Dedalus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dedalus-users/PXduq_8ZGOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dedalus-user...@googlegroups.com.

To post to this group, send email to dedalu...@googlegroups.com.

Adam Jermyn

unread,
Nov 5, 2018, 12:25:30 PM11/5/18
to Dedalus Users
This is resolved. The issue was that another directory called dedalus was present in my PYTHONPATH, so Python was attempting to import that.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-users+unsubscribe@googlegroups.com.

To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/25e08903-f218-4064-a5a4-507fa37e92a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Dedalus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dedalus-users/PXduq_8ZGOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dedalus-users+unsubscribe@googlegroups.com.

Ben Brown

unread,
Nov 5, 2018, 12:33:02 PM11/5/18
to dedalu...@googlegroups.com
Lovely.  Thank you for letting us know the resolution.

To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.

To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/25e08903-f218-4064-a5a4-507fa37e92a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Dedalus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dedalus-users/PXduq_8ZGOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dedalus-user...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.

To post to this group, send email to dedalu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages