title: ImportError: No module named 'bpy'
body: <p>I am getting Error <code>ImportError: No module named 'bpy'</code> in Blender console. I am importing <code>bpy</code> module inside Blender console but still getting the Error. After long Googling I found that no one is getting the same error inside Blender.</p>
  
  <p>Using Blender 2.7 and python 3.4.</p>
  
  <p>My code:</p>
  
  <pre><code>import sys   
  import bpy     
  sys.path.append("C:\Python34\Lib\site-packages")    
  import serial    
  import GameLogic    
  contr = GameLogic.getCurrentController()    
  own = contr.owner    
  dane=open('dane.txt', 'rb')    
  x=dane.read()    
  dane.close()    
  y = int(x)    
  print ("y=", y)    
  
  bpy.ops.transform.rotate(value=(y), axis=(0.0, 0.0, 0.0), constraint_axis=(False, False, False), constraint_orientation='', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1.0, snap=False, snap_target='CLOSEST', snap_point=(0.0, 0.0, 0.0), snap_align=False, snap_normal=(0.0, 0.0, 0.0), release_confirm=False)    
  </code></pre>
  
  <p>Output at Blender console:</p>
  
  <pre><code>ImportError: No module named 'bpy'  
  Python script error - object 'Cube', controller 'Python':  
  Traceback (most recent call last):  
  File "qqq.py", line 2, in &lt;module&gt;  
  ImportError: No module named 'bpy'  
  </code></pre>