nandhp / python-imdb

Python interface to IMDb plain-text data files
BSD 2-Clause "Simplified" License
41 stars 12 forks source link

Running queries #5

Closed AlyssaLytle closed 8 years ago

AlyssaLytle commented 8 years ago

Hello! I am new to using python to query data. I downloaded the files and followed the instructions to create imdb.zip and imdb.zip.idx. Now how do I use a file, say "example.py" to actually run queries? When I tried just running "python example.py", I got an error.
Sorry for my ignorance! Any help is appreciated!

error

Alyssa Byrnes

nandhp commented 8 years ago

Hello,

It is trying to use the external program gzip to access the compressed index, and it is not able to find it in your PATH. (Using the external program is much faster than the GzipFile Python module.) I am a little surprised that this is failing for search, though, given that the index file would have been created the same way. I am not sure where to recommend getting a Windows version of Gzip, but you could start by checking http://www.gzip.org/