dbcli / mssql-cli

A command-line client for SQL Server with auto-completion and syntax highlighting
BSD 3-Clause "New" or "Revised" License
1.35k stars 191 forks source link

Installation Issues - dependencies needed unresolved #218

Open spboyer opened 6 years ago

spboyer commented 6 years ago

Issue

pyopenssl 16.2.0 requires cryptography>=1.3.4, which is not installed.
azure-cli-shell 0.2.0 requires azure-cli, which is not installed.
azure-cli-shell 0.2.0 requires jmespath, which is not installed.
scp 0.10.2 requires paramiko, which is not installed.
matplotlib 1.3.1 requires nose, which is not installed.
sshtunnel 0.1.2 requires paramiko>=1.15.2, which is not installed.
Installing collected packages: applicationinsights
  Found existing installation: applicationinsights 0.10.0
    Uninstalling applicationinsights-0.10.0:
      Successfully uninstalled applicationinsights-0.10.0
  Rolling back uninstall of applicationinsights
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/applicationinsights-0.11.5.dist-info/RECORD'
Consider using the `--user` option or check the permissions

OS MacOS High Sierra 10.13.4

python info Python 2.7.10 /usr/bin/python

pip info Version : pip 10.0.1 from /Library/Python/2.7/site-packages/pip (python 2.7) where:

pip: aliased to noglob pip
/usr/local/bin/pip

Azure CLI was installed, not using pip but by brew install per the docs. Azure version: 2.0.33 referencing python 3.6 (required) in the following location: Python location '/usr/local/opt/python/bin/python3.6'

Could install each of the required items passing the --user flag and resolve all but the azure-cli item.

MrMeemus commented 6 years ago

@spboyer, can you share the install command? It's strange that it is looking for Azure-CLI as we don't have that as a dependency for mssql-cli.

spboyer commented 6 years ago

pip install mssql-cli

macOS High Sierra using zsh

spboyer commented 6 years ago

ran pip install mssql-cli -v

pip install mssql-cli -v                                                                        ✔  8711  08:51:58
Created temporary directory: /private/var/folders/gj/1mgg_4jx7mbdqbhw1kgcpcjr0000gn/T/pip-ephem-wheel-cache-GLDzDz
Created temporary directory: /private/var/folders/gj/1mgg_4jx7mbdqbhw1kgcpcjr0000gn/T/pip-install-K4cDbl
Requirement already satisfied: mssql-cli in /Library/Python/2.7/site-packages (0.15.0)
Requirement already satisfied: argparse>=1.2.1 in /Library/Python/2.7/site-packages (from mssql-cli) (1.4.0)
Requirement already satisfied: Pygments>=2.0 in /Library/Python/2.7/site-packages (from mssql-cli) (2.2.0)
Requirement already satisfied: humanize>=0.5.1 in /Library/Python/2.7/site-packages (from mssql-cli) (0.5.1)
Requirement already satisfied: cli-helpers<1.0.0,>=0.2.3 in /Library/Python/2.7/site-packages (from mssql-cli) (0.2.3)
Requirement already satisfied: prompt-toolkit<1.1.0,>=1.0.10 in /Users/shayneboyer/Library/Python/2.7/lib/python/site-packages (from mssql-cli) (1.0.14)
Requirement already satisfied: click>=4.1 in /Library/Python/2.7/site-packages (from mssql-cli) (6.7)
Requirement already satisfied: wheel>=0.29.0 in /Library/Python/2.7/site-packages (from mssql-cli) (0.31.1)
Requirement already satisfied: sqlparse<0.3.0,>=0.2.2 in /Library/Python/2.7/site-packages (from mssql-cli) (0.2.4)
Requirement already satisfied: configobj>=5.0.6 in /Library/Python/2.7/site-packages (from mssql-cli) (5.0.6)
Requirement already satisfied: applicationinsights>=0.11.1 in /Users/shayneboyer/Library/Python/2.7/lib/python/site-packages (from mssql-cli) (0.11.5)
Requirement already satisfied: future>=0.16.0 in /Library/Python/2.7/site-packages (from mssql-cli) (0.16.0)
Requirement already satisfied: enum34>=1.1.6 in /Users/shayneboyer/Library/Python/2.7/lib/python/site-packages (from mssql-cli) (1.1.6)
Requirement already satisfied: terminaltables>=3.0.0 in /Library/Python/2.7/site-packages (from cli-helpers<1.0.0,>=0.2.3->mssql-cli) (3.1.0)
Requirement already satisfied: backports.csv>=1.0.0 in /Library/Python/2.7/site-packages (from cli-helpers<1.0.0,>=0.2.3->mssql-cli) (1.0.6)
Requirement already satisfied: wcwidth in /Users/shayneboyer/Library/Python/2.7/lib/python/site-packages (from prompt-toolkit<1.1.0,>=1.0.10->mssql-cli) (0.1.7)
Requirement already satisfied: six>=1.9.0 in /Library/Python/2.7/site-packages (from prompt-toolkit<1.1.0,>=1.0.10->mssql-cli) (1.11.0)
azure-cli-shell 0.2.0 requires azure-cli, which is not installed.
Cleaning up...

Does install... still shows errors, but runs?