title: Unable to connect to SQL using pyodbc-Python
body: <p>I try to connect to SQL using the pyodbc package, but get the error:
  SystemError:
  built-in function connect returned NULL without setting an error</p>
  <p>What could be the reason for this?
  When I run the code from another computer - I do manage to connect to SQL.</p>
  <p>The connection string I use:
  conn_str = 'DRIVER={SQL Server};SERVER=' + server + ';DATABASE=' + database + ';'</p>
  <p>conn = pyodbc.connect(conn_str)
  I have ODBC and pyodbc installed on my computer.
  Of course I set values for the database and server fields</p>
  <p>Before I do connect I use a function that does logon with the username and password</p>