x0rz / tweets_analyzer

Tweets metadata scraper & activity analyzer
GNU General Public License v3.0
2.94k stars 453 forks source link

Crash while converting #24

Closed step7 closed 7 years ago

step7 commented 7 years ago

After downloading user tweets, the script crashes while converting for graphs

"Daily activity distribution (per hour) ############################################################################### [!] Error: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)"

I tracked it down to daily and weekly distribution activity charts printing. Both are crashing, so commenting the daily distribution activity does not work as the weekly one crashes too.

x0rz commented 7 years ago

Can you give me a username that will produce this result? Thank you

step7 commented 7 years ago

hi, anything throws this error.

@potus i.e. but also @support

x0rz commented 7 years ago

What's your python version and OS you're using? I can't reproduce.

step7 commented 7 years ago

Debian 8, python version I will check later.

step7 commented 7 years ago

python is version 2.7.9

x0rz commented 7 years ago

Are you sure you are running the latest version from the repository? I'm not reproducing this bug :(

step7 commented 7 years ago

Confirmed, latest version, still buggy. I suspect some locale Mismatch??

step7 commented 7 years ago

Ok came around the issue. I setup the locale and now works flawlessly.

Commands to set locale: 1: export LANG=en_US.UTF-8 2: dpkg-reconfigure locales and select the desired locale.

I think you can close it!

x0rz commented 7 years ago

Cool! 👍