Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Error installing fastecdsa within Poetry #371

Closed
witfyl-ravped opened this issue Dec 22, 2022 · 6 comments
Closed

Error installing fastecdsa within Poetry #371

witfyl-ravped opened this issue Dec 22, 2022 · 6 comments
Assignees

Comments

@witfyl-ravped
Copy link

witfyl-ravped commented Dec 22, 2022

I'm unable to install fastecdsa when running poetry install I get the following error:

  `In file included from src/curve.c:1:
  src/curve.h:4:10: fatal error: 'gmp.h' file not found
  #include "gmp.h"
           ^~~~~~~
  1 error generated.`

I'm able to install both fastecdsa and gmp locally on my machine but it consistently fails in the Poetry virtual environment. Full log below. This is using Python 3.9.16

./scripts/install_dev_tools.sh
npm: 9.2.0
npm: v19.3.0
pip: pip 22.3.1 from /Users/xxxx/src/zk-dn/cairo_env/lib/python3.10/site-packages/pip (python 3.10)
pip3: pip 22.3.1 from /Users/xxxx/src/zk-dn/cairo_env/lib/python3.10/site-packages/pip (python 3.10)
python: Python 3.10.9
python3: Python 3.10.9
Collecting poetry==1.2.1
  Using cached poetry-1.2.1-py3-none-any.whl (211 kB)
Collecting virtualenv!=20.4.5,!=20.4.6,>=20.4.3
  Using cached virtualenv-20.17.1-py3-none-any.whl (8.8 MB)
Collecting dulwich<0.21.0,>=0.20.46
  Using cached dulwich-0.20.50-cp310-cp310-macosx_11_0_arm64.whl (460 kB)
Collecting crashtest<0.4.0,>=0.3.0
  Using cached crashtest-0.3.1-py3-none-any.whl (7.0 kB)
Collecting cachecontrol[filecache]<0.13.0,>=0.12.9
  Using cached CacheControl-0.12.11-py2.py3-none-any.whl (21 kB)
Collecting cleo<2.0.0,>=1.0.0a5
  Using cached cleo-1.0.0a5-py3-none-any.whl (78 kB)
Collecting cachy<0.4.0,>=0.3.0
  Using cached cachy-0.3.0-py2.py3-none-any.whl (20 kB)
Collecting xattr<0.10.0,>=0.9.7
  Using cached xattr-0.9.9-cp310-cp310-macosx_11_0_arm64.whl (15 kB)
Collecting platformdirs<3.0.0,>=2.5.2
  Using cached platformdirs-2.6.0-py3-none-any.whl (14 kB)
Collecting requests-toolbelt<0.10.0,>=0.9.1
  Using cached requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
Collecting keyring>=21.2.0
  Using cached keyring-23.13.1-py3-none-any.whl (37 kB)
Collecting pkginfo<2.0,>=1.5
  Using cached pkginfo-1.9.2-py3-none-any.whl (26 kB)
Collecting urllib3<2.0.0,>=1.26.0
  Using cached urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
Collecting tomlkit!=0.11.2,!=0.11.3,<1.0.0,>=0.11.1
  Using cached tomlkit-0.11.6-py3-none-any.whl (35 kB)
Collecting poetry-plugin-export<2.0.0,>=1.0.7
  Using cached poetry_plugin_export-1.2.0-py3-none-any.whl (10 kB)
Collecting pexpect<5.0.0,>=4.7.0
  Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting packaging>=20.4
  Using cached packaging-22.0-py3-none-any.whl (42 kB)
Collecting requests<3.0,>=2.18
  Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting jsonschema<5.0.0,>=4.10.0
  Using cached jsonschema-4.17.3-py3-none-any.whl (90 kB)
Collecting shellingham<2.0,>=1.5
  Using cached shellingham-1.5.0-py2.py3-none-any.whl (9.3 kB)
Collecting html5lib<2.0,>=1.0
  Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB)
Collecting poetry-core==1.2.0
  Using cached poetry_core-1.2.0-py3-none-any.whl (525 kB)
Collecting msgpack>=0.5.2
  Using cached msgpack-1.0.4-cp310-cp310-macosx_11_0_arm64.whl (69 kB)
Collecting lockfile>=0.9
  Using cached lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
Collecting pylev<2.0.0,>=1.3.0
  Using cached pylev-1.4.0-py2.py3-none-any.whl (6.1 kB)
Collecting six>=1.9
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting webencodings
  Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting attrs>=17.4.0
  Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
  Using cached pyrsistent-0.19.2-cp310-cp310-macosx_10_9_universal2.whl (82 kB)
Collecting importlib-metadata>=4.11.4
  Using cached importlib_metadata-5.2.0-py3-none-any.whl (21 kB)
Collecting jaraco.classes
  Using cached jaraco.classes-3.2.3-py3-none-any.whl (6.0 kB)
Collecting ptyprocess>=0.5
  Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting poetry-plugin-export<2.0.0,>=1.0.7
  Using cached poetry_plugin_export-1.1.2-py3-none-any.whl (10 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting charset-normalizer<3,>=2
  Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting distlib<1,>=0.3.6
  Using cached distlib-0.3.6-py2.py3-none-any.whl (468 kB)
Collecting filelock<4,>=3.4.1
  Using cached filelock-3.8.2-py3-none-any.whl (10 kB)
Collecting cffi>=1.0
  Using cached cffi-1.15.1-cp310-cp310-macosx_11_0_arm64.whl (174 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting zipp>=0.5
  Using cached zipp-3.11.0-py3-none-any.whl (6.6 kB)
Collecting more-itertools
  Using cached more_itertools-9.0.0-py3-none-any.whl (52 kB)
Installing collected packages: webencodings, pylev, ptyprocess, msgpack, lockfile, distlib, zipp, urllib3, tomlkit, six, shellingham, pyrsistent, pycparser, poetry-core, platformdirs, pkginfo, pexpect, packaging, more-itertools, idna, filelock, crashtest, charset-normalizer, certifi, cachy, attrs, virtualenv, requests, jsonschema, jaraco.classes, importlib-metadata, html5lib, dulwich, cleo, cffi, xattr, requests-toolbelt, keyring, cachecontrol, poetry-plugin-export, poetry
Successfully installed attrs-22.2.0 cachecontrol-0.12.11 cachy-0.3.0 certifi-2022.12.7 cffi-1.15.1 charset-normalizer-2.1.1 cleo-1.0.0a5 crashtest-0.3.1 distlib-0.3.6 dulwich-0.20.50 filelock-3.8.2 html5lib-1.1 idna-3.4 importlib-metadata-5.2.0 jaraco.classes-3.2.3 jsonschema-4.17.3 keyring-23.13.1 lockfile-0.12.2 more-itertools-9.0.0 msgpack-1.0.4 packaging-22.0 pexpect-4.8.0 pkginfo-1.9.2 platformdirs-2.6.0 poetry-1.2.1 poetry-core-1.2.0 poetry-plugin-export-1.1.2 ptyprocess-0.7.0 pycparser-2.21 pylev-1.4.0 pyrsistent-0.19.2 requests-2.28.1 requests-toolbelt-0.9.1 shellingham-1.5.0 six-1.16.0 tomlkit-0.11.6 urllib3-1.26.13 virtualenv-20.17.1 webencodings-0.5.1 xattr-0.9.9 zipp-3.11.0
poetry: Poetry (version 1.2.1)
The currently activated Python version 3.10.9 is not supported by the project (>=3.8,<3.10).
Trying to find and use a compatible version.
Using python3.9 (3.9.16)
Creating virtualenv starknet-devnet-fao8KG58-py3.9 in /Users/xxxx/Library/Caches/pypoetry/virtualenvs
Installing dependencies from lock file

Package operations: 94 installs, 0 updates, 0 removals

  - Installing toolz (0.12.0)
  - Installing cytoolz (0.12.0)
  - Installing eth-hash (0.3.3)
  - Installing eth-typing (2.3.0)
  - Installing eth-utils (1.10.0)
  - Installing six (1.16.0)
  - Installing base58 (2.1.1)
  - Installing certifi (2022.9.24)
  - Installing charset-normalizer (2.1.1)
  - Installing eth-keys (0.3.4)
  - Installing frozenlist (1.3.3)
  - Installing hexbytes (0.3.0)
  - Installing idna (3.4)
  - Installing multidict (6.0.2)
  - Installing netaddr (0.8.0)
  - Installing parsimonious (0.8.1)
  - Installing pycryptodome (3.15.0)
  - Installing pyparsing (3.0.9)
  - Installing rlp (2.0.1)
  - Installing urllib3 (1.26.13)
  - Installing varint (1.0.2)
  - Installing aiosignal (1.3.1)
  - Installing async-timeout (4.0.2)
  - Installing attrs (22.1.0)
  - Installing bitarray (2.6.0)
  - Installing eth-abi (2.2.0)
  - Installing eth-keyfile (0.5.1)
  - Installing eth-rlp (0.2.1)
  - Installing exceptiongroup (1.0.4)
  - Installing iniconfig (1.1.1)
  - Installing multiaddr (0.0.9)
  - Installing mypy-extensions (0.4.3)
  - Installing packaging (21.3)
  - Installing pluggy (1.0.0)
  - Installing pyrsistent (0.19.2)
  - Installing requests (2.28.1)
  - Installing tomli (2.0.1)
  - Installing typing-extensions (4.3.0)
  - Installing yarl (1.8.1)
  - Installing aiohttp (3.8.3)
  - Installing eth-account (0.5.9)
  - Installing ipfshttpclient (0.8.0a2)
  - Installing jsonschema (3.2.0)
  - Installing lazy-object-proxy (1.8.0)
  - Installing lru-dict (1.1.8)
  - Installing marshmallow (3.17.1)
  - Installing mpmath (1.2.1)
  - Installing protobuf (3.20.3)
  - Installing pytest (7.2.0)
  - Installing typing-inspect (0.8.0)
  - Installing websockets (9.1)
  - Installing wrapt (1.13.3)
  - Installing astroid (2.9.3)
  - Installing cachetools (5.2.0)
  - Installing ecdsa (0.18.0)
  - Installing fastecdsa (2.2.3)

Command ['/Users/xxxxx/Library/Caches/pypoetry/virtualenvs/starknet-devnet-fao8KG58-py3.9/bin/python', '-m', 'pip', 'install', '--no-deps', '-r', '/var/folders/qm/s43xmwq14sb8hmm0xmzmjy_m0000gn/T/fastecdsa-2.2.3yb1s0ggtreqs.txt'] errored with the following return code 1, and output:
Collecting fastecdsa==2.2.3
  Using cached fastecdsa-2.2.3.tar.gz (48 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: fastecdsa
  Building wheel for fastecdsa (setup.py): started
  Building wheel for fastecdsa (setup.py): finished with status 'error'
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [49 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-11-arm64-cpython-39
      creating build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/benchmark.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/util.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/__init__.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/keys.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/curve.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/point.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/ecdsa.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      creating build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_point.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_keygen.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_nonce_generation.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_key_recovery.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_key_export_import.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_whycheproof_vectors.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/__init__.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_prehashed.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_brainpool_ecdh.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_rfc6979_ecdsa.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_whitespace_parsing.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_prime_field_curve_math.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_p256_ecdsa.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      creating build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/pem.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/util.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/__init__.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/sec1.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/der.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/asn1.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      creating build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/test_sec1.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/__init__.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/test_der.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests/encoding
      running build_ext
      building 'fastecdsa.curvemath' extension
      creating build/temp.macosx-11-arm64-cpython-39
      creating build/temp.macosx-11-arm64-cpython-39/src
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -Isrc/ -I/Users/xxxx/Library/Caches/pypoetry/virtualenvs/starknet-devnet-fao8KG58-py3.9/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/curve.c -o build/temp.macosx-11-arm64-cpython-39/src/curve.o -O2
      In file included from src/curve.c:1:
      src/curve.h:4:10: fatal error: 'gmp.h' file not found
      #include "gmp.h"
               ^~~~~~~
      1 error generated.
      error: command '/usr/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 fastecdsa
  Running setup.py clean for fastecdsa
Failed to build fastecdsa
Installing collected packages: fastecdsa
  Running setup.py install for fastecdsa: started
  Running setup.py install for fastecdsa: finished with status 'error'
  error: subprocess-exited-with-error

  × Running setup.py install for fastecdsa did not run successfully.
  │ exit code: 1
  ╰─> [51 lines of output]
      running install
      /Users/xxx/Library/Caches/pypoetry/virtualenvs/starknet-devnet-fao8KG58-py3.9/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.macosx-11-arm64-cpython-39
      creating build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/benchmark.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/util.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/__init__.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/keys.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/curve.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/point.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      copying fastecdsa/ecdsa.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa
      creating build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_point.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_keygen.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_nonce_generation.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_key_recovery.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_key_export_import.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_whycheproof_vectors.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/__init__.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_prehashed.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_brainpool_ecdh.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_rfc6979_ecdsa.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_whitespace_parsing.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_prime_field_curve_math.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      copying fastecdsa/tests/test_p256_ecdsa.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests
      creating build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/pem.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/util.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/__init__.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/sec1.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/der.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      copying fastecdsa/encoding/asn1.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/encoding
      creating build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/test_sec1.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/__init__.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/test_der.py -> build/lib.macosx-11-arm64-cpython-39/fastecdsa/tests/encoding
      running build_ext
      building 'fastecdsa.curvemath' extension
      creating build/temp.macosx-11-arm64-cpython-39
      creating build/temp.macosx-11-arm64-cpython-39/src
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -Isrc/ -I/Users/xxxx/Library/Caches/pypoetry/virtualenvs/starknet-devnet-fao8KG58-py3.9/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/curve.c -o build/temp.macosx-11-arm64-cpython-39/src/curve.o -O2
      In file included from src/curve.c:1:
      src/curve.h:4:10: fatal error: 'gmp.h' file not found
      #include "gmp.h"
               ^~~~~~~
      1 error generated.
      error: command '/usr/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: legacy-install-failure

× Encountered error while trying to install package.
╰─> fastecdsa

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
@FabijanC FabijanC self-assigned this Dec 22, 2022
@FabijanC
Copy link
Collaborator

FabijanC commented Dec 22, 2022

What's your OS?

Have you checked this: https://shard-labs.github.io/starknet-devnet/docs/intro#requirements
It mentions installing gmp. It's the same prerequisite as with installing the cairo-lang package (link).

In any case, we'll need to update the development docs.

@witfyl-ravped
Copy link
Author

MacOS. I already had gmp installed. I also tried reinstalling.

I think the issue is related to using Homebrew to install gmp. Saw some Homebrew devs posting that there isn't a way to use Homebrew to install a package into a virtual environment.

The error message above shows its looking for gmp.h in the pypoetry virtualenv, I tried manually copying there but got

ld: library not found for -lgmp

It's the exact problem that people were posting about installing fastecdsa on M1s right when they came out. So I need to figure out how to do this without Homebrew, IE in the pypoetry environment.

@FabijanC
Copy link
Collaborator

FabijanC commented Dec 23, 2022

You can try one of the solutions posted here, like:

CFLAGS=-I`brew --prefix gmp`/include LDFLAGS=-L`brew --prefix gmp`/lib pip install ecdsa fastecdsa sympy

Alternatively you can try running Devnet with Docker: link

@witfyl-ravped
Copy link
Author

Thank you, I will try Docker.

But to be clear, I'm able to install fastecdsa on its own, but it fails in the Poetry environment, ie when running install_dev_tools.sh. So all the solutions in the link you sent don't apply since they don't cover installing it within the pypoetry virtualenv.

@FabijanC
Copy link
Collaborator

Ok, I see.
You can close this issue if using Docker works for you

@witfyl-ravped
Copy link
Author

I had to provide the correct paths to the C compiler before running install_dev_tools.sh ie

export LDFLAGS=-L/opt/homebrew/lib
export CPPFLAGS=-I/opt/homebrew/include
./scripts/install_dev_tools.sh

Hope this helps someone else

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

No branches or pull requests

2 participants