Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fix for pynacl to "Setting up and running Launchpad" #93

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions how-to/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ Finally, build the database schema (this may take several minutes):

$ make schema

If you encounter an error while building Python wheels, see :ref:`pynacl-fix`.

Running
=======

Expand Down Expand Up @@ -417,6 +419,27 @@ the bridge interface on your computer):
sudo ufw allow in on lxdbr0
sudo ufw route allow in on lxdbr0

.. _pynacl-fix:

Error building Python wheels
----------------------------

When running ``make schema`` on some machines, ``pynacl`` `fails to build <https://github.com/pyca/pynacl/issues/553>`_, leading to ``ERROR: Failed building wheel for pynacl``.

If you encounter this issue, try running the following:

.. code-block:: shell-session

$ sudo apt install --yes libsodium-dev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually tend to not add the -y flag in these commands to make it more of a conscious decision that users install an extra package, but that's a nit


Then add the following line to the ``Makefile`` under the ``PIP_ENV`` commands:

.. code-block:: shell-session

PIP_ENV += SODIUM_INSTALL=system

Then run `make schema` again.

Email
-----

Expand Down
Loading