title: pySerial 2.7, 'SyntaxError: invalid syntax' : Import serial error in Python 3.5 (using Mac OSX 10.10 - Yosemite)
body: <p>I have been trying to find a solution through the web, but none of the solutions I saw solved my problem. It will be very grateful for anyone that can solved my problem.</p>
  
  <p>I have install the pySerial-2.7 module into the python using the tutorial below:
  <a href="http://www.instructables.com/id/Interface-Python-and-Arduino-with-pySerial/" rel="nofollow">http://www.instructables.com/id/Interface-Python-and-Arduino-with-pySerial/</a></p>
  
  <p>Everything went smoothly when I used Python 2.7 as I uninstall it and migrate to python 3.5</p>
  
  <p>As I type this code:</p>
  
  <blockquote>
    <p>import serial</p>
  </blockquote>
  
  <p>It shown me this error:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "&lt;_pyshell#0>", line 1, in &lt;_module>
       import serial
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/serial/<strong>init</strong>.py", line 21, in &lt;_module></p>
    
    <p>from serial.serialposix import *
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/serial/serialposix.py", line 58</p>
    
    <p>except IOError, e:
                     ^ </p>
    
    <p>SyntaxError: invalid syntax </p>
  </blockquote>
  
  <p>The python 3.5 cannot import serial which i do not know how to solve. Any help for this error will be much appreciated. </p>