gism / filmaffinity2CSV

Get filmaffinity voted movies, save them to CSV and post them on IMDB
GNU Affero General Public License v3.0
18 stars 11 forks source link

Error: No module named tabulate #16

Closed pablobrugarolas closed 6 years ago

pablobrugarolas commented 7 years ago

Hi there,

I get the following error:

Traceback (most recent call last): File "main.py", line 5, in from tabulate import tabulate ImportError: No module named tabulate

I'm running python 2.7.12 and I have already install tabulate by pip3 install tabulate.

Thanks

rolgalan commented 7 years ago

Hi burgarolaspablo,

In order to use this, you need 2 modules installed:

pip install BeautifulSoup4 pip install tabualate

The second line will solve your problem.

Regards

gism commented 7 years ago

Hi, thanks rogalan, you are right. these are external libraries used on the code. we should include them in the readme, or do a setup...

please burgarolaspablo if you get more error post them here :D

txemi commented 7 years ago

In last version of ubuntu you do not need to install them with pip, you can use apt.

`:~$ python Python 2.7.12+ (default, Sep 17 2016, 12:08:02) [GCC 6.2.0 20160914] on linux2 Type "help", "copyright", "credits" or "license" for more information. import tabulate tabulate.file '/usr/lib/python2.7/dist-packages/tabulate.pyc'

:$ dpkg -S /usr/lib/python2.7/dist-packages/tabulate.py python-tabulate: /usr/lib/python2.7/dist-packages/tabulate.py :$`

so you can install them with "apt-get install python-tabulate"

pablobrugarolas commented 7 years ago

Hi,

It finally run main.py and got to the main menu. But I get an error when I introduce my ID.

Do you know your FilmAffinity User ID? or :y Introduce user ID: myid Traceback (most recent call last): File "main.py", line 371, in main() File "main.py", line 274, in main fa.setUser(sUser, sPassword) UnboundLocalError: local variable 'sUser' referenced before assignment

Thanks to all of you

gism commented 7 years ago

😧 no idea. Did you change config.py.example? (There is no need, just to know)

What user ID did you introduce? User ID is not your user name, or login name. It is a number that is shown in the URL, for example when you check your ratings. I mean the XXX: http://www.filmaffinity.com/es/userratings.php?user_id=XXXXXXXX

pablobrugarolas commented 7 years ago

Hi,

I have changed now the config.py.example adding the id like you said (I thought it was the login name).

Now I get the following

change regular expression at getNumVotes() for numPages

Thank you so much

gism commented 7 years ago

mhhh

I don't think you introduce a correct user ID. Do you get same error if you introduce user + password?

Just to confirm: config.py.example --> should be renamed to config.py (as explained in readme)