Command errored out with exit status 1: python setup.py egg_info
Issue
When scanning a Python project the Unified Agent is unable to resolve all of your dependencies and you see the error: Command errored out with exit status 1: python setup.py egg_info
.
Solution
This error can occur when a dependency has two options for installation - the source and the binary. If you are using the source option, the dependency may require additional components to be installed on the target host where the package is being installed.
For example psycopg2 is a dependency that requires postgresql to be installed.
Here are the two options for psycopg2:
psycopg2==2.8.3 <--- from source
psycopg2-binary==2.8.3 <-- binary
If you are scanning the project on your local machine, simply install all pre-requisites to your local machine. If you are using one of our Developer Integrations, in order to scan this dependency you will need to scan the binary version or request a modification to the Scanner Dockerfile by opening a case with Mend Support.