Skip to content
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

Error while installing pycryptonight #14

Open
dorarts opened this issue Oct 11, 2023 · 1 comment
Open

Error while installing pycryptonight #14

dorarts opened this issue Oct 11, 2023 · 1 comment

Comments

@dorarts
Copy link

dorarts commented Oct 11, 2023

error: subprocess-exited-with-error

× Building wheel for pycryptonight (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
aesb.c
cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
c_blake256.c
crypto/c_blake256.c(14): fatal error C1083: Cannot open include file: 'c_blake256.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

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

@HugoXOX3
Copy link

We at the same place.Although I have already follow the ReadMe to install this but it still error.Mine one Like ' error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [64 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\pycryptonight
copying pycryptonight_init_.py -> build\lib.win-amd64-cpython-311\pycryptonight
creating build\lib.win-amd64-cpython-311\pycryptonight\tests
copying pycryptonight\tests\test.py -> build\lib.win-amd64-cpython-311\pycryptonight\tests
copying pycryptonight\tests_init_.py -> build\lib.win-amd64-cpython-311\pycryptonight\tests
running egg_info
writing py_cryptonight.egg-info\PKG-INFO
writing dependency_links to py_cryptonight.egg-info\dependency_links.txt
writing requirements to py_cryptonight.egg-info\requires.txt
writing top-level names to py_cryptonight.egg-info\top_level.txt
reading manifest file 'py_cryptonight.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'py_cryptonight.egg-info\SOURCES.txt'
C:\Users\HCMLXOX\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning: Installing 'pycryptonight.tests.data' as data is deprecated, please list it in packages.
!!

      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'pycryptonight.tests.data' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'pycryptonight.tests.data' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'pycryptonight.tests.data' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  creating build\lib.win-amd64-cpython-311\pycryptonight\tests\data
  copying pycryptonight\tests\data\tests-fast.txt -> build\lib.win-amd64-cpython-311\pycryptonight\tests\data
  copying pycryptonight\tests\data\tests-slow-1.txt -> build\lib.win-amd64-cpython-311\pycryptonight\tests\data
  copying pycryptonight\tests\data\tests-slow-2.txt -> build\lib.win-amd64-cpython-311\pycryptonight\tests\data
  copying pycryptonight\tests\data\tests-slow-4.txt -> build\lib.win-amd64-cpython-311\pycryptonight\tests\data
  copying pycryptonight\tests\data\tests-slow.txt -> build\lib.win-amd64-cpython-311\pycryptonight\tests\data
  running build_ext
  building '_pycryptonight' extension
  creating build\temp.win-amd64-cpython-311
  creating build\temp.win-amd64-cpython-311\Release
  creating build\temp.win-amd64-cpython-311\Release\src
  creating build\temp.win-amd64-cpython-311\Release\src\cryptonight
  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DNO_JIT=1 -DNO_RANDOMX=1 -DXMR_IS_ARM=0 -I. -Isrc/ -Isrc/misc -Isrc/cryptonight -Isrc/randomx -IC:\Users\HCMLXOX\AppData\Local\Programs\Python\Python311\include -IC:\Users\HCMLXOX\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/cryptonight/CryptonightR_JIT.cpp /Fobuild\temp.win-amd64-cpython-311\Release\src/cryptonight/CryptonightR_JIT.obj
  CryptonightR_JIT.cpp
  src/misc\unistd.h(48): error C2371: 'int8_t': redefinition; different basic types
  C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\stdint.h(18): note: see declaration of 'int8_t'
  src/cryptonight/CryptonightR_JIT.cpp(22): error C2466: cannot allocate an array of constant size 0
  src/cryptonight/CryptonightR_JIT.cpp(41): error C2466: cannot allocate an array of constant size 0
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

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

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

No branches or pull requests

2 participants