Closed Schnubbeldibuh closed 1 year ago
@Schnubbeldibuh, Thank you for the detailed description of your issue! Is the Jupyter Container running as an Ubuntu VM on a macOS machine?
@dargilco we ran jupyter notebook in docker linux mode by setting
export DOCKER_DEFAULT_PLATFORM=linux/amd64
to force docker to emulate a underlying linux platform
on a macOS machine?
@dargilco yes
@Schnubbeldibuh we have not tested this scenario so I cannot comment. We do not yet support Python on macOS, and I'm not sure what to expect from a Jupyter Ubuntu Container running on macOS. So unfortunately, at the moment I don't have a solution for you. We will support macOS in one of our next releases and I took note to test a Jupyter Ubuntu Container when we do. I am closing this issue.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Problem: Tried Image Analysis 4.0 preview Version (https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40?tabs=visual-studio%2Clinux&pivots=programming-language-python) and sdk in
import azure.ai.vision as sdk
doesn't work in Jupyter Notebook on Jupyter Container but it works as a curl command.Ran the code with an URL and a local image from https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/python/image-analysis/samples.py Used the right format for endpoint:
https://<your-computer-vision-resource-name>.cognitiveservices.azure.com
- like described in https://github.com/Azure-Samples/azure-ai-vision-sdk/tree/main/samples/python/image-analysis#troubleshooting The api key and resource is also valid and works with Version 3.2 and with the following request tool https://eastus.dev.cognitive.microsoft.com/docs/services/unified-vision-apis-public-preview-2023-04-01-preview/operations/61d65934cd35050c20f73ab6/console Also works on shell with a random picture URL:Any log messages given by the failure
With local image as input:
With URL as input:
Expected/desired behavior
For URL:
Or result for local images.
OS and Version?
Used a Jupyter Container because the pip azure-ai-vision package doesn't comply with macOS so far. PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.2 LTS (Jammy Jellyfish)"
Versions
Python 3.9.17 azure-ai-vision 0.13.0b1
Mention any other details that might be useful
Already read this issue: https://github.com/Azure-Samples/azure-ai-vision-sdk/issues/40 Created a docker file where the version
openssl-1.1.1u
was already patched.Thanks! We'll be in touch soon.