Closed Zhiyuancheng closed 1 year ago
Issue-Label Bot is automatically applying the label #bug
to this issue, with a confidence of 0.65. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Hi, I have a similar issue when I was trying MSSQL in Azure in Preset, and I documented what worked, ignore the Preset IP and see if the extra parameters help you.
Hi, I have a similar issue when I was trying MSSQL in Azure in Preset, and I documented what worked, ignore the Preset IP and see if the extra parameters help you.
Thanks @eugeniamz I have solved it , use pyodbc instead of pymssql .
eg :
and you can refer to MS related link introduce: https://docs.microsoft.com/en-us/sql/connect/python/pyodbc/step-1-configure-development-environment-for-pyodbc-python-development?view=sql-server-ver15
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned
to prevent stale bot from closing the issue.
I have the same issue with the latest Superset versions and Python 3.8:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned
to prevent stale bot from closing the issue.
Hi I have the same issue. Can someone please help?
@logicwic or @GolamRashed are you still having this issue? I'm able to connect Superset to SQL Server data sources just fine using Superset 2.0.0 or 2.0.1.
@logicwic or @GolamRashed are you still having this issue? I'm able to connect Superset to SQL Server data sources just fine using Superset 2.0.0 or 2.0.1.
Hey @sfirke I got same issue, can you guide me ?
Can you provide more details @kamransuleymanli ? Superset version, install method (docker?), what you have tried, what's happening. I'm using a docker setup so added a file /superset/docker/requirements-local.txt
that contains the line pymssql
so that pymssql package gets installed when Superset starts with docker-compose up.
Can you provide more details @kamransuleymanli ? Superset version, install method (docker?), what you have tried, what's happening. I'm using a docker setup so added a file
/superset/docker/requirements-local.txt
that contains the linepymssql
so that pymssql package gets installed when Superset starts with docker-compose up.
Thanks for quick response friend. Yes its docker. But Unfortunately I am not the person who do this stuffs. So I am like newbie on this one. So please explain simple as possible.
My colleague use this one
mssql+pymssql://Username>:<Password>@<Host:
You said
" I'm using a docker setup so added a file /superset/docker/requirements-local.txt that contains the line pymssql so that pymssql package gets installed when Superset starts with docker-compose up "
So we should add requirements-local.txt file to docker folder ? and pymssql line into it ? btw pymssql line meaning is "mssql+pymssql://
Yes, that error indicates that Superset doesn't have the SQL Server driver needed. So correct, you'll add a requirements-local.txt file to the docker directory and add that one word of text: pymssql. Then when you run docker-compose up, that Python package will get installed and your Superset instance will have the driver. That's described here: https://superset.apache.org/docs/databases/docker-add-drivers Ignore the part about building your own image, use the Docker Compose part.
Then in Superset, use the connection string starting with pymssql from here: https://superset.apache.org/docs/databases/sql-server/ :
mssql+pymssql://<Username>:<Password>@<Host>:<Port-default:1433>/<Database Name>
Thanks for trying help; we did steps like you explained;
But after "docker-compose up" step we got an error like this:
FATAL: could not write lock file "postmaster.pid": No space left on device superset_db exited with code 1 superset_cache exited with code 137
Got any idea how to move on ?
Looks like that's related to your Docker installation needing more disk space, it's not a problem particular to Superset: https://stackoverflow.com/questions/43354778/docker-fatal-could-not-write-lock-file-postmaster-pid-no-space-left-on-devic
Thanks a lot @sfirke Finally we solved problem
With every try Docker up command, files was not overwriteing existed one. So that lead as Disk Space problem. But even with more disk space Docker up command didn't gave error but didnt gave solution either.
How we did: We delete superset, start build from scratch. https://superset.apache.org/docs/installation/installing-superset-using-docker-compose/
When we has to docker-compose -f docker-compose-non-dev.yml pull docker-compose -f docker-compose-non-dev.yml up
begin your way, add a requirements-local.txt file to the docker directory and add that one word of text inside it: pymssql
Then docker-compose -f docker-compose-non-dev.yml pull docker-compose -f docker-compose-non-dev.yml up
Again Thanks a lot. Have a nice weekend =)
Excellent, glad to hear it! Thanks for posting back what worked.
Thanks @sfirke! Problem solved, so the issue is hereby resolved.
A clear and concise description of what the bug is.
Expected results
I want to connection mssql use pymssql model(Install: pip3 install pymssql)
Actual results
but it doesn't work.
my connection link is :
'mssql+pymssql://username:password@db_host:1433/database'
the error logs :
Screenshots
How to reproduce the bug
Environment
(please complete the following information):
superset version
Superset 0.37.1
python --version
Python 3.6.8
node -v
npm -v