FAQ

Errors about environment variables

An environment variable is a variable that is defined in the terminal and used by the executable afterwards. In the context of Deepomatic CLI there is one environment variables used:

  • DEEPOMATIC_API_KEY is used to interact with trained models and to send images or JSON to Deepomatic Studio.

First you need to retrieve those values from the Deepomatic Studio interface. Click on your name on the top right of the page and go to My account where the API Key will be displayed in the section Credentials.

Copy this value and set it as your environment variable by running this line in your terminal.

Linux/MacOS
Windows
Linux/MacOS
export DEEPOMATIC_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Windows
$Env:DEEPOMATIC_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Error 11001: getaddrinfo failed

You get this error because Deepomatic CLI cannot reach the Deepomatic endpoints. Most of the times this is the consequence of a Proxy that has not been setup.

Setup a proxy

The easiest way to do it is to simply pass the proxy parameters as an environment variable. You will need:

  • proxyserver: the proxy server address.

  • proxyport: the proxy server port.

  • user: your proxy user login identifier.

  • password: your proxy authentication password.

Linux/MacOS
Windows
Linux/MacOS
export https_proxy="http://user:password@proxyserver:proxyport"
Windows
$Env:https_proxy="http://user:password@proxyserver:proxyport"

The Deepomatic CLI uses only secured https connection. As such, you just need to setup the https_proxy environment variable.

If you're running inferences on your local infrastructure you might want to take a look at how to Configure Docker to use a proxy server.