title: 'SpiDev' object has no attribute 'GPIO'
body: <p>I am trying to use GPIO pins of raspberry pi. So for that purpose i have installed <code>SpiDev</code> python module. But when i tried to run my program i am getting error like <code>'module' object has no attribute 'GPIO'</code>.<br>
  So what should i do to get rid of this problem. My code is like as follows:</p>
  
  <pre><code>from PyQt4 import QtCore, QtGui
  import Rpi.GPIO as GPIO
  import time
  import spidev
  spi = spidev.Spidev()  # for creating spi object
  GPIO.setmode(GPIO.BOARD)
  
  out_1 = 7  # GPIO pin no 7
  out_2 = 11 # GPIO pin no 11
  class Ui_MainWindow(object):
      ...
      ...
      ...
      def abc(self, parameter1):
          spi.GPIO.setup(out_1, GPIO.OUT)
          spi.GPIO.output(out_1, 1)
          ....
          ....
          spi.GPIO.setup(out_2, GPIO.OUT)
          spi.GPIO.output(out_2, 1)
      ....
      ...
  ...
  </code></pre>
  
  <p>...</p>
  
  <p>after running this code i am getting the error as follows
  'SpiDev' object has no attribute 'GPIO'</p>