Can't open lib '/usr/local/lib/libmsodbcsql.13.dylib' : file not found - pyodbc

I am working in python. I am using Macbook for development and OS version is Catalina. I am trying to connect MSSQL Server with pyodbc. I installed SQL Drivers and its dependencies as well. But while connecting I am getting this error.
Exception - ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmsodbcsql.13.dylib' : file not found (0) (SQLDriverConnect)")
I Checked the file path '/usr/local/lib/libmsodbcsql.13.dylib'. Actually file is available there.
Can anyone help me?

Solution:
For 13 version need open ssl v 1.0.0 , you can try it.
brew install
https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

Related

How can I get past this 'SSL connect error' when using jsonlite::fromJSON in R?

Issue
I get the following error whenever I run
all_companies <- jsonlite::fromJSON("https://www.sec.gov/files/company_tickers_exchange.json")
Warning: URL 'https://www.sec.gov/files/company_tickers_exchange.json': status was 'SSL connect error'Error in open.connection(con, "rb") :
cannot open the connection to 'https://www.sec.gov/files/company_tickers_exchange.json'
Thank you in advance for any help!
What I've tried
I am trying to run this on a new work computer, it runs fine on my old work computer but the new one gives me this error.
It seems the difference causing this issue is that I am using {jsonlite} 1.8.2 on my new computer and 1.8.0 on my old computer. Deep in the definition of the fromJSON() function, the working version seems to use curl::curl() to establish a connection whereas the not-working version uses base::url().
The following example line from the help documentation runs fine on the new computer with version 1.8.2
data1 <- fromJSON("https://api.github.com/users/hadley/orgs")
I can access the JSON file I am trying to read on an internet browser.
I do not have permission to install Rtools on my computer to be able to compile an older version of {jsonlite}.

NotesSQL - ODBC driver could not be loaded due to system error code 126

I am using windows 10. I successfully installed NotesSQL 9.0 but unable to add ODBC driver and getting the such a error:
The setup routines for the Lotus Notes SQL driver (*.nsf) ODBC driver could not be loaded due to system error code 126: The specified module could not be found. (C:\NotesSQL\nsqlc32.dll).
I checked the .dll and it is existing in the path that it showed. I did many different way of fixing this issues but could not fix it. Please anyone help to advise? Thank you.
Make sure you have added your notes.ini file to the PATH variable. This file is required by ODBC driver to run. By default your notes.ini should be in:
C:\Program Files (x86)\IBM\Lotus\Notes\notes.ini
After spending a lot hours trying to find out a solution, I discovered one that solves to me: add the path of your Notes client at your path environment (user and system path) and it will work fine! Tell us if its solves for you.

Teradata odbc driver for Mac OS sierra

I am trying to connect to Teradata on my Tableau Desktop 9.2.7.
I am on Mac OS Sierra. It shows the following error when I try to connect to Teradata database
Detailed Error Message:
[iODBC][Driver Manager]dlopen(/Library/Application Support/teradata/client/ODBC/lib/tdata.dylib, 6): Library not loaded: libtdparse.dylib Referenced from: /Library/Application Support/teradata/client/ODBC/lib/tdata.dylib Reason: image not found [iODBC][Driver Manager]Specified driver could not be loaded Unable to connect to the server "wm1". Check that the server is running and that you have access privileges to the requested database.
I have already installed the required ODBC drivers from the Teradata website. I even tried installing the previous versions of the driver. I'm not able to get past this error message. Can someone guide me towards a fix?
I’d the same problem and am on Sierra too. but it was resolved after i installed the Teradata ODBC driver v16.20 (previously was v15.00). See if it works?

7: [unixODBC][DataDirect][ODBC 20101 driver]6015 error

For our application we have planned to use the Progress Data Direct ODBC driver for oracle. So i have downloaded the EVAL version and installed it. Our application servers are running in the Linux environment.
After installing the EVAL version i have tested the sample code provided by them. I have configured the ODBC.INI and ODBCINST.INI properly.
Tested the DSN connection successfully with the sample program provided by DataDirect Progress.
Then i started using the same for my application Lib LD path set properly ODBC , ODBCINST variables are properly set.
when i try to bring up my servers i got the below error message
7: [unixODBC][DataDirect][ODBC 20101 driver]6015
In this message i'm not getting the message description , only i got the error code which is 6015
How to get the error message for this code 6015 ?
Any help on this?
Due to the older version of driver got the error , so installed newer version and it got resolved.

Shiny Server cannot use RODBC to connect to DB2 but RStudio can in a Docker Container

I am working on deploying a shiny application in a Docker container onto Bluemix. I am using the rocker/shiny Docker image (https://hub.docker.com/r/rocker/shiny/) as my initial starting point. I have installed unixODBC-dev, RODBC, ibm data server driver package, the ibmdbR library for R, and all needed dependencies. My only problem is that when I try to access the shiny app from a web browser it fails to execute, the error is:
Warning in odbcDriverConnect("DSN=BLUDB", :
[RODBC] ERROR: state 01000, code 0, message [unixODBC][Driver Manager]Can't open lib '/root/db2_cli_odbc_driver/dsdriver/odbc_cli_driver/linuxamd64/clidriver/lib/libdb2o.so' : file not found
Warning in odbcDriverConnect("DSN=BLUDB; :
ODBC connection failed
Error in idaInit(con) : con is not an open connection, please use idaConnect() to create an open connection to the data base.
Initially I had this same problem whenever I would try to use isql to connect to the database or try to connect from RStudio, I used ldd on that library file and found what was missing and that fixed making connections from the command line and RStudio, however my Shiny-Server still gives me the same error, is there anything I am missing?
I ended up solving the problem myself, turns out the libraries were not accessible by the shiny-server which was running as a service. I moved the db2 odbc drivers over to /usr/local/lib to make it accessible, I also ran the "ldd" command on the library mentioned in the error message and found that I had to install libxml2 as well. After doing that I simply changed my odbcinst.ini file at /etc to reference the new location of the db2 library and now it all works! Hopefully anyone else trying to deploy Shiny Apps that rely on connecting to a DB2 database will find this useful.

Resources