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.

Does not start on M1 Macbook

See original GitHub issue

I installed successfully via pip3 install -U radian

Starting from the console throws this error:

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 101, in main
    RadianApplication(r_home, ver=__version__).run(options)
  File "/opt/homebrew/lib/python3.9/site-packages/radian/radianapp.py", line 94, in run
    rchitect.init(args=args, register_signal_handlers=True)
  File "/opt/homebrew/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/Resources/lib/libR.dylib, 10): no suitable image found.  Did find:
	/Library/Frameworks/R.framework/Resources/lib/libR.dylib: mach-o, but wrong architecture
	/Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib: mach-o, but wrong architecture

Same with development version.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
YiquanGucommented, May 3, 2021

Hi all, the following step solved the issue: Adding export R_HOME=/Library/Frameworks/R.framework/Resources to .zshrc which allows radian to find the version of R that is used by Rstudio. Hope this helps others who may have a similar problem. Thanks.

1reaction
psobolewskiPhDcommented, May 3, 2021

Great that you solved it. That path is for the standard CRAN R, used by RStudio. Both are x86 atm, so now R matches your anaconda environment architecture-wise. You should be able to use pandoc, etc. all fine too as long as it’s x86 (no arm version yet, as I mentioned above). Basically, if everything is Rosetta emulated everything works. If everything is arm, it also works. (e.g. in my case: native VSCode, native R, native radian). Mixing though typically doesn’t work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If your Mac doesn't turn on - Apple Support
If your Mac doesn't turn on · Check power connections · Press and hold the power button · Unplug accessories · If you...
Read more >
M1 Mac Won't Turn on, How to Fix without Data Loss?
Press the Power button and hold it down for ten seconds. Next, unplug the power cable for 10 seconds and replug it. Finally,...
Read more >
How to Fix MacBook Air M1 Not Turning On Issue - iKream
Press and hold the power button for about 10 seconds. · You should see the startup options window, which includes a gear icon...
Read more >
MacBook won't turn on? Here's how to fix it - Macworld
On an M1 Mac press and hold the Power button until the Mac starts up and eventually shows the start up options. Select...
Read more >
How to Fix Mac Won't Boot into Recovery Mode?
If your imac won't boot into recovery mode a possible solution would be to create a bootable installer and restore mac. Before starting...
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