Pypy install aptos_sdk on Windows failed on pynacl

hi there, aptos_sdk (For python) not friendly with pypy. It failed on pynacl and from error message first I thought " ERROR: The ‘make’ utility is missing from PATH" I simply need to install make and reference it from PATH.

PS D:\dev\samples\py> pypy -mpip install aptos_sdk
Defaulting to user installation because normal site-packages is not writeable
Collecting aptos_sdk
Using cached aptos_sdk-0.4.1-py3-none-any.whl (18 kB)
Collecting httpx
Using cached httpx-0.23.0-py3-none-any.whl (84 kB)
Collecting pynacl
Using cached PyNaCl-1.5.0.tar.gz (3.4 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing metadata (pyproject.toml) … done
Requirement already satisfied: certifi in c:\users\norman\appdata\roaming\pypy\pypy39\site-packages (from httpx->aptos_sdk) (2022.5.18.1)
Collecting sniffio
Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting rfc3986[idna2008]<2,>=1.3
Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting httpcore<0.16.0,>=0.15.0
Using cached httpcore-0.15.0-py3-none-any.whl (68 kB)
Collecting h11<0.13,>=0.11
Using cached h11-0.12.0-py3-none-any.whl (54 kB)
Collecting anyio==3.*
Using cached anyio-3.6.2-py3-none-any.whl (80 kB)
Requirement already satisfied: idna>=2.8 in c:\users\norman\appdata\roaming\pypy\pypy39\site-packages (from anyio==3.*->httpcore<0.16.0,>=0.15.0->httpx->aptos_sdk) (3.3)
Building wheels for collected packages: pynacl
Building wheel for pynacl (pyproject.toml) … error
error: subprocess-exited-with-error

× Building wheel for pynacl (pyproject.toml) did not run successfully.
Γöé exit code: 1
Γò░ΓöÇ> [86 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-pypy39
creating build\lib.win-amd64-pypy39\nacl
copying src\nacl\encoding.py → build\lib.win-amd64-pypy39\nacl
copying src\nacl\exceptions.py → build\lib.win-amd64-pypy39\nacl
copying src\nacl\hash.py → build\lib.win-amd64-pypy39\nacl

File “C:\Users\norman\AppData\Local\Temp\pip-build-env-qlt5gkc9\overlay\Lib\site-packages\setuptools_distutils\dist.py”, line 987, in run_command
cmd_obj.run()
File “”, line 141, in run
Exception: ERROR: The ‘make’ utility is missing from PATH
[end of output]

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

So, on my Windows laptop, with command prompt (as Admin): choco install make
I installed “make” and it’s automatically under PATH. I tried again, it’s still failing on pynacl.
C:\Users\norman\AppData\Local\Temp\pip-build-env-88klxkjd\overlay\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
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 pynacl
Failed to build pynacl
ERROR: Could not build wheels for pynacl, which is required to install pyproject.toml-based projects

1 Like

This is good mate

bro. pls update u build version.

yoyo

D:\dev\samples\py>pypy
Python 3.9.10 (b332b321bbaa72bffb0207da5b7fe4c38047d3b2, Mar 16 2022, 16:03:21)
[PyPy 7.3.9 with MSC v.1929 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

D:\dev\samples\py>python --version
Python 3.9.12

D:\dev\samples\py>where python
C:\ProgramData\Anaconda3\envs\py39\python.exe

yes. correct. is good. :wink: