Open quinntwohao opened 9 months ago
Could you try to install 'gcc' on your machine/container first and then rerun pip?
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.
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:
First, ensure you have the necessary build tools:
sudo apt-get update
sudo apt-get install build-essential python3-dev
Install additional system libraries that might be required:
sudo apt-get install libssl-dev
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.
Upgrade pip, setuptools, and wheel to their latest versions:
pip install --upgrade pip setuptools wheel
Try installing the ed25519-blake2b
package separately:
pip install ed25519-blake2b
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
(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 usexcode-select --install
to install the standalone command line developer tools. Seeman 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