question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

successfully installed but failed to launch radian

See original GitHub issue

I installed radian by pip3 install radian but it does not run as expected and I got the following error.

chrislam@ChrisLams-MBP GendooLab % radian
Traceback (most recent call last):
  File "/opt/homebrew/bin/radian", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.9/site-packages/radian/__init__.py", line 11, in main
    from rchitect.utils import Rhome, rversion
  File "/opt/homebrew/lib/python3.9/site-packages/rchitect/__init__.py", line 1, in <module>
    from .setup import init, loop
  File "/opt/homebrew/lib/python3.9/site-packages/rchitect/setup.py", line 6, in <module>
    from rchitect._cffi import ffi, lib
ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so, 2): no suitable image found.  Did find:
        /opt/homebrew/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so: mach-o, but wrong architecture
        /opt/homebrew/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so: mach-o, but wrong architecture

I am on a M1 Mac BigSur

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
randy3kcommented, Jun 28, 2021

Please remove cffi first. The issue was caused by a wrong installation of cffi. Installing from source should fix the issue.

0reactions
fdq09ecacommented, Jun 28, 2021

@randy3k Bingo!

chrislam@ChrisLams-MBP ~ % pip3 uninstall radian
Found existing installation: radian 0.5.11
Uninstalling radian-0.5.11:
  Would remove:
    /opt/homebrew/bin/radian
    /opt/homebrew/lib/python3.9/site-packages/radian-0.5.11-py3.9.egg-info
    /opt/homebrew/lib/python3.9/site-packages/radian/*
Proceed (y/n)? y
  Successfully uninstalled radian-0.5.11
chrislam@ChrisLams-MBP ~ % pip3 uninstall cffi
Found existing installation: cffi 1.14.5
Uninstalling cffi-1.14.5:
  Would remove:
    /opt/homebrew/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so
    /opt/homebrew/lib/python3.9/site-packages/cffi-1.14.5.dist-info/*
    /opt/homebrew/lib/python3.9/site-packages/cffi/*
Proceed (y/n)? y
  Successfully uninstalled cffi-1.14.5
chrislam@ChrisLams-MBP ~ % pip3 install --no-binary :all: radian
Collecting radian
  Using cached radian-0.5.11.tar.gz (48 kB)
Requirement already satisfied: rchitect<0.4.0,>=0.3.30 in /opt/homebrew/lib/python3.9/site-packages (from radian) (0.3.32)
Requirement already satisfied: lineedit<0.2.0,>=0.1.5 in /opt/homebrew/lib/python3.9/site-packages (from radian) (0.1.6)
Requirement already satisfied: six>=1.9.0 in ./Library/Python/3.9/lib/python/site-packages (from radian) (1.15.0)
Requirement already satisfied: pygments>=2.5.0 in ./Library/Python/3.9/lib/python/site-packages (from radian) (2.8.0)
Requirement already satisfied: wcwidth in ./Library/Python/3.9/lib/python/site-packages (from lineedit<0.2.0,>=0.1.5->radian) (0.2.5)
Collecting cffi>=1.10.0
  Using cached cffi-1.14.5.tar.gz (475 kB)
Requirement already satisfied: pycparser in /opt/homebrew/lib/python3.9/site-packages (from cffi>=1.10.0->rchitect<0.4.0,>=0.3.30->radian) (2.20)
Skipping wheel build for radian, due to binaries being disabled for it.
Skipping wheel build for cffi, due to binaries being disabled for it.
Installing collected packages: cffi, radian
    Running setup.py install for cffi ... done
    Running setup.py install for radian ... done
Successfully installed cffi-1.14.5 radian-0.5.11
WARNING: You are using pip version 21.0.1; however, version 21.1.2 is available.
You should consider upgrading via the '/opt/homebrew/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
chrislam@ChrisLams-MBP ~ % radian
R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Platform: aarch64-apple-darwin20 (64-bit)

r$>  
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Radian in VS Code] Cannot find R client (i.e. radian) #372
I was trying to use radian as a default R terminal thru the following settings. However, I kept getting this error message below....
Read more >
Python installed radian running issue - Stack Overflow
Because I plan to use radian to show the better terminal R in vscode. It is based on Python but it is used...
Read more >
How to install radian on Ubuntu 22.04? - python
I am trying to install the radian R terminal on Ubuntu 22.04. The instructions on the project's github page suggest to install it...
Read more >
radian - PyPI
Requirements: An installation of R (version 3.4. 0 or above) is required to use radian, an R installation binary for your system can...
Read more >
Using R in VS Code - Schiff Consulting
This will launch R, but it won't be able to communicate with VS Code properly. Instead you need to click the down arrow...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found