-
Notifications
You must be signed in to change notification settings - Fork 253
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
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby' #96
Comments
Although eventmachine is provided as
|
This issue is forwarded to eventmachine here. Closing now. Thank you @felicityfmn ! |
This problem always occurs ... No convincing answer yet |
gem uninstall eventmachine |
@Impeck It does not work with those commands? Any probable solutions to these? I believe it only occurred with ruby version more than 2.5 but seems like even in 2.4 that I Installed, I have this error |
To solve the problem specified in the topic you need to run these commands:
|
I have to check whether require 'em/pure_ruby' if not defined?(EventMachine) |
Para os BRs: "Resolveu o meu problema" |
Where did you put this code @khiav223577? |
@pke But I use this patch currently: # config/patch_eventmachine.rb
class Bundler::Runtime
alias_method :require_without_patching_eventmachine, :require
def require(*groups)
begin
require_without_patching_eventmachine(*groups)
rescue LoadError => e
if e.path == '2.5/rubyeventmachine' # when require '2.5/rubyeventmachine' fails
super 'em/pure_ruby'
retry
end
raise e
end
end
end # config/boot.rb
require_relative 'patch_eventmachine'
...
... |
I am having this problem when using |
I know nothing about |
For Ruby 2.5 and later, try:
EventMachine's current x64-mingw32 gem is not compatible with Ruby 2.6 and later, and it was accidentally built without that information in the gemspec. Ruby 2.5 and later use OpenSSL 1.1.1. Ruby 2.4 uses OpenSSL 1.0.2, which requires a different set of commands. |
Thank a lot it's working fine now :) |
If you are using windows Go to this folder open this file write this |
this works on my end. |
For those running into this problem with Jekyll's live-reload (
This ALMOST works, but it still crashes after a few reloads: trace
Really wish this issue was fixed... upstream or wherever the problem lies. EDIT: This solution actually seems to work for me. None of the above steps needed, just one line added to Gem file. It still seems to throw the same errors, but it doesn't prevent the site from being refreshed. |
Interesting that this is still required a few years later.
|
What worked for me on Apple Silicon M1 and Rails 6.1
|
Hi Greg, I followed your steps (am using Ruby 2.7.5) and "bundle exec jekyll serve --livereload" was met with Could not find eventmachine-1.2.7-x64-mingw32 in any of the sources. Any solutions? Thanks |
I had that error when I run |
This project is for Ruby version 2.4 and newer.
For Ruby versions < 2.4 please file an issue here.
What problems are you experiencing?
I keep getting this error message on the console even though I have the event machine gem installed and the require em/pure_ruby
Steps to reproduce
What's the output from
ridk version
?Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
'C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- 2.4/rubyeventmachine (LoadError) from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
require'from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5-x64-mingw32/lib/rubyeventmachine.rb:2:in
<top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in
require'from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in
rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in
require'from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5-x64-mingw32/lib/eventmachine.rb:8:in
<top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in
require'from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in
rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in
require'from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/faye-websocket-0.10.7/lib/faye/websocket.rb:10:in
<top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in
require'from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in
rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in
require'from C:/Ruby24-x64/flutterbot/play.rb:3:in `
The text was updated successfully, but these errors were encountered: