Azure-Samples/azure-intelligent-edge-patterns

processimages module error: ImportError: cannot import name 'BlockBlobService'

ksaye opened this issue · 0 comments

ksaye commented

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [X] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Per 'Azure/azure-storage-python#389', the python library has been changed where BlockBlobService does not exist anymore. The module processimages in blob.py, it makes reference to 'from azure.storage.blob import BlockBlobService, PublicAccess'.

using docker logs processimages you will see:

2020-01-23 16:26:27.922704: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2020-01-23 16:26:27.922921: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2020-01-23 16:26:27.922944: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
File "./main.py", line 13, in
from blob import BlobUploader
File "/app/blob.py", line 5, in
from azure.storage.blob import BlockBlobService, PublicAccess
ImportError: cannot import name 'BlockBlobService'

To resolve this, add a version statement to requirements.txt such as:

azure-storage-blob==2.1.0

Any log messages given by the failure

2020-01-23 16:26:27.922704: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2020-01-23 16:26:27.922921: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2020-01-23 16:26:27.922944: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
File "./main.py", line 13, in
from blob import BlobUploader
File "/app/blob.py", line 5, in
from azure.storage.blob import BlockBlobService, PublicAccess
ImportError: cannot import name 'BlockBlobService'

Expected/desired behavior

OS and Version?

Ubuntu 18.04

Versions

Mention any other details that might be useful