# ZipFile file not found error

**URL:** <https://forum.codewithmosh.com/t/zipfile-file-not-found-error/22274>\
**Category:** Uncategorized\
**Created:** [August 29, 2023, 11:23pm UTC](https://forum.codewithmosh.com/t/zipfile-file-not-found-error/22274 "2023-08-29T23:23:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![divagirl143](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@divagirl143](https://forum.codewithmosh.com/u/divagirl143)\
**Post date:** [August 29, 2023, 11:23pm UTC](https://forum.codewithmosh.com/t/zipfile-file-not-found-error/22274/1 "2023-08-29T23:23:54Z")

</div>

I’m getting an error running this code from Chapter 9 - section 5 Working with Zip. It is telling me that “files.zip” cannot be found (see error below) but I thought the point of ZipFile is to create a zip file. I’m using Windows 11. Can someone pls help?

from pathlib import Path  
from zipfile import ZipFile

with ZipFile(“files.zip”) as zip:  
print(zip.namelist())

Error:

Exception has occurred: FileNotFoundError  
[Errno 2] No such file or directory: ‘files.zip’  
File “C:\Users\<\>\Desktop\HelloWorld\app.py”, line 4, in   
with ZipFile(“files.zip”) as zip:  
^^^^^^^^^^^^^^^^^^^^  
FileNotFoundError: [Errno 2] No such file or directory: ‘files.zip’

Thanks in advance!
