Hi. I’m trying to use the tap-mssql tap (singer-io...
# troubleshooting
b
Hi. I’m trying to use the tap-mssql tap (singer-io variant) to pull data from an Azure SQL Server database but am getting this error: 2022-06-09T125216.197235Z [error ] Extraction failed code=1 job_id=2022-06-09T125059--tap-mssql--target-redshift message=ImportError: dlopen(/Users/bhughes/Documents/repos/data.architecture/meltano/azure_edw_2_rs2/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/pymssql/_mssql.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace ‘_iconv’ name=meltano run_id=42edb584-1d18-4d83-9395-9da6983bb63b Any help would be greatly appreciated.
v
https://hub.meltano.com/extractors/tap-mssql recommends pipeline wise, maybe try that? Also your meltano.yml and the command you ran to get the exception helps a lot
b
I started out with that one, but it resulted in the same error.
Fyi, I’m on MacOS.
Fyi, I got it working by running Meltano via Docker instead of a local install. I roughly followed the instructions here: https://gitlab.com/meltano/meltano/-/issues/2863#note_640094463. Had to run the config commands from the command line for Meltano to recognize them (instead of pulling from Meltano.yml):
Copy code
meltano config tap-mssql set user <user>
meltano config tap-mssql set password <passwd>
meltano config tap-mssql set database <database>
meltano config tap-mssql set port <port>
meltano config tap-mssql set host <host>
c
Apparently the issue should have been fixed in the
pymssql
2.2.2. You could check which
pymssql
version the tap is using. https://github.com/pymssql/pymssql/commit/edc76e6ba69f8de69e7cb7fd374df2f2a6d8f2f9