title: Serial import python
body: <p>I"m trying to use pyserial.  When I do the following script.  </p>
  
  <pre><code>import serial
  ser= serial.serial("COM5", 9600)
  ser.write("Hello worldn")
  x = ser.readline()
  print(x)     
  </code></pre>
  
  <p>Error code:</p>
  
  <pre><code>c:\Python27&gt;python com.py
  Traceback (most recent call last):
    File "com.py", line 2, in &lt;module&gt;
      ser= serial.serial("COM5", 9600)
  AttributeError: 'module' object has no attribute 'serial'
  </code></pre>
  
  <p>I read a suggestion and changed it to:</p>
  
  <pre><code>from serial import serial
  ser= serial.serial("COM5", 9600)
  ser.write("Hello worldn
  x = ser.readline()
  print(x)     
  </code></pre>
  
  <p>I now get the error</p>
  
  <pre><code>c:\Python27&gt;python com.py
  Traceback (most recent call last):
    File "com.py", line 1, in &lt;module&gt;
      from serial import serial
  ImportError: cannot import name serial
  </code></pre>
  
  <p>I read that this can be from having <strong>ini</strong> in your module, but dont' know anyting about this.</p>
  
  <p>I printed my sys.path and pyserial is in there.</p>
  
  <pre><code>['C:\\Users\\Jeff\\Desktop', 'C:\\Python27\\lib\\site-packages\\distribute-0.6.4
  9-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\pyserial-2.7-py2.7.egg', 'C:\\W
  indows\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\
  \Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Pyt
  hon27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11
  -py2.7.egg-info']
  </code></pre>
  
  <p>Getting kind of annoyed :(...  Thanks for help.</p>