randy3k / radian

A 21 century R console
MIT License
2.01k stars 76 forks source link

Radian does not start on Big Sur 11.2 #259

Open MikhailArkhipov opened 3 years ago

MikhailArkhipov commented 3 years ago
  1. MacOS Big Sur 11.2 on M1, brand new clean laptop
  2. R 4.0.3 installed from https://cran.r-project.org/bin/macosx/
  3. Python 3.9.1 installed via python.org installer with universal binaries
  4. Radian installed via pip3

Attempt to set

env R_HOME=/Library/Frameworks/R.framework/Versions/Current radian

then fails with

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/bin/radian", line 33, in <module>
    sys.exit(load_entry_point('radian==0.5.10', 'console_scripts', 'radian')())
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/radian/__init__.py", line 101, in main
    RadianApplication(r_home, ver=__version__).run(options)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/radian/radianapp.py", line 94, in run
    rchitect.init(args=args, register_signal_handlers=True)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/rchitect/setup.py", line 46, in init
    raise Exception(load_lib_error())
Exception: Cannot load shared library: dlopen(/Library/Frameworks/R.framework/Versions/Current/lib/libR.dylib, 10): image not found

since library is in /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib

The only thing that works is setting

R_HOME=/Library/Frameworks/R.framework/Versions/Current/Resources radian
johnnypark777 commented 3 years ago

R_HOME=/Library/Frameworks/R.framework/Versions/Current/Resources radian This didn't work for me. Are there any other ways that worked?

adamaltmejd commented 3 years ago

Only thing that worked for me was building R from source (with homebrew) to ensure its M1 native and not through Rosetta.