Discussion:
[Meep-discuss] mpb python installation
Iman Sajedian
2018-05-16 00:35:02 UTC
Permalink
Hi, I hope you are doing fine. I installed meep on my ubuntu 16.04. As is
said in (http://mpb.readthedocs.io/en/latest/Installation/#python) and many
other places, it is said that mpb is built as a part of mpb. but when i try
to load the mpb package I get the following error:

from meep import mpb
Traceback (most recent call last):

File "<ipython-input-21-209a4725f2c8>", line 1, in <module>
from meep import mpb

ImportError: cannot import name 'mpb'

Please help me, I really need mpb on pyhton.

Best Regards
Iman
--
Iman Sajedian
Postdoctoral Research Fellow | Pohang University of Science and Technology
(POSTECH) | Mechanical Engineering
mobile: +82 10 4106 1599 <+82+10+4106+1599>
email: ***@gmail.com
skype: imansaj
Christopher Hogan
2018-05-16 13:17:14 UTC
Permalink
Hi,

I'm not sure how you installed Meep, but currently the only way to access
MPB from Python is to build Meep from source as described here:
http://meep.readthedocs.io/en/latest/Build_From_Source/#building-from-source
. I apologize that the documentation is wrong. It's already been updated
for the upcoming release, which is taking a little longer than expected.
Updated conda packages with the Python MPB interface will be available very
soon.

Chris
Post by Iman Sajedian
Hi, I hope you are doing fine. I installed meep on my ubuntu 16.04. As is
said in (http://mpb.readthedocs.io/en/latest/Installation/#python) and
many other places, it is said that mpb is built as a part of mpb. but when
from meep import mpb
File "<ipython-input-21-209a4725f2c8>", line 1, in <module>
from meep import mpb
ImportError: cannot import name 'mpb'
Please help me, I really need mpb on pyhton.
Best Regards
Iman
--
Iman Sajedian
Postdoctoral Research Fellow | Pohang University of Science and
Technology (POSTECH) | Mechanical Engineering
mobile: +82 10 4106 1599 <+82+10+4106+1599>
skype: imansaj
_______________________________________________
meep-discuss mailing list
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
Loading...