Data Analysis

Can’t find the location of the ENRON email files on my Windows PC

On a Windows PC:

I happened to unzip the ENRON maildir files in a random location on my windows machine. I was getting the “directory not found” error. (It would have been nice if the ML 6.4 video suggested to unzip the maildir email contents into the same folder as all the other datacamp lessons… perhaps I’m just an idiot by not doing so.)

In any case, you can insert your own absolute directory path per the following.

In the Vectorize_Text.py file I fixed the not found problem:

# Old code
path = os.path.join('..', path[:-1])

Fix the directory not found error by inserting your PC’s absolute path like this: (use Windows Explorer to find the maildir directory. Click on the path and copy the path. )

#New code        
path = os.path.join('C:\your_PCs_maildir_directory_path', path[:-1])

I hope this suggestion can save a lot of people precious time. :slight_smile: … we have to first assume that you successfully unzipped all of the ENRON email files – which consist of over a gigabyte of data. Cool!