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

bundler: failed to load command: t (/usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/bin/t) #468

Open
bigbuny opened this issue Mar 14, 2024 · 1 comment

Comments

@bigbuny
Copy link

bigbuny commented Mar 14, 2024

AM in arch linux and installed t by using yay, i did tried gem install t but t was not executable after the install. I know nothing about ruby and help me with this thingy.

$t
bundler: failed to load command: t (/usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/bin/t)
/usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/http-5.1.1/lib/http/mime_type/json.rb:3:in `require': cannot load such file -- json (LoadError)
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/http-5.1.1/lib/http/mime_type/json.rb:3:in `<top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/http-5.1.1/lib/http/mime_type.rb:78:in `require'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/http-5.1.1/lib/http/mime_type.rb:78:in `<top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/http-5.1.1/lib/http/response.rb:7:in `require'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/http-5.1.1/lib/http/response.rb:7:in `<top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/http-5.1.1/lib/http.rb:14:in `require'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/http-5.1.1/lib/http.rb:14:in `<top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/twitter-8.0.0/lib/twitter/rest/request.rb:2:in `require'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/twitter-8.0.0/lib/twitter/rest/request.rb:2:in `<top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/twitter-8.0.0/lib/twitter/cursor.rb:2:in `require'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/twitter-8.0.0/lib/twitter/cursor.rb:2:in `<top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/twitter-8.0.0/lib/twitter.rb:3:in `require'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/twitter-8.0.0/lib/twitter.rb:3:in `<top (required)>'
	from /usr/lib/t-twitter-cli/lib/t/cli.rb:6:in `require'
	from /usr/lib/t-twitter-cli/lib/t/cli.rb:6:in `<top (required)>'
	from /usr/lib/t-twitter-cli/lib/t.rb:1:in `require'
	from /usr/lib/t-twitter-cli/lib/t.rb:1:in `<top (required)>'
	from /usr/lib/t-twitter-cli/bin/t:8:in `require'
	from /usr/lib/t-twitter-cli/bin/t:8:in `<top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/bin/t:25:in `load'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/bin/t:25:in `<top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from /usr/lib/t-twitter-cli/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
	from /usr/bin/bundle:25:in `load'
	from /usr/bin/bundle:25:in `<main>'

I got the above when i ran t after installing it through yay

yay -S t-twitter-cli
$ ruby -v
ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux]
$ sudo gem install t
WARNING:  You don't have /root/.local/share/gem/ruby/3.0.0/bin in your PATH,
	  gem executables will not run.
Successfully installed t-4.0.0
Parsing documentation for t-4.0.0
Done installing documentation for t after 1 seconds
1 gem installed
$ t
bash: /usr/bin/t: No such file or directory
@plum
Copy link

plum commented May 21, 2024

I tried installing using paru, and it is installed and found in bash command on the path.

However when trying to autenticate, i get the result

cannot load such file -- json

which is perhaps a python 2 and python 3 cpompatibility problem. Issue was raised here before, but not answered. link issue 394

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