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

Error when installing on Azure CLI #718

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

Error when installing on Azure CLI #718

lastcoolnameleft opened this issue Mar 23, 2020 · 5 comments

Comments

@lastcoolnameleft
Copy link

I was getting the same error from: #665

So, I tried using the 0.9.1 version and now get this error when installing:

tommy@Azure:~$ wget -q https://raw.githubusercontent.com/Azure/aztk/v0.9.1/account_setup.shwget -q https://raw.githubusercontent.com/Azure/aztk/v0.9.1/account_setup.sh
tommy@Azure:~$ chmod 755 account_setup.sh
tommy@Azure:~$ /bin/bash account_setup.sh
Installing dependencies...

Finished installing dependencies.
Getting account setup script...
Finished getting account setup script.
Running account setup script...

Getting credentials.
Your credentials class does not support session injection. Performance will not be at the maximum.
Traceback (most recent call last):
  File "/home/tommy/.local/lib/python3.5/site-packages/msrest/pipeline/requests.py", line 65, in send
    self._creds.signed_session(session)
  File "/home/tommy/.local/lib/python3.5/site-packages/azure/common/credentials.py", line 78, in signed_session
    return credentials.signed_session(session)
TypeError: signed_session() takes 1 positional argument but 2 were given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "account_setup.py", line 332, in <module>
    tenant_ids = [tenant.id for tenant in subscription_client.tenants.list()]
  File "account_setup.py", line 332, in <listcomp>
    tenant_ids = [tenant.id for tenant in subscription_client.tenants.list()]
  File "/home/tommy/.local/lib/python3.5/site-packages/msrest/paging.py", line 143, in __next__
    self.advance_page()
  File "/home/tommy/.local/lib/python3.5/site-packages/msrest/paging.py", line 129, in advance_page
    self._response = self._get_next(self.next_link)
  File "/home/tommy/.local/lib/python3.5/site-packages/azure/mgmt/subscription/operations/tenants_operations.py", line 81, in internal_paging
    request, header_parameters, **operation_config)
  File "/home/tommy/.local/lib/python3.5/site-packages/msrest/service_client.py", line 336, in send
    pipeline_response = self.config.pipeline.run(request, **kwargs)
  File "/home/tommy/.local/lib/python3.5/site-packages/msrest/pipeline/__init__.py", line 197, in run
    return first_node.send(pipeline_request, **kwargs)  # type: ignore
  File "/home/tommy/.local/lib/python3.5/site-packages/msrest/pipeline/__init__.py", line 150, in send
    response = self.next.send(request, **kwargs)
  File "/home/tommy/.local/lib/python3.5/site-packages/msrest/pipeline/requests.py", line 68, in send
    request.context.session = session = self._creds.signed_session()
  File "/home/tommy/.local/lib/python3.5/site-packages/azure/common/credentials.py", line 78, in signed_session
    return credentials.signed_session(session)
TypeError: signed_session() takes 1 positional argument but 2 were given
@manthanthakker
Copy link

I am having the same issue.

@manthanthakker
Copy link

Please follow the manual steps for resource creation: https://aztk.readthedocs.io/en/v0.9.1/00-getting-started.html

@DaveVoyles
Copy link

DaveVoyles commented May 8, 2020

Same issue. @manthanakker those instructions you linked to are what cause the issue. Specifically:

image
Throws the error:

image

@manthanthakker
Copy link

@DaveVoyles Follow the documentation to create resources manually (worked for me): https://aztk.readthedocs.io/en/v0.10.2/00-getting-started.html#manual-resource-creation
The automated script (account_steup.sh), unfortunately, does not work as expected.

@lastcoolnameleft
Copy link
Author

I tried this again on a brand new OSX host, and am still getting the same issues. Any progress?

Also, the readthedocs.io points to 0.9.1 and this repo points to 0.10.3. There might be some versioning issues happening.

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

3 participants