Nircniv
Nircniv

Reputation: 11

I get an error even though no changes was made to my project. "Attempt to access invalid address"

I have a pygame project that crashes whenever I call pygame.mixer.music.load('./sounds/background music.mp3').

It was working perfectly fine yesterday, please note that I have made no changes to the code.

Any advice would be appreciated as I have tried everything that I could think of to fix this issue.

I checked my pygame folder and there does exist a "libmpg123.dll" file.

Traceback (most recent call last): File "C:/Users/ngtaw/PycharmProjects/snakeversus/snakeversus.py", line 291, in pygame.mixer.music.load('./sounds/background music.mp3') pygame.error: Failed loading libmpg123.dll: Attempt to access invalid address.

Upvotes: 1

Views: 544

Answers (1)

Nircniv
Nircniv

Reputation: 11

Managed to solve this by updating pygame from pygame 1.9.6 to pygame 2.0.0.dev6.

Upvotes: 0

Related Questions