Open rfc821 opened 1 year ago
Thank you for opening this issue, we will look into it.
@rfc821 Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.
Plan 1:
Please run the pip list
command on your box and check if azure.communication
package is present.
Plan 2: Please run the below command in order:
pip3 uninstall azure-communication-email
pip3 install azure-communication-email==1.0.0
pip3 install azure-communication-administration
Plan 3: Could you try the steps mentioned here in the official docs and/or try reinstalling Azure CLI?
Here are the same for reference
brew update && brew install python@3.10 && brew upgrade python@3.10
brew link --overwrite python@3.10
Please let me know if you still see the same issue after following the above plans. Awaiting your reply.
Plan 1:
Do not have the pip command. But used pip3 list
instead:
Package Version
---------------------------------- ---------
altgraph 0.17.2
azure-common 1.1.28
azure-communication-administration 1.0.0b4
azure-communication-email 1.0.0
azure-communication-identity 1.3.1
azure-core 1.29.4
azure-mgmt-core 1.4.0
certifi 2023.7.22
charset-normalizer 3.2.0
future 0.18.2
idna 3.4
isodate 0.6.1
macholib 1.15.2
msrest 0.7.1
oauthlib 3.2.2
pip 23.2.1
requests 2.31.0
requests-oauthlib 1.3.1
setuptools 58.0.4
six 1.15.0
typing_extensions 4.8.0
urllib3 2.0.5
wheel 0.37.0
Plan 2: done
Plan 3: done
Result: I did run the command email send again and it resulted in the same error. The issue still persists:
The command failed with an unexpected error. Here is the traceback:
No module named 'azure.communication'
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.52.0_1/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/homebrew/Cellar/azure-cli/2.52.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.52.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/homebrew/Cellar/azure-cli/2.52.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.52.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
return self.handler(*args, **kwargs)
File "/opt/homebrew/Cellar/azure-cli/2.52.0_1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
File "/Users/benni/.azure/cliextensions/communication/azext_communication/manual/_client_factory.py", line 85, in cf_communication_email
from azure.communication.email import EmailClient
ModuleNotFoundError: No module named 'azure.communication'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
In my opinion pip3 list is not listing site-packages from the directory where azure-cli is storing it's modules. There is no azure-communication-sms or azure-communication-email in this directory. There is also no azure-communication-sms or azure-communication-email in pip list when listing in python binary installed by brew and used by azure-cli. Something is probably wrong with installing this extension when azure-cli is installed by brew.
Service team has been added to look into this further.
I was able to repro this issue today, any update pls?
Still encountering this issue, is there any update to report?
I am also experiencing this on Mac Sonoma 14.5
We're approaching a year on this issue - is there an update?
Additional context: I have the azure cli installed with brew and added the container apps extension with the az extension add --name
command. The container apps extension works as expected.
Describe the bug
Tried sending an email following https://learn.microsoft.com/en-us/cli/azure/communication/email?view=azure-cli-latest I am using a macOS Ventura 13.6 with Apple Silicon
Related command
Errors
Issue script & Debug output
Expected behavior
Should find the installed communication extension and try to send email.
Environment Summary
azure-cli 2.52.0
core 2.52.0 telemetry 1.1.0
Extensions: account 0.2.5 communication 1.7.2b1
Dependencies: msal 1.24.0b1 azure-mgmt-resource 23.1.0b2
Additional context
Looks like this is a common issue also with oder versions of the communication extension on Apple macOS. There were already some issues, but they were closed due to no reaction: