dydxprotocol / v4-clients

Other
61 stars 51 forks source link

pip install dydx-v4-client fails on ubuntu with error "Failed building wheel for ed25519-blake2b" #220

Closed isaac-peleg closed 1 month ago

isaac-peleg commented 1 month ago

pip install dydx-v4-client fails on ubuntu Error "Failed building wheel for ed25519-blake2b" ubuntu 24.04 python 3.12.3 gcc is installed

linear[bot] commented 1 month ago

GH-61 pip install dydx-v4-client fails on ubuntu with error "Failed building wheel for ed25519-blake2b"

samtin0x commented 1 month ago

Hi Isaac, the error suggests there might be some compatibility issues or missing dependencies.

The one thing I can think about is Rust, which may be required for building the ed25519-blake2b package. Let's try to resolve this with the following steps:

  1. First, ensure you have the necessary build tools:

    sudo apt-get update
    sudo apt-get install build-essential python3-dev
  2. Install additional system libraries that might be required:

    sudo apt-get install libssl-dev
  3. Install Rust using rustup:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

    Follow the prompts to complete the installation. After installation, you may need to restart your terminal or run source $HOME/.cargo/env to update your PATH.

  4. Upgrade pip, setuptools, and wheel to their latest versions:

    pip install --upgrade pip setuptools wheel
  5. Try installing the ed25519-blake2b package separately:

    pip install ed25519-blake2b
  6. If the above step succeeds, attempt to install dydx-v4-client again:

    pip install dydx-v4-client

If you're still encountering issues after trying these steps, please run the installation with the verbose flag and share the full output. Let me know!

pip install -v dydx-v4-client
isaac-peleg commented 1 month ago

Hello Saul

I followed the suggested steps and installation of dydx-v4-client succeeded now!

Thank you very much