Note that there are some explanatory texts on larger screens.

plurals
  1. POInvalid Connection String while trying to connect to Vertica from Mac OS X
    primarykey
    data
    text
    <p>I want to develop in Python from my local machine running Mac OS X and connect to a Vertica database in my network. </p> <p>I downloaded the Vertica Mac Driver and set it up according to the instructions. When testing with iODBC, I get:</p> <pre><code>$ iodbctest iODBC Demonstration program This program shows an interactive SQL processor Driver Manager: 03.52.0607.1008 Enter ODBC connect string (? shows list): ? DSN | Driver ------------------------------------------------------------------------------ VerticaDSN | Vertica Enter ODBC connect string (? shows list): VerticaDSN 1: SQLDriverConnect = [DSI] The error message InvalidConnStr could not be found in the en-US locale. Check that /en-US/ODBCMessages.xml exists. (-1) SQLSTATE=HY000 </code></pre> <p>When testing with unixODBC, I get a different error:</p> <pre><code> $ isql -v VerticaDSN user pw [S1000][unixODBC][DSI] The error message NoSQLGetPrivateProfileString could not be found in the en-US locale. Check that /en-US/ODBCMessages.xml exists. [ISQL]ERROR: Could not SQLConnect </code></pre> <p>The latter should be caused by a missing vertica.ini, but I did add the vertica.ini and exported its directory to the VERTICAINI environment variable. Here's how my vertica.ini looks like:</p> <pre><code>[Driver] DriverManagerEncoding=UTF-32 ODBCInstLib=/usr/lib/libiodbc.2.dylib ErrorMessagesPath=/Users/rmedri/Library/ODBC/vertica/lib64 LogLevel=4 LogPath=/Users/rmedri </code></pre> <p>and here's my odbc.ini (in ~/Library/ODBC/):</p> <pre><code>[ODBC Data Sources] VerticaDSN = Vertica [VerticaDSN] Driver = /Users/rmedri/Library/ODBC/vertica/lib64/libverticaodbc.dylib Database = vbit Servername = vertica-prod.&lt;xxxx&gt;.&lt;xxxx&gt;.com UID = user PWD = pw Port = 5433 </code></pre> <p>I've spent several hours on this and I am at a loss. Any guidance is appreciated, including alternative ways to connect to Vertica from Python running on Mac OS X.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload