question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"/usr/bin/python: No module named mssqlcli"

See original GitHub issue

I’ve followed the installation instructions and when I try to run mssql-cli I get the subject error message.

Installation went OK so I am not sure what is wrong? I’m using Ubuntu 17.10

joakim@XPS:~$ pip install mssql-cli
Requirement already satisfied: mssql-cli in /usr/local/lib/python3.6/dist-packages
Requirement already satisfied: cli-helpers<1.0.0,>=0.2.3 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: click>=4.1 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: configobj>=5.0.6 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: future>=0.16.0 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: enum34>=1.1.6 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: wheel>=0.29.0 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: prompt-toolkit<1.1.0,>=1.0.10 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: applicationinsights>=0.11.1 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: humanize>=0.5.1 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: sqlparse<0.3.0,>=0.2.2 in /usr/local/lib/python3.6/dist-packages (from mssql-cli)
Requirement already satisfied: backports.csv>=1.0.0 in /usr/local/lib/python3.6/dist-packages (from cli-helpers<1.0.0,>=0.2.3->mssql-cli)
Requirement already satisfied: terminaltables>=3.0.0 in /usr/local/lib/python3.6/dist-packages (from cli-helpers<1.0.0,>=0.2.3->mssql-cli)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from configobj>=5.0.6->mssql-cli)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.6/dist-packages (from prompt-toolkit<1.1.0,>=1.0.10->mssql-cli)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
m3asmicommented, Sep 28, 2018

fixing it by installing by pip2 pip2 install mssql-cli

2reactions
jakellycommented, Sep 9, 2021

I modified the mssql-cli command and changed the last line from:

python -m mssqlcli.main "$@"

to:

python3 -m mssqlcli.main "$@"

and now it appears to be running on Python3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When I run mssql-cli, I get "No module named mssqlcli"
pip3 install mssql-cli. Then I try to run mssql-cli and I get $ mssql-cli /usr/bin/python: No module named mssqlcli.
Read more >
Installed python package with `pip3`, but when I call it I get "No ...
The issue is that if you look at the actual mssql-cli file it runs it using the python command. This (on my Mac)...
Read more >
usr/bin/python: No module named mssqlcli - Bountysource
I've followed the installation instructions and when I try to run mssql-cli I get the subject error message.
Read more >
Failed Installation of MSSQL-CLI on Ubuntu - DBAKevlar
ImportError: No module named 'ConfigParser' dpkg: error processing ... Complete output from command /usr/bin/python -c "import setuptools, ...
Read more >
mssql-cli - PyPI
mssql-cli is an interactive command line query tool for SQL Server. ... Non-interactive support: execute a query without jumping into the interactive ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found