congosto / t-hoarder_kit

Set of basic tools to extract data from the Twitter API and visualize graphs
63 stars 21 forks source link

After update it doesn't work #6

Open numeroteca opened 5 years ago

numeroteca commented 5 years ago

After update it doesn't work. It get's stuck in the following.

$ ./t_hoarder_kit.sh

----------------------------------------
------> Welcome to t-hoarder kit <------
----------------------------------------

What should I look to solve this? @congosto I am working in Linux environment.

congosto commented 5 years ago

Does not give you any errors?

it could be because you have to install unicodecsv for a new functionality

Look at this link https://groups.google.com/forum/#!topic/thoarder/9fXzNN3Tk80

numeroteca commented 5 years ago

I think it might be related to the first line of the script:

file_t_hoarder_kit=`find $HOME -name t_hoarder_kit.sh 2>/dev/null`

If I reduce the file to this it goes to "Environment data":

root=`pwd`
cd $root
cd ..
python2.7 scripts/t_hoarder_menu.py ${root} --linux

but fails with the path when I enter the name of the key file:

Enter the file name with the application keys: forthoarder.key
>>>>/home/numeroteca/sites/t-hoarder_kit/scripts/keys/forthoarder.key file does not exist
congosto commented 5 years ago

Fails because it believes that t-hoarder_kit.sh is installed in / home / numeroteca / sites / t-hoarder_kit / scripts / xxxx /

Check that there is no directory under scripts that contains a shell t-hoarder_kit.sh

numeroteca commented 5 years ago

Unicodecsv installed. Now it work s (with the original t_hoarder_kit.sh)! Thanks.

I can go to the menu.

When trying to search I get:

File "/home/numeroteca/sites/t-hoarder_kit/scripts/tweet_search.py", line 23, in <module>
    import tweepy
ImportError: No module named tweepy

So my problem is now related to get the module tweepy installed in python2.7.

congosto commented 5 years ago

you must install tweepy

pip install tweepy

numeroteca commented 5 years ago

I have tweepy already installed, but the problem is that it is not installed in python2.7. When I open a python console I can import tweepy if I am in Python 2.7.15rc1 (I open the console when I am type python in the command line) but not in Python 2.7.12 (this is when I type python2.7 and the script is calling python2.7. If I change the original script and call just python, it is not working.