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
192 stars 17 forks source link

Error when I try to install screenrecorder #85

Closed Rajagopalan-M closed 4 years ago

Rajagopalan-M commented 4 years ago

When I try install screenrecorder, it is throwing the following error, My ruby version is 2.6.5

Gem::ConflictError:
  Unable to activate screen-recorder-1.3.1, because childprocess-1.0.1 conflicts with childprocess (~> 3.0)
# SequencialRun.rb:9:in `<top (required)>'
# ./Ruby_test_spec.rb:52:in `load'
# ./Ruby_test_spec.rb:52:in `<top (required)>'
# ------------------
# --- Caused by: ---
# LoadError:
#   cannot load such file -- screen-recorder
#   SequencialRun.rb:9:in `<top (required)>'
No examples found.
kapoorlakshya commented 4 years ago

Do you have a version for childprocess gem defined (locked) in your Gemfile? A simple bundle update should work otherwise.

Rajagopalan-M commented 4 years ago

I don't have any gem file here, I install gem using the command gem install screen-recorder and it gives me the above error, I installed childprocess-1.0.1 after uninstalling 3.0 but it still throws the error.

kapoorlakshya commented 4 years ago

childprocess 1.x is no longer needed. Try this:

  1. Uninstall all versions of childprocess and screen-recorder
  2. Run gem install screen-recorder. This will get you the latest version.
Rajagopalan-M commented 4 years ago

Hi, It's getting installed.

image

But while I am running, it's throwing the following error.

Gem::ConflictError:
  Unable to activate screen-recorder-1.3.1, because childprocess-1.0.1 conflicts with childprocess (~> 3.0)
# SequencialRun.rb:9:in `<top (required)>'
# ./Ruby_test_spec.rb:52:in `load'
# ./Ruby_test_spec.rb:52:in `<top (required)>'
# ------------------
# --- Caused by: ---
# LoadError:
#   cannot load such file -- screen-recorder
#   SequencialRun.rb:9:in `<top (required)>'
No examples found.
kapoorlakshya commented 4 years ago

What does the following command return?

gem dependency childprocess -v 1.0.1 --reverse-dependencies
Rajagopalan-M commented 4 years ago

It returns image

kapoorlakshya commented 4 years ago

Oh it's because you're using selenium-webdriver 3.142.3 which requires childprocess < v2.

I'll relax the childprocess requirement to be >= 1.0, < 4.0 in the next screen-recorder release, but I would recommend using the latest Selenium (and childprocess) release if you can.

Rajagopalan-M commented 4 years ago

Recent version of selenium has this problem and that's why I couldn't go there

https://github.com/SeleniumHQ/selenium/issues/7917