kapoorlakshya / screen-recorder

A Ruby gem to video record and take screenshots of your desktop or specific application window. Works on Windows, Linux, and macOS.
MIT License
170 stars 17 forks source link

Childprocess 5.0 gets conflict with ScreenRecorder now #105

Open Rajagopalan-M opened 1 month ago

Rajagopalan-M commented 1 month ago

Screen recorder works with ChildProcess 4.1.0 but it's not working with 5.0. Can you increase this limit?

last time same issue happened and you fixed here https://github.com/kapoorlakshya/screen-recorder/issues/99

C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1480:in `rescue in block in activate_dependencies': Could not find 'childprocess' (>= 1.0, < 5.0) among 114 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=C:/Users/rajagopalan.m/.local/share/gem/ruby/3.3.0;C:/Ruby/lib/ruby/gems/3.3.0' at: C:/Ruby/lib/ruby/gems/3.3.0/specifications/screen-recorder-1.6.0.gemspec, execute `gem env` for more information
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1477:in `block in activate_dependencies'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1466:in `each'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1466:in `activate_dependencies'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1448:in `activate'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems.rb:205:in `rescue in try_activate'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems.rb:198:in `try_activate'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `block in require'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `synchronize'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `rescue in require'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:135:in `require'
        from C:/A/TestBot/TestBot.rb:20:in `map'
        from C:/A/TestBot/TestBot.rb:20:in `initialize'
        from C:/A/TestBot/Run.rb:6:in `new'
        from C:/A/TestBot/Run.rb:6:in `<main>'
C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'childprocess' (>= 1.0, < 5.0) - did find: [childprocess-5.0.0] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=C:/Users/rajagopalan.m/.local/share/gem/ruby/3.3.0;C:/Ruby/lib/ruby/gems/3.3.0' , execute `gem env` for more information
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1478:in `block in activate_dependencies'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1466:in `each'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1466:in `activate_dependencies'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1448:in `activate'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems.rb:205:in `rescue in try_activate'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems.rb:198:in `try_activate'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `block in require'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `synchronize'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `rescue in require'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:135:in `require'
        from C:/A/TestBot/TestBot.rb:20:in `map'
        from C:/A/TestBot/TestBot.rb:20:in `initialize'
        from C:/A/TestBot/Run.rb:6:in `new'
        from C:/A/TestBot/Run.rb:6:in `<main>'
C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1480:in `rescue in block in activate_dependencies': Could not find 'childprocess' (>= 1.0, < 5.0) among 114 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=C:/Users/rajagopalan.m/.local/share/gem/ruby/3.3.0;C:/Ruby/lib/ruby/gems/3.3.0' at: C:/Ruby/lib/ruby/gems/3.3.0/specifications/screen-recorder-1.6.0.gemspec, execute `gem env` for more information
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1477:in `block in activate_dependencies'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1466:in `each'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1466:in `activate_dependencies'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1448:in `activate'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems.rb:199:in `try_activate'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `block in require'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `synchronize'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `rescue in require'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:135:in `require'
        from C:/A/TestBot/TestBot.rb:20:in `map'
        from C:/A/TestBot/TestBot.rb:20:in `initialize'
        from C:/A/TestBot/Run.rb:6:in `new'
        from C:/A/TestBot/Run.rb:6:in `<main>'
C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'childprocess' (>= 1.0, < 5.0) - did find: [childprocess-5.0.0] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=C:/Users/rajagopalan.m/.local/share/gem/ruby/3.3.0;C:/Ruby/lib/ruby/gems/3.3.0' , execute `gem env` for more information
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1478:in `block in activate_dependencies'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1466:in `each'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1466:in `activate_dependencies'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/specification.rb:1448:in `activate'
        from C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems.rb:199:in `try_activate'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `block in require'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `synchronize'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:139:in `rescue in require'
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:135:in `require'
        from C:/A/TestBot/TestBot.rb:20:in `map'
        from C:/A/TestBot/TestBot.rb:20:in `initialize'
        from C:/A/TestBot/Run.rb:6:in `new'
        from C:/A/TestBot/Run.rb:6:in `<main>'
<internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- screen-recorder (LoadError)
        from <internal:C:/Ruby/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
        from C:/A/TestBot/TestBot.rb:20:in `map'
        from C:/A/TestBot/TestBot.rb:20:in `initialize'
        from C:/A/TestBot/Run.rb:6:in `new'
        from C:/A/TestBot/Run.rb:6:in `<main>'

Process finished with exit code 1
kapoorlakshya commented 1 month ago

@Rajagopalan-M I'll try to get a release out in a week or so.

Rajagopalan-M commented 1 month ago

Sure thanks.

kapoorlakshya commented 4 days ago

@Rajagopalan-M What version of Ruby are you on? I am leaning toward only supporting 3.0+ in the next major version release since 2.x is now EOL.

kapoorlakshya commented 3 days ago

Also which version of watir/selenium webdriver are you using? Only childprocess < 5.0 is supported by selenium-webdriver up to v4.6 and then removed in selenium-webdriver v4.7 onward. I am also considering removing childprocess in favor of using Process.spawn - https://github.com/SeleniumHQ/selenium/issues/11251.