Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Error when installing in new virtualenv #719

Open
lastcoolnameleft opened this issue Mar 23, 2020 · 0 comments
Open

Error when installing in new virtualenv #719

lastcoolnameleft opened this issue Mar 23, 2020 · 0 comments

Comments

@lastcoolnameleft
Copy link

I'm trying to install aztk inside a virtualenv (i.e. fresh install); however, I'm getting an error similar to #665

 …/tmp/spark  virtualenv aztk
Using base prefix '/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7'
New python executable in /Users/thfalgou/tmp/spark/aztk/bin/python3.7
Also creating executable in /Users/thfalgou/tmp/spark/aztk/bin/python
Installing setuptools, pip, wheel...
done.
 …/tmp/spark  aztk/bin/activate                                                                                                                   8.80 Dur
zsh: permission denied: aztk/bin/activate
 …/tmp/spark  source aztk/bin/activate                                                                                                               126 ↵
 …/tmp/spark  pip install aztk
Collecting aztk
  Using cached aztk-0.10.3-py3-none-any.whl (507 kB)
Collecting azure-mgmt-batch~=5.0.1
  Using cached azure_mgmt_batch-5.0.1-py2.py3-none-any.whl (87 kB)
Collecting pycryptodomex~=3.6.6
  Using cached pycryptodomex-3.6.6-cp37-cp37m-macosx_10_6_intel.whl (7.3 MB)
Collecting azure-storage-blob~=1.3.1
  Using cached azure_storage_blob-1.3.1-py2.py3-none-any.whl (77 kB)
Collecting paramiko~=2.4.2
  Using cached paramiko-2.4.3-py2.py3-none-any.whl (193 kB)
Collecting azure-batch~=5.1.0
  Using cached azure_batch-5.1.1-py2.py3-none-any.whl (593 kB)
Collecting azure-cosmosdb-table~=1.0.5
  Using cached azure_cosmosdb_table-1.0.6-py2.py3-none-any.whl (125 kB)
Collecting azure-mgmt-storage~=3.0.0
  Using cached azure_mgmt_storage-3.0.0-py2.py3-none-any.whl (682 kB)
Processing /Users/thfalgou/Library/Caches/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f/PyYAML-3.13-cp37-cp37m-macosx_10_12_x86_64.whl
Collecting azure-common~=1.1
  Using cached azure_common-1.1.25-py2.py3-none-any.whl (12 kB)
Collecting msrestazure<2.0.0,>=0.4.27
  Using cached msrestazure-0.6.3-py2.py3-none-any.whl (40 kB)
Collecting azure-mgmt-nspkg>=2.0.0
  Using cached azure_mgmt_nspkg-3.0.2-py3-none-any.whl (1.6 kB)
Collecting azure-storage-nspkg>=2.0.0
  Using cached azure_storage_nspkg-3.1.0-py2.py3-none-any.whl (1.7 kB)
Collecting azure-storage-common~=1.3
  Using cached azure_storage_common-1.4.2-py2.py3-none-any.whl (47 kB)
Collecting bcrypt>=3.1.3
  Using cached bcrypt-3.1.7-cp34-abi3-macosx_10_6_intel.whl (53 kB)
Collecting pynacl>=1.0.1
  Using cached PyNaCl-1.3.0-cp34-abi3-macosx_10_6_intel.whl (284 kB)
Collecting cryptography>=1.5
  Using cached cryptography-2.8-cp34-abi3-macosx_10_6_intel.whl (1.6 MB)
Collecting pyasn1>=0.1.7
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting msrest>=0.5.0
  Using cached msrest-0.6.11-py2.py3-none-any.whl (83 kB)
Collecting requests
  Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting azure-cosmosdb-nspkg>=2.0.0
  Using cached azure_cosmosdb_nspkg-2.0.2-py2.py3-none-any.whl (2.9 kB)
Collecting python-dateutil
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting adal<2.0.0,>=0.6.0
  Using cached adal-1.2.2-py2.py3-none-any.whl (53 kB)
Collecting azure-nspkg>=3.0.0
  Using cached azure_nspkg-3.0.2-py3-none-any.whl (1.5 kB)
Collecting six>=1.4.1
  Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting cffi>=1.1
  Using cached cffi-1.14.0-cp37-cp37m-macosx_10_9_x86_64.whl (174 kB)
Collecting isodate>=0.6.0
  Using cached isodate-0.6.0-py2.py3-none-any.whl (45 kB)
Collecting requests-oauthlib>=0.5.0
  Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
Collecting chardet<4,>=3.0.2
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna<3,>=2.5
  Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Collecting PyJWT>=1.0.0
  Using cached PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting pycparser
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Installing collected packages: azure-common, urllib3, chardet, idna, certifi, requests, six, python-dateutil, PyJWT, pycparser, cffi, cryptography, adal, isodate, oauthlib, requests-oauthlib, msrest, msrestazure, azure-nspkg, azure-mgmt-nspkg, azure-mgmt-batch, pycryptodomex, azure-storage-nspkg, azure-storage-common, azure-storage-blob, bcrypt, pynacl, pyasn1, paramiko, azure-batch, azure-cosmosdb-nspkg, azure-cosmosdb-table, azure-mgmt-storage, PyYAML, aztk
Successfully installed PyJWT-1.7.1 PyYAML-3.13 adal-1.2.2 aztk-0.10.3 azure-batch-5.1.1 azure-common-1.1.25 azure-cosmosdb-nspkg-2.0.2 azure-cosmosdb-table-1.0.6 azure-mgmt-batch-5.0.1 azure-mgmt-nspkg-3.0.2 azure-mgmt-storage-3.0.0 azure-nspkg-3.0.2 azure-storage-blob-1.3.1 azure-storage-common-1.4.2 azure-storage-nspkg-3.1.0 bcrypt-3.1.7 certifi-2019.11.28 cffi-1.14.0 chardet-3.0.4 cryptography-2.8 idna-2.9 isodate-0.6.0 msrest-0.6.11 msrestazure-0.6.3 oauthlib-3.1.0 paramiko-2.4.3 pyasn1-0.4.8 pycparser-2.20 pycryptodomex-3.6.6 pynacl-1.3.0 python-dateutil-2.8.1 requests-2.23.0 requests-oauthlib-1.3.0 six-1.14.0 urllib3-1.25.8
 …/tmp/spark  aztk spark init                                                                                                                    26.88 Dur
This directory has already been initialized.
 …/tmp/spark  rm -rf .aztk
 …/tmp/spark  aztk spark init
 …/tmp/spark  wget -q https://raw.githubusercontent.com/Azure/aztk/v0.10.3/account_setup.sh -O account_setup.sh &&
chmod 755 account_setup.sh &&
/bin/bash account_setup.sh
Installing dependencies...
 …/tmp/spark  /bin/bash account_setup.sh                                                                                                               1 ↵
Installing dependencies...
 …/tmp/spark  cat account_setup.sh                                                                                                                     1 ↵
#!/bin/bash

echo "Installing dependencies..." &&
pip install --force-reinstall --upgrade --user pyyaml==3.12 azure==3.0.0 azure-cli-core==2.0.30 msrestazure==0.4.25 > /dev/null 2>&1 &&
echo "Finished installing dependencies." &&
echo "Getting account setup script..." &&
wget -q https://raw.githubusercontent.com/Azure/aztk/v0.10.3/account_setup.py -O account_setup.py &&
chmod 755 account_setup.py &&
echo "Finished getting account setup script." &&
echo "Running account setup script..." &&
python3 account_setup.py
 …/tmp/spark  python3 account_setup.py
Traceback (most recent call last):
  File "account_setup.py", line 10, in <module>
    from azure.graphrbac import GraphRbacManagementClient
ModuleNotFoundError: No module named 'azure.graphrbac'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant