title: Error running Pyserial
body: <p>I just installed Pyserial 2.6 and I have Python 2.7.3 unfortunately it either did not install correctly or I am not using it correctly. I installed it through terminal using the line</p>
  
  <pre><code>sudo easy_install pyserial
  </code></pre>
  
  <p>Unfortunately it gave me 2  warnings:</p>
  
  <pre><code>warning: no files found matching 'examples/miniterm.py'
  warning: no files found matching 'test/test_io_lib.py'
  </code></pre>
  
  <p>Other than that it seemed to install correctly.</p>
  
  <p>When I run this in Python I keep getting the  farther below error</p>
  
  <pre><code>import serial
  serial_input = serial.Serial('/dev/tty/.usbmodem3d241',9600)
  while True:
      ser.readline()
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/ben/Documents/Arduino_to_Python.py", line 5, in &lt;module&gt;
      serial_input = serial.Serial('/dev/tty/.usbmodem3d241',9600)
    File "build/bdist.macosx-10.7-intel/egg/serial/serialutil.py", line 261, in __init__
      self.open()
    File "build/bdist.macosx-10.7-intel/egg/serial/serialposix.py", line 278, in open
      raise SerialException("could not open port %s: %s" % (self._port, msg))
  SerialException: could not open port /dev/tty/.usbmodem3d241: [Errno 20] Not a directory: '/dev/tty/.usbmodem3d241'
  </code></pre>
  
  <p>Whatever serial port I try it never seems to work. I have tried the ones in the Arduino program Tools>Serial Port and all of the prompts at <a href="http://pyserial.sourceforge.net/shortintro.html#opening-serial-ports" rel="nofollow">http://pyserial.sourceforge.net/shortintro.html#opening-serial-ports</a></p>
  
  <p>Any help would be greatly appreciated. Thanks.</p>