I'm getting 'module' object has no attribute 'Vector3'
error in my simple python code.
This is a part of a series of videos we will make on scientific computing with Python. We will mainly concentrate on computational photonics. The talks will follow our research and how we use.
This is rightAngle.py
file
Compling using:
And getting this output:
All I'm doing is copy and pasting given code from this fairly reliable source but getting error in Vector3
object.
Python version:
I don't know what I'm missing?
Meep Documentation: https://meep.readthedocs.io/en/latest/Python_Tutorials/Basics/
1 Answer
Got the same problem while trying to use it on Ubuntu 16.04.
What worked for me was installing Anaconda for python 2.7 and create their recommended environment using:
conda create -n mp -c chogan -c defaults -c conda-forge pymeep
No Vector3 problem after that.