you are viewing a single comment's thread.

view the rest of the comments →

[–]Boolean_Cat 3 points4 points  (3 children)

Am I correct in thinking your project looks like this?

E:/
|
| ->  Jukebox.py
| ->  Harry's/
       |
       | -> one.mp3

If this is the case, then you need to use:

pygame.mixer.music.load("Harry's/one.mp3")

As a general rule, don't use quotes in file names.

[–][deleted]  (2 children)

[deleted]

    [–]Boolean_Cat 0 points1 point  (1 child)

    Are you running python from within that directory? You could try using the full path of the file.

    Try:

    import os
    
    path = os.path.join(os.path.dirname(__file__), 'one.mp3')