Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Hubs] Auth with SAS Token sample not working with Python2.7 #16091

Closed
3 tasks done
swathipil opened this issue Jan 12, 2021 · 0 comments · Fixed by #16207
Closed
3 tasks done

[Event Hubs] Auth with SAS Token sample not working with Python2.7 #16091

swathipil opened this issue Jan 12, 2021 · 0 comments · Fixed by #16207
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Event Hubs

Comments

@swathipil
Copy link
Member

Describe the bug
Running sample azure-eventhub\samples\sync_samples\authenticate_with_sas_token.py produces an error on line 80.

Exception or Stack Trace

  File ".\authenticate_with_sas_token.py", line 80
    lambda pc, event: print(pc.partition_id, ":", event),
                          ^
SyntaxError: invalid syntax

To Reproduce
Install Python 2.7

pip install azure-eventhub
cd azure-sdk-for-python\sdk\eventhub\azure-eventhub\samples\sync_samples
python authenticate_with_sas_token.py

Code Snippet
lambda pc, event: print(pc.partition_id, ":", event),

Expected behavior
Expect it to print partition id and event, without an error.

Setup (please complete the following information):

  • Python Version: Python 2.7
  • SDK Version: azure-eventhub-5.2.1

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added
@swathipil swathipil self-assigned this Jan 12, 2021
@swathipil swathipil changed the title [EH] Auth with SAS Token sample not working with Python2.7 [Event Hubs] Auth with SAS Token sample not working with Python2.7 Jan 12, 2021
@yunhaoling yunhaoling added the Client This issue points to a problem in the data-plane of the library. label Jan 12, 2021
@swathipil swathipil added this to the [2021] February milestone Jan 13, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Event Hubs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants