BurntSushi / goim

Goim is a robust command line utility to maintain and query the Internet Movie Database (IMDb).
The Unlicense
117 stars 9 forks source link

Could not create gzip reader for 'movies': EOF #6

Open xuanngo2001 opened 8 years ago

xuanngo2001 commented 8 years ago
goim load -db goim.sqlite
Dropping indices for: atom, name, movie, tvshow, episode
Could not create gzip reader for 'movies': EOF

My system has gzip 1.6.

BurntSushi commented 8 years ago

It looks like the movies list is empty. Might need to try re-downloading it.

xuanngo2001 commented 8 years ago

How to re-downloading it.? I re-ran the same command and it showed the same error.

xuanngo2001 commented 8 years ago

I tried the following:

goim load -db goim.sqlite -download .
Downloading movies to movies.list.gz...
Could not close FTP download: exit status 1

Filesize of movies.list.gz is 0.

xuanngo2001 commented 8 years ago

For other that same the same issue as me. Here is a way that work for me:

# Download movies.list.gz from IMDB and put in a directory(.e.g tarball)
goim load -db goim.sqlite tarball/
# Movies are processed but will show some errors as stated in issue#4.
BurntSushi commented 8 years ago

Read the documentation? See goim help load. load can either download data for you (which is apparently failing) or you can download it manually and point goim to it. e.g.,

mkdir tmp-goim
goim load -download ./tmp-goim
ls -l ./tmp-goim/

Did it download a non-empty file? If so, try doing the download manually:

mkdir tmp-goim
goim load -urls
curl what-you-see-above.list.gz > tmp-goim/movies.list.gz
goim load ./tmp-goim
BurntSushi commented 8 years ago

You can try different sources too, e.g., goim load -urls digital.