randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

rchitect installation error #393

Open DarvidTorres opened 1 year ago

DarvidTorres commented 1 year ago

I get the following error when trying to install radian

PS C:\WINDOWS\system32> pip install -U radian
Collecting radian
  Using cached radian-0.6.4.tar.gz (53 kB)
  Preparing metadata (setup.py) ... done
Collecting rchitect<0.4.0,>=0.3.39
  Using cached rchitect-0.3.39.tar.gz (32 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: prompt_toolkit<3.1,>=3.0.15 in c:\program files\python311\lib\site-packages (from radian) (3.0.36)
Requirement already satisfied: pygments>=2.5.0 in c:\program files\python311\lib\site-packages (from radian) (2.14.0)
Requirement already satisfied: wcwidth in c:\program files\python311\lib\site-packages (from prompt_toolkit<3.1,>=3.0.15->radian) (0.2.5)
Requirement already satisfied: cffi>=1.10.0 in c:\program files\python311\lib\site-packages (from rchitect<0.4.0,>=0.3.39->radian) (1.15.1)
Requirement already satisfied: six>=1.9.0 in c:\program files\python311\lib\site-packages (from rchitect<0.4.0,>=0.3.39->radian) (1.16.0)
Requirement already satisfied: pycparser in c:\program files\python311\lib\site-packages (from cffi>=1.10.0->rchitect<0.4.0,>=0.3.39->radian) (2.21)
Installing collected packages: rchitect, radian
  DEPRECATION: rchitect is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for rchitect ... error
  error: subprocess-exited-with-error

  × Running setup.py install for rchitect did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      C:\Program Files\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      WARNING: The wheel package is not available.
      running install
      C:\Program Files\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\rchitect
      copying rchitect\callbacks.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\completion.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\console.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\dispatch.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\interface.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\py_tools.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\repl.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\setup.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\types.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\utils.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\xptr.py -> build\lib.win-amd64-cpython-311\rchitect
      copying rchitect\__init__.py -> build\lib.win-amd64-cpython-311\rchitect
      creating build\lib.win-amd64-cpython-311\rchitect\reticulate
      copying rchitect\reticulate\path.py -> build\lib.win-amd64-cpython-311\rchitect\reticulate
      copying rchitect\reticulate\py_config.py -> build\lib.win-amd64-cpython-311\rchitect\reticulate
      copying rchitect\reticulate\__init__.py -> build\lib.win-amd64-cpython-311\rchitect\reticulate
      copying rchitect\reticulate\config.R -> build\lib.win-amd64-cpython-311\rchitect\reticulate
      creating build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\gil.c -> build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\gil.h -> build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\libR.c -> build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\libR.h -> build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\parse.c -> build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\parse.h -> build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\process_events.c -> build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\process_events.h -> build\lib.win-amd64-cpython-311\rchitect\src
      copying rchitect\src\R.h -> build\lib.win-amd64-cpython-311\rchitect\src
      running build_ext
      generating cffi module 'build\\temp.win-amd64-cpython-311\\Release\\rchitect._cffi.c'
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      building 'rchitect._cffi' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [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.
╰─> rchitect

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

What should I do to install radian on Windows?

randy3k commented 1 year ago

Look like we need to tag a new wheel for python 3.11