title: Vector3 in Meep in Python
body: <p>I'm getting <code>'module' object has no attribute 'Vector3'</code> error in my simple python code.</p>
  
  <p>This is <code>rightAngle.py</code> file</p>
  
  <pre><code>import meep as mp
  import math
  
  cell = mp.Vector3(16, 8, 0)
  geometry = [mp.Bloack(mp.Vector3(1e20, 1, 1e20),
                        center = mp.Vector3(0, 0),
                        material = mp.Medium(epsilon = 12))]
  sources = [mp.Source(mp.ContinuousSource(frequency = 0.15),
                       component = mp.Ez,
                       center = mp.Vector3(-7, 0))]
  pml_layers = [mp.PML(1.0)]
  resolution = 10
  </code></pre>
  
  <p>Compling using:</p>
  
  <pre><code>python rightAngle.py &gt;&amp; rightAngle.out
  </code></pre>
  
  <p>And getting this output:</p>
  
  <pre><code>Traceback (most recent call last):
    File "rightAngle.py", line 4, in &lt;module&gt;
      cell = mp.Vector3(16, 8, 0)
  AttributeError: 'module' object has no attribute 'Vector3'
  </code></pre>
  
  <p>All I'm doing is copy and pasting given code from this fairly reliable <a href="https://meep.readthedocs.io/en/latest/Python_Tutorials/Basics/" rel="nofollow noreferrer">source</a> but getting error in <code>Vector3</code> object.</p>
  
  <p>Python version:</p>
  
  <pre><code>Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
  [GCC 5.4.0 20160609] on linux2
  </code></pre>
  
  <p>I don't know what I'm missing?</p>
  
  <p>Meep Documentation: 
  <a href="https://meep.readthedocs.io/en/latest/Python_Tutorials/Basics/" rel="nofollow noreferrer">https://meep.readthedocs.io/en/latest/Python_Tutorials/Basics/</a></p>