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

word_cloud crashes for me #12

Open
IndivisibleCRM opened this issue Jun 4, 2017 · 0 comments
Open

word_cloud crashes for me #12

IndivisibleCRM opened this issue Jun 4, 2017 · 0 comments

Comments

@IndivisibleCRM
Copy link

This is on Ubuntu, had to do a little more than what the install instructions here say - ruby dev stuff, PG dev stuff.

I put in three users (realDonaldTrump, SeanSpicer, KellyannePolls) and they have 2,998 tweets. Creating a word_cloud fails in this fashion:

birdwatcher[test][statuses/word_cloud]> set dest cloud
birdwatcher[test][statuses/word_cloud]> run

SEQUEL DEPRECATION WARNING: Calling a dataset filtering method with multiple arguments or an array where the first argument/element is a string is deprecated and will be removed in Sequel 5. Use Sequel.lit("DATE(posted_at) >= DATE(?) AND DATE(posted_at) <= DATE(?)", "2017-05-27", "2017-06-03") to create an SQL fragment expression and pass that to the dataset filtering method, or use the auto_literal_strings extension.

/var/lib/gems/2.3.0/gems/sequel-4.47.0/lib/sequel/dataset/query.rb:1293:in filter_expr' /var/lib/gems/2.3.0/gems/sequel-4.47.0/lib/sequel/dataset/query.rb:1249:in add_filter'
/var/lib/gems/2.3.0/gems/sequel-4.47.0/lib/sequel/dataset/query.rb:1034:in where' /var/lib/gems/2.3.0/gems/birdwatcher-0.4.0/lib/birdwatcher/modules/statuses/word_cloud.rb:129:in run'
/var/lib/gems/2.3.0/gems/birdwatcher-0.4.0/lib/birdwatcher/module.rb:159:in execute' /var/lib/gems/2.3.0/gems/birdwatcher-0.4.0/lib/birdwatcher/commands/run.rb:15:in run'
/var/lib/gems/2.3.0/gems/birdwatcher-0.4.0/lib/birdwatcher/command.rb:47:in execute' /var/lib/gems/2.3.0/gems/birdwatcher-0.4.0/lib/birdwatcher/console.rb:43:in block in handle_input'
/var/lib/gems/2.3.0/gems/birdwatcher-0.4.0/lib/birdwatcher/console.rb:41:in each' /var/lib/gems/2.3.0/gems/birdwatcher-0.4.0/lib/birdwatcher/console.rb:41:in handle_input'

[+] Processing 82 statuses... done
[+] Generating word cloud, patience please... failed
[-] FloatDomainError: NaN
[+] Word cloud written to cloud

And this does not produce a cloud.jpg or cloud.png

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

1 participant