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

uninitialized constant Twitter::REST::Client::BASE_URL (NameError) #458

Open
charafsalmi opened this issue Feb 10, 2022 · 7 comments
Open

Comments

@charafsalmi
Copy link

I just performed a fresh install. There is the error I get:

PS C:\Users\user> 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: HIDDEN
Enter your API secret: HIDDEN
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/t-3.1.0/lib/t/cli.rb:82:in `authorize': uninitialized constant Twitter::REST::Client::BASE_URL (NameError)
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/t-3.1.0/bin/t:20:in `<top (required)>'
        from C:/Ruby30-x64/bin/t:25:in `load'
        from C:/Ruby30-x64/bin/t:25:in `<main>'

PS C:\Users\user> ruby --version
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x64-mingw32]

I tried twice.

@swagatata
Copy link

facing the same issue

@Debdut
Copy link

Debdut commented Mar 9, 2022

Same. I think it doesn't work anymore!

@cllns
Copy link
Contributor

cllns commented Apr 1, 2022

Related: sferik/twitter-ruby#878

@pistolparody
Copy link

Same issue here

@ndeville
Copy link

Same issue, with Ruby 2.6.0
It's mentioned in the docs that it supports only up to 2.1.0.
It's way above my capabilities to help fix it though!

@MrAureliusR
Copy link

Welp, this sucks. Wish I had known this was unsupported before installing it.

@daehokimm
Copy link

It will be helpful

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

8 participants