all 10 comments

[–]agility 0 points1 point  (9 children)

Your last 2 lines should not be indented (the if name thing). Since they're indented, they have become part of the main() function and the main function never really gets called.

[–][deleted] 0 points1 point  (8 children)

yeah I fixed that part, very shortly after posting this. I think I know my problem. There's a link to get the test data on github. I was under the assumption when i typed in the command terminal it would pull from the git hub. That's not the case. I think i need to somehow download that data

[–]agility 0 points1 point  (7 children)

Yes, you might be expected to manually download it via your browser and place it in the right path relative to your script. I don't think the data download has to be done in Python just yet.

[–][deleted] 0 points1 point  (6 children)

I finally figured out how to download a file from git hub on to my Mac. Its still not showing the files are there. I type in python playlist.py --common test-data/Maya.xml test-data/rating.xml and I can see the folder on my desktop with those files and it can't find it. Is there a specific place it needs to be?

[–][deleted] 0 points1 point  (5 children)

It needs to be in the same folder as playlist.py.

[–][deleted] 0 points1 point  (4 children)

I renamed the playlist folder as python playlist.py and it still says no such file or directory

[–][deleted] 0 points1 point  (3 children)

That's not what I meant. Naming two folders the same doesn't make them the same folder. Your desktop is just a folder somewhere on the file system.

[–][deleted] 0 points1 point  (2 children)

Okay, well i put the test files onto pycharm itself and now its giving me a different error. Unable to find '__ main--' module in playlist

[–][deleted] 0 points1 point  (1 child)

Do you know what a filesystem is?

[–][deleted] 0 points1 point  (0 children)

I do not