Skip to content
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

Error when I try to install screenrecorder #85

Closed
Rajagopalan-M opened this issue Jan 24, 2020 · 8 comments
Closed

Error when I try to install screenrecorder #85

Rajagopalan-M opened this issue Jan 24, 2020 · 8 comments
Milestone

Comments

@Rajagopalan-M
Copy link

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
Copy link
Owner

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

@Rajagopalan-M
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

kapoorlakshya commented Jan 24, 2020

What does the following command return?

gem dependency childprocess -v 1.0.1 --reverse-dependencies

@Rajagopalan-M
Copy link
Author

It returns
image

@kapoorlakshya
Copy link
Owner

kapoorlakshya commented Jan 24, 2020

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.

kapoorlakshya pushed a commit that referenced this issue Jan 24, 2020
kapoorlakshya added a commit that referenced this issue Jan 24, 2020
@Rajagopalan-M
Copy link
Author

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

SeleniumHQ/selenium#7917

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

No branches or pull requests

2 participants