Skip to content

Troubleshooting

PyPI/GitHub

If you're getting the following error:

    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    Error: b'You need to install postgresql-server-dev-NN for building a server-side extension or libpq-dev for building a client-side application.\n'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-mkj8d84u/psycopg2/

If you never install PostgreSQL before, you must install it first, by doing this:

sudo apt install postgresql-12
or
sudo yum install postgresql-12

Once you installed this, run the pip3 command again.

pip3 install faradaysec
or
pip3 install .

Nix

directory /nix exists, but is not writable by you

If you never install Nix before, this error appears because you have installed Faraday server or client .deb or .rpm on the system. You must uninstall it first, by doing this:

sudo apt remove faraday-server
Once you uninstalled this, remove /nix directory and then run the Nix install again.

sudo rm -rf /nix

Error: while setting up the build environment: mounting /proc: Operation not permitted

This happens when running Nix on a container like LXC or similar. In theses cases, you should disable the sandbox.

First, create the following file:

~/.config/nix/nix.conf

Run the following command to add the flag to the file:

echo 'sandbox = false' >> ~/.config/nix/nix.conf

The, run the Nix install again.