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

Unable to install SDK-python( v4-client-py) #79

Open
quinntwohao opened this issue Nov 29, 2023 · 3 comments
Open

Unable to install SDK-python( v4-client-py) #79

quinntwohao opened this issue Nov 29, 2023 · 3 comments

Comments

@quinntwohao
Copy link

(venv) ➜ DYDX python -V
Python 3.11.2

pip install v4-client-py

....

Downloading cbor2-5.5.1-cp311-cp311-macosx_11_0_arm64.whl (64 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.9/64.9 kB 6.4 MB/s eta 0:00:00
Downloading eth_abi-4.2.1-py3-none-any.whl (28 kB)
Downloading eth_typing-3.5.2-py3-none-any.whl (14 kB)
Downloading eth_utils-2.3.1-py3-none-any.whl (77 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.8/77.8 kB 8.4 MB/s eta 0:00:00
Building wheels for collected packages: ed25519-blake2b
Building wheel for ed25519-blake2b (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for ed25519-blake2b (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install to install the standalone command line developer tools.
See man xcode-select for more details.
UPDATING build/lib.macosx-10.9-universal2-cpython-311/ed25519_blake2b/_version.py
set build/lib.macosx-10.9-universal2-cpython-311/ed25519_blake2b/_version.py to '1.4'
error: command '/Users/quinn/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ed25519-blake2b
Failed to build ed25519-blake2b
ERROR: Could not build wheels for ed25519-blake2b, which is required to install pyproject.toml-based projects

@christophlins
Copy link

Could you try to install 'gcc' on your machine/container first and then rerun pip?

@h17
Copy link

h17 commented Jul 15, 2024

Seems like a related issue but when installing v4-client-py-v2...
GCC is installed (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0)...

pip install git+https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py-v2
Collecting git+https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py-v2
Cloning https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py-v2 to /tmp/pip-req-build-5i07_b3k
Running command git clone --filter=blob:none --quiet https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py-v2 /tmp/pip-req-build-5i07_b3k
fatal: repository 'https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py-v2/' not found
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py-v2 /tmp/pip-req-build-5i07_b3k did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py-v2 /tmp/pip-req-build-5i07_b3k did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@samtin0x
Copy link
Contributor

samtin0x commented Aug 9, 2024

Hi @h17 ,

The following worked for another user (issue #220):

Rust is 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants