C:\Users\akhilesh.s>pip install sawtooth-sdk
Collecting sawtooth-sdk
Using cached sawtooth_sdk-1.2.5-py3-none-any.whl (97 kB)
Requirement already satisfied: colorlog in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (6.7.0)
Requirement already satisfied: protobuf in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (4.21.12)
Requirement already satisfied: pyzmq in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (25.0.0)
Collecting secp256k1
Using cached secp256k1-0.14.0.tar.gz (2.4 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: toml in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (0.10.2)
Requirement already satisfied: PyYAML in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (6.0)
Requirement already satisfied: colorama in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from colorlog->sawtooth-sdk) (0.4.6)
Requirement already satisfied: cffi>=1.3.0 in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from secp256k1->sawtooth-sdk) (1.15.1)
Requirement already satisfied: pycparser in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from cffi>=1.3.0->secp256k1->sawtooth-sdk) (2.21)
Building wheels for collected packages: secp256k1
Building wheel for secp256k1 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
0.26
C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Using bundled libsecp256k1
running bdist_wheel
The [wheel] section is deprecated. Use [bdist_wheel] instead.
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__init__.py -> build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__main__.py -> build\lib.win-amd64-cpython-311\secp256k1
running build_clib
Building experimental
error: [WinError 193] %1 is not a valid Win32 application
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for secp256k1
Running setup.py clean for secp256k1
Failed to build secp256k1
Installing collected packages: secp256k1, sawtooth-sdk
Running setup.py install for secp256k1 ... error
error: subprocess-exited-with-error
× Running setup.py install for secp256k1 did not run successfully. │ exit code: 1 ╰─> [17 lines of output] 0.26 C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Using bundled libsecp256k1
running install
C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\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.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__init__.py -> build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__main__.py -> build\lib.win-amd64-cpython-311\secp256k1
running build_clib
Building experimental
error: [WinError 193] %1 is not a valid Win32 application
[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. ╰─> secp256k1
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
While installing sawtooth-sdk from "pip install sawtooth-sdk", encountered "pkg-config" error.
Pycharm error 'pkg-config' is required to install this package on Windows Its resolved.
Later encountered secp256k1 error. Even installed Microsoft C++ build tools, still found this "secp256k1" error. Also tried with python 3.9 version getting same error . Can anyone share the fix?