-
Notifications
You must be signed in to change notification settings - Fork 53
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
can't install secp256k1 #33
Comments
osx,python3.7 |
On OS X the necessary homebrew packages are:
@bitProfessor Please give a feedback. |
I'm having the same problem on Ubuntu 18.04 with python 3.7.3
As a work around I installed libsecp256k1-dev
|
Hello, I open this ticket since I'm having the same issue. I installed automake pkg-config libtool libffi gmp last version. When I try to install secp256k1, I get the following message :
Do you know the reason ? |
Following thread. Similar issue @fbertoia , did you make any progress figuring it out?
|
|
Having the same issue on MacOS M1 - have installed the needed homebrew packages Did anyone find any solution to this? |
I installed Python 15.2 with pyenv and it worked find now. |
it not work for me (m1 macos python3.9) Collecting secp256k1==0.13.2
WARNING: Discarding https://files.pythonhosted.org/packages/52/62/d7bf3829e126e517e253d2e22a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz#sha256=a3b43e02d321c09eafa769a6fc2c156f555cab3a7db62175ef2fd21e16cdf20c (from https://pypi.org/simple/secp256k1/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. |
what is Python 15.2 ? |
Does this library works at all? I am not able to install and also many others , |
Hello, back again. I retried, but still facing the same error... |
Someone I'm assisting is running into this on an M1. Edit: by this I specifically mean the undefined memcpy error observed by @fbertoia. |
I am also having this issue on M1 |
My issue on M1 Monterey: $ python -m secp256k1
Traceback (most recent call last):
File "/Users/calle/.pyenv/versions/3.8.13/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/Users/calle/.pyenv/versions/3.8.13/lib/python3.8/runpy.py", line 144, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/Users/calle/.pyenv/versions/3.8.13/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/Users/calle/.local/share/virtualenvs/lnbits-legend-G1VlS8Oy/lib/python3.8/site-packages/secp256k1/__init__.py", line 5, in <module>
from ._libsecp256k1 import ffi, lib
ImportError: dlopen(/Users/calle/.local/share/virtualenvs/lnbits-legend-G1VlS8Oy/lib/python3.8/site-packages/_cffi_backend.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_ffi_prep_closure' Solution: downgrade
|
pip install secp256k1 does anyone face this error? |
2023, M1 facing same issues, can anyone help me? |
Here's how I solved it on Apple M1 Ventura
|
pip3 install secp256k1
Collecting secp256k1
Using cached https://files.pythonhosted.org/packages/52/62/d7bf3829e126e517e253d2e22a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz
Requirement already satisfied: cffi>=1.3.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from secp256k1) (1.11.4)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from cffi>=1.3.0->secp256k1) (2.18)
Installing collected packages: secp256k1
Running setup.py install for secp256k1 ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/gp/s1z4588n7rl0v6_zkr6st3p80000gn/T/pip-install-jopw882v/secp256k1/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/gp/s1z4588n7rl0v6_zkr6st3p80000gn/T/pip-record-_rtg1xtz/install-record.txt --single-version-externally-managed --compile:
0.29.2
Using bundled libsecp256k1
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/secp256k1
copying secp256k1/init.py -> build/lib.macosx-10.9-x86_64-3.7/secp256k1
copying secp256k1/main.py -> build/lib.macosx-10.9-x86_64-3.7/secp256k1
running build_clib
Can't exec "aclocal": No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/gp/s1z4588n7rl0v6_zkr6st3p80000gn/T/pip-install-jopw882v/secp256k1/setup.py", line 295, in
"Topic :: Security :: Cryptography"
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/gp/s1z4588n7rl0v6_zkr6st3p80000gn/T/pip-install-jopw882v/secp256k1/setup.py", line 165, in run
cwd=absolute("libsecp256k1"),
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/private/var/folders/gp/s1z4588n7rl0v6_zkr6st3p80000gn/T/pip-install-jopw882v/secp256k1/libsecp256k1/autogen.sh']' returned non-zero exit status 1.
Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/gp/s1z4588n7rl0v6_zkr6st3p80000gn/T/pip-install-jopw882v/secp256k1/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/gp/s1z4588n7rl0v6_zkr6st3p80000gn/T/pip-record-_rtg1xtz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/gp/s1z4588n7rl0v6_zkr6st3p80000gn/T/pip-install-jopw882v/secp256k1/
The text was updated successfully, but these errors were encountered: