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

Problem installing radian #450

Open
wasikulaminbipu opened this issue Nov 22, 2023 · 4 comments
Open

Problem installing radian #450

wasikulaminbipu opened this issue Nov 22, 2023 · 4 comments

Comments

@wasikulaminbipu
Copy link

wasikulaminbipu commented Nov 22, 2023

I am facing issues when installing radian. My system data are

OS: Fedora 39
Python Version: 3.12.0
Pip version: 23.3.1
R version: 4.3.2

I have tried multiple solutions and even used chatgpt. but there is no solution that could solve my problem. I am not expert in this field. So, your help would help me to solve the issue.

  1. I have tried both with sudo and non sudo method.
  2. I have tried both -U and without -U.
  3. I have tried reinstalling python, R and pip.
  4. I also tried updating pip.
  5. I tried installing rchitect manually.
  6. I have tried installing required packages.
  7. I have tried reinstalling wheel
    But no Luck!

stack Trace was:

Defaulting to user installation because normal site-packages is not writeable
Collecting radian
  Using cached radian-0.6.8-py3-none-any.whl
Collecting rchitect<0.5.0,>=0.4.3 (from radian)
  Using cached rchitect-0.4.4.tar.gz (32 kB)
  Preparing metadata (setup.py) ... done
Collecting prompt-toolkit<3.1,>=3.0.15 (from radian)
  Using cached prompt_toolkit-3.0.41-py3-none-any.whl.metadata (6.5 kB)
Requirement already satisfied: pygments>=2.5.0 in /usr/lib/python3.12/site-packages (from radian) (2.15.1)
Collecting wcwidth (from prompt-toolkit<3.1,>=3.0.15->radian)
  Using cached wcwidth-0.2.12-py2.py3-none-any.whl.metadata (14 kB)
Requirement already satisfied: cffi>=1.10.0 in /usr/lib64/python3.12/site-packages (from rchitect<0.5.0,>=0.4.3->radian) (1.15.1)
Requirement already satisfied: six>=1.9.0 in /usr/lib/python3.12/site-packages (from rchitect<0.5.0,>=0.4.3->radian) (1.16.0)
Requirement already satisfied: pycparser in /usr/lib/python3.12/site-packages (from cffi>=1.10.0->rchitect<0.5.0,>=0.4.3->radian) (2.20)
Requirement already satisfied: ply==3.11 in /usr/lib/python3.12/site-packages (from pycparser->cffi>=1.10.0->rchitect<0.5.0,>=0.4.3->radian) (3.11)
Using cached prompt_toolkit-3.0.41-py3-none-any.whl (385 kB)
Using cached wcwidth-0.2.12-py2.py3-none-any.whl (34 kB)
Building wheels for collected packages: rchitect
  Building wheel for rchitect (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [57 lines of output]
      /home/nishatjahan/.local/lib/python3.12/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!
      
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      
      !!
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-312
      creating build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/xptr.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/utils.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/types.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/setup.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/repl.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/py_tools.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/interface.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/dispatch.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/console.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/completion.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/callbacks.py -> build/lib.linux-x86_64-cpython-312/rchitect
      copying rchitect/__init__.py -> build/lib.linux-x86_64-cpython-312/rchitect
      creating build/lib.linux-x86_64-cpython-312/rchitect/reticulate
      copying rchitect/reticulate/py_config.py -> build/lib.linux-x86_64-cpython-312/rchitect/reticulate
      copying rchitect/reticulate/path.py -> build/lib.linux-x86_64-cpython-312/rchitect/reticulate
      copying rchitect/reticulate/__init__.py -> build/lib.linux-x86_64-cpython-312/rchitect/reticulate
      copying rchitect/reticulate/config.R -> build/lib.linux-x86_64-cpython-312/rchitect/reticulate
      creating build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/process_events.h -> build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/process_events.c -> build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/parse.h -> build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/parse.c -> build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/libR.h -> build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/libR.c -> build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/gil.h -> build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/gil.c -> build/lib.linux-x86_64-cpython-312/rchitect/src
      copying rchitect/src/R.h -> build/lib.linux-x86_64-cpython-312/rchitect/src
      running build_ext
      generating cffi module 'build/temp.linux-x86_64-cpython-312/rchitect._cffi.c'
      creating build/temp.linux-x86_64-cpython-312
      building 'rchitect._cffi' extension
      creating build/temp.linux-x86_64-cpython-312/build
      creating build/temp.linux-x86_64-cpython-312/build/temp.linux-x86_64-cpython-312
      creating build/temp.linux-x86_64-cpython-312/rchitect
      creating build/temp.linux-x86_64-cpython-312/rchitect/src
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Irchitect/src -I/usr/include/python3.12 -c build/temp.linux-x86_64-cpython-312/rchitect._cffi.c -o build/temp.linux-x86_64-cpython-312/build/temp.linux-x86_64-cpython-312/rchitect._cffi.o
      build/temp.linux-x86_64-cpython-312/rchitect._cffi.c:50:14: fatal error: pyconfig.h: No such file or directory
         50 | #    include <pyconfig.h>
            |              ^~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for rchitect
  Running setup.py clean for rchitect
Failed to build rchitect
ERROR: Could not build wheels for rchitect, which is required to install pyproject.toml-based projects

@gabrielnegreira
Copy link

I have exactly the same issue installing on Fedora. On Debian I could install just fine with pip install -U radian.

@randy3k
Copy link
Owner

randy3k commented Nov 28, 2023

You need python3-devel, try sudo dnf install python3-devel (not tested)

@toxintoxin
Copy link

I have exactly the same issue on Win11, same version of Python, pip and R

@gabrielnegreira
Copy link

You need python3-devel, try sudo dnf install python3-devel (not tested)

This has fixed the issue for me. Now radian installs and runs perfectly on Fedora 39. Thanks!

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

4 participants