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

cannot load such file -- json #1836

Open
PabloMartinMoreno opened this issue Apr 12, 2024 · 5 comments
Open

cannot load such file -- json #1836

PabloMartinMoreno opened this issue Apr 12, 2024 · 5 comments

Comments

@PabloMartinMoreno
Copy link

I can't run wpscan; I'm getting the following error:

/opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext/object/json.rb:4:inrequire': cannot load such file -- json (LoadError)
from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext/object/json.rb:4:in <top (required)>' from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext/object.rb:13:in require'
from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext/object.rb:13:in <top (required)>' from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext.rb:4:in require'
from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext.rb:4:in block in <top (required)>' from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext.rb:3:in each'
from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext.rb:3:in <top (required)>' from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/all.rb:5:in require'
from /opt/wpscan/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.6/lib/active_support/all.rb:5:in <top (required)>' from /opt/wpscan/lib/wpscan.rb:7:in require'
from /opt/wpscan/lib/wpscan.rb:7:in <top (required)>' from /opt/wpscan/bin/wpscan:4:in require'
from /opt/wpscan/bin/wpscan:4:in <main>'

I'm using the latest version of wpscan and ruby-json 2.7.1-1, which seems to be causing the error. I'm using Arch Linux.

@Rahim7X
Copy link

Rahim7X commented Apr 15, 2024

same issue in arch linux. Works on debian

@uhtred-X
Copy link

Yeah Same for me in Arch, tried wpsan-git as well but same error again. Also tried installation of all gems mentioned in error but no luck.

@grey0ut
Copy link

grey0ut commented May 7, 2024

I'm also attempting this on Arch for the first time. I tried running
gem install wpscan
and noticed an error about the following folder needing to be part of my PATH or gem executables will not run:
/home/grey0ut/.local/share/gem/ruby/3.0.0/bin
After appending that to my PATH variable I am now able to run wpscan without the above error.
Edit to add: from the Arch wiki on Ruby https://wiki.archlinux.org/title/Ruby#Configuration

@Grelo4ka
Copy link

I face the same issue on Arch. Works fine once installed with gem install

@uhtred-X
Copy link

Yeah with 'gem install wpscan' things are working good now.

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

5 participants