Machine Learning with Python Projects - Book Recommendation Engine using KNN

Tell us what’s happening:
Describe your issue in detail here.
there has been a problem in unziping the csv

Your code so far

get data files

!wget https://cdn.freecodecamp.org/project-data/books/book-crossings.zip

!unzip book-crossings.zip

books_filename = ‘BX-Books.csv’

ratings_filename = ‘BX-Book-Ratings.csv’

–2022-07-26 17:26:16-- … connected.
HTTP request sent, awaiting response… 200 OK
Length: 26085508 (25M) [application/zip]
Saving to: ‘book-crossings.zip.5’

book-crossings.zip. 100%[===================>] 24.88M 71.5MB/s in 0.3s

2022-07-26 17:26:17 (71.5 MB/s) - ‘book-crossings.zip.5’ saved [26085508/26085508]

Archive: book-crossings.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of book-crossings.zip or
book-crossings.zip.zip, and cannot find book-crossings.zip.ZIP, period.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Machine Learning with Python Projects - Book Recommendation Engine using KNN

Link to the challenge:

I can’t really tell what the problem is other than your program is not finding the zip file. These messages indicate that several copies have been successfully downloaded (one is book-crossings.zip.5) but it appears that the unzip shell command isn’t working.

You’ll really need to post a sharing link to your google colab notebook to allow debugging of your problem.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.