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

Please let us know if this is no longer supported so we won't bother you with issues :) #420

Open
pitosalas opened this issue Feb 3, 2020 · 4 comments

Comments

@pitosalas
Copy link

/m/s/twitter_example (master=) t authorize
Welcome! Before you can use t, you'll first need to register an
application with Twitter. Just follow the steps below:
  1. Sign in to the Twitter Application Management site and click
     "Create New App".
  2. Complete the required fields and submit the form.
     Note: Your application must have a unique name.
  3. Go to the Permissions tab of your application, and change the
     Access setting to "Read, Write and Access direct messages".
  4. Go to the Keys and Access Tokens tab to view the consumer key
     and secret which you'll need to copy and paste below when
     prompted.

Press [Enter] to open the Twitter Developer site.

Enter your API key: xxxx
Enter your API secret: xxx
Traceback (most recent call last):
	7: from /Users/pitosalas/.rbenv/versions/2.6.5/bin/t:23:in `<main>'
	6: from /Users/pitosalas/.rbenv/versions/2.6.5/bin/t:23:in `load'
	5: from /Users/pitosalas/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/t-3.1.0/bin/t:20:in `<top (required)>'
	4: from /Users/pitosalas/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
	3: from /Users/pitosalas/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
	2: from /Users/pitosalas/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
	1: from /Users/pitosalas/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
/Users/pitosalas/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/t-3.1.0/lib/t/cli.rb:82:in `authorize': uninitialized constant Twitter::REST::Client::BASE_URL (NameError)
~/m/s/twitter_example (master=) [1;2B[1;2B[1;2B
@dend
Copy link

dend commented Feb 28, 2020

This is a workaround more so than anything, but try this:

# Install command-line Twitter tools.
sudo gem install t

# Fix issue with Twitter command-line tools.
sudo gem install twitter -v 6.1.0
sudo gem uninstall twitter -v 6.2.0

@jm3
Copy link

jm3 commented Jan 2, 2021

don't need sudo, above; just use:

gem install twitter -v 6.1.0; gem uninstall twitter -v 6.2.0

@riclage
Copy link

riclage commented Jan 16, 2021

Doesn't work with Ruby 2.7.2 or 3.0.0 on MacOS:

Traceback (most recent call last):
	7: from ~/.rubies/ruby-2.7.2/bin/t:23:in `<main>'
	6: from ~/.rubies/ruby-2.7.2/bin/t:23:in `load'
	5: from ~/.rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/t-3.1.0/bin/t:20:in `<top (required)>'
	4: from ~/.rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
	3: from ~/.rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
	2: from ~/.rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
	1: from ~/.rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
~/.rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/t-3.1.0/lib/t/cli.rb:82:in `authorize': uninitialized constant Twitter::REST::Client::BASE_URL (NameError)

Tried with both twitter 6.1.0 and 6.2.0.

@riclage
Copy link

riclage commented Jan 16, 2021

This workaround worked: sferik/twitter-ruby#878 (comment)

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

4 participants