-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 #878
Comments
Tried this in ruby 2.1 as well, with same result. |
I'm getting the same issue, not quite sure what to do either. My ruby version is It seems to be failing to find a constant in the |
Ah I see the issue - v6.1.0...v6.2.0 BASE_URL used to reside in that file but has been moved. So when Twitter 6.2.0 was released, versions of this are breaking. Any chance someone could fix the version to 6.1.0 so this library will continue working? I'm not a huge ruby expert, you'd also need publish access. |
Yeah, I guess if moving the constant out to a different location was a deliberate move, then this should be flagged as a breaking change, thus a major release should've been released. Got here from getting the same error when running a fresh install of https://github.com/sferik/t ( I'd suggest unpublishing |
I’m working on a fix for this issue now. Sorry for the trouble. |
Thanks @sferik, looking forward to being able to use the CLI client 👍 |
Thank you for working on this, waiting on it :D |
Patiently waiting for this fix as well. Thanks for working on it! 👍 |
Also waiting :-) Thanks! |
Also waiting. Thanks for working on this! 👍 |
waiting here as well...thanks! |
OK guys i know you're impatient but this nagging absolutely has to stop. I get retarded "bump" notifications every day. This isn't goddamn twitter. Go live out your ADHD over there. The guy obviously hasn't been on github since november - look at his activity - so what are you trying to achieve with this? He's busy with his real life (yeah, some people have one) and is going to get around to it... WHEN HE GETS AROUND TO IT. Stop nagging or I'll close the bug report! |
Here's your workaround folks: edit |
expanding on @rvagg: ubuntu 17.10, file was located at |
expanding on @rvagg: OS X 10.12.6 w/ rvm, file was located at |
rvagg's workaround doesn't work for me. The error changes to:
|
@sferik would love some help getting this fixed so i can use t again! |
It's not the prettiest solution, but if anyone just wants to get this working you can do it with bundler: Make a Gemfile with |
Also not the prettiest solution: cheers |
Essentially what @ialexs seems to mean is, copy the file generated by twurl |
The above totally worked for me |
Ah editing the cli.rb worked fine! Didn't realize there were two instances. Many thanks. |
The path to my cli.rb file was listed in the error message output after I entered my API keys (my path was different from the paths listed above). Once I edited both instances of Twitter::REST::Request::BASE_URL, the installation completed. |
Really, this has been broken for eight months without a fix? WTH? |
Let's be nice here. This is a 12-year old open-source project. It is not unreasonable that the original maintainer might not jump in and fix bugs after all that time. Anyone with Ruby skills and sufficient interest could contribute a fix. (I myself actually spent a little while freshening my rusty Ruby skills to see if I could fix this issue, but I just have not had time to devote to it.) 166 people have contributed to this repo over the years, so I suspect there are multiple people out there who would be able and willing to fix this. |
@eobrain any suggestions for how best to appeal to some of those people? |
For those just running into this issue (like myself), this solution worked for me. |
Holy shit happy new year. |
This bug totally sucks, spent a ton of time trying all these solutions and none worked. Are there any alternatives to the |
I now get this error: /Library/Ruby/Gems/2.3.0/gems/twurl-0.9.3/lib/twurl/cli.rb:94:in |
@cognitive137 I think you should probably reset/delete that API key as it looks like it's been printed out in your error log there. (Editing your github comment will not remove it as there is a history of comments avalible). You should do this asap or someone may be able to use twitter as you 😢 |
@BlueHatbRit , thank you! |
That's the fix! Many thanks @jasonhemann |
It's works for me too. You missing c on the last command (should be cp ~/.twurlrc ~/.trc). Thank you. |
This worked for me too! |
This is still working! Thanks! 👏 |
Assuming this got fixed in #479 and reared its head due to some other issue now.
I literally only installed ruby 2.4, then did gem install t, and this is what happened.
Traceback:
gem list
says:Not sure how to progress. Workarounds?
The text was updated successfully, but these errors were encountered: