Error when importing

When I import the vision api I get the following error

Traceback (most recent call last):
  File "/home/runner/vision1/", line 2, in <module>
    import as sdk
  File "/home/runner/vision1/.pythonlibs/lib/python3.10/site-packages/azure/ai/vision/", line 8, in <module>
    from .vision_base_client import *
  File "/home/runner/vision1/.pythonlibs/lib/python3.10/site-packages/azure/ai/vision/", line 10, in <module>
    from .properties import PropertyCollection
  File "/home/runner/vision1/.pythonlibs/lib/python3.10/site-packages/azure/ai/vision/", line 6, in <module>
    from .interop import _c_str, _call_hr_fn, _call_string_function_and_free, _call_bytes_fn, _spx_handle, _sdk_lib
  File "/home/runner/vision1/.pythonlibs/lib/python3.10/site-packages/azure/ai/vision/", line 17, in <module>
    _sdk_lib = __load_library.LoadLibrary(__lib_path)
  File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/ctypes/", line 452, in LoadLibrary
    return self._dlltype(name)
  File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/ctypes/", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: cannot open shared object file: No such file or directory

Replit Profile:

According to docs, there are some libraries you need to install.
Install them in the hidden replit.nix file.
Example (you may need to include more libraries):

{ pkgs }: {
	deps = [
1 Like