Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Exception symbol not found in flat namespace '_SecItemExport' on Mac #8

Open
shaleynikov opened this issue Apr 14, 2022 · 1 comment

Comments

@shaleynikov
Copy link

I'm getting an exception trying to import pyroscope extension on mac

$ gem install pyroscope
$ irb
irb(main):001:0> require('pyroscope')
<internal:/usr/local/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': dlopen(/usr/local/lib/ruby/gems/3.1.0/gems/pyroscope-0.2.0/lib/pyroscope_c.bundle, 0x0009): symbol not found in flat namespace '_SecItemExport' - /usr/local/lib/ruby/gems/3.1.0/gems/pyroscope-0.2.0/lib/pyroscope_c.bundle (LoadError)
	from <internal:/usr/local/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/local/lib/ruby/gems/3.1.0/gems/pyroscope-0.2.0/lib/pyroscope.rb:2:in `<top (required)>'
	from <internal:/usr/local/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
	from <internal:/usr/local/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
	from <internal:/usr/local/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
	from (irb):1:in `<main>'
	from /usr/local/Cellar/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/irb-1.4.1/exe/irb:11:in `<top (required)>'
	from /usr/local/opt/ruby/bin/irb:25:in `load'
	from /usr/local/opt/ruby/bin/irb:25:in `<main>'
<internal:/usr/local/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- pyroscope (LoadError)
	from <internal:/usr/local/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from (irb):1:in `<main>'
	from /usr/local/Cellar/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/irb-1.4.1/exe/irb:11:in `<top (required)>'
	from /usr/local/opt/ruby/bin/irb:25:in `load'
	from /usr/local/opt/ruby/bin/irb:25:in `<main>'
ruby -v
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-darwin21]
System Software Overview:

  System Version:	macOS 12.2.1 (21D62)
  Kernel Version:	Darwin 21.3.0
  Boot Volume:	Macintosh HD
  Boot Mode:	Normal
  Computer Name:	MacBookPro
  Secure Virtual Memory:	Enabled
  System Integrity Protection:	Enabled
  Time since boot:	4 days 8:48
@shaleynikov
Copy link
Author

Okay, it's only happened on ruby version 3.1.1
It works okay on 3.0.4, 2.7.6 & 2.6.11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant