Search code examples
macospython-wheelpynaclmultiversxerdpy

Cannot install erdpy on macOS - failed building wheel for pynacl


I'm trying to install erdpy on a macOS by following the official guide, I successfully managed to download erdpy-up and when I run it, I receive the following error:

File "/opt/homebrew/Cellar/[email protected]/3.8.12/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 161, in run
   raise Exception("ERROR: The 'make' utility is missing from PATH")
Exception: ERROR: The 'make' utility is missing from PATH
----------------------------------------
ERROR: Failed building wheel for pynacl
Failed to build pynacl
ERROR: Could not build wheels for pynacl which use PEP 517 and cannot be installed directly
CRITICAL:installer:Could not install erdpy.

Right before that, I see:

Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pycryptodomex, since package 'wheel' is not installed.
Building wheels for collected packages: pynacl
  Building wheel for pynacl (PEP 517) ... error

Tried to install libsodium using brew but erdpy installation still failed.

Is there another way to install / build it?


Solution

  • I have make installed on my system. The log message is not very clear, but in the end I figured out how I can install erdpy on my Mac. First I installed libsodium:

    brew install libsodium
    

    and then I installed erdpy using pip3:

    pip3 install --user --upgrade --no-cache-dir erdpy
    

    Then erdpy -v returns

    erdpy 1.0.18