WorldObservationLog / AppleMusicDecrypt

Apple Music decryption tool, based on zhaarey/apple-music-alac-atmos-downloader
GNU Affero General Public License v3.0
114 stars 30 forks source link

No such file or directory #12

Closed ngagne closed 6 months ago

ngagne commented 6 months ago

I'm running the script on Windows 10 x86_64, Python 3.12.3, using a virtual Pixel 6 Pro running Android 13.0. The script is able to connect and appears to download but it fails to find the files:

2024-05-30 09:30:10.652 | INFO     | src.rip:rip_song:90 - Downloading song: ...
2024-05-30 09:30:11.860 | INFO     | src.decrypt:decrypt:25 - Using device 127.0.0.1:5555 to decrypt song: ...
2024-05-30 09:30:25.106 | ERROR    | __main__:<module>:16 - An error has been caught in function '<module>', process 'MainProcess' (10116), thread 'MainThread' (12464):
Traceback (most recent call last):

  File "C:\Users\nick\AppleMusicDecrypt\src\mp4.py", line 236, in fix_encapsulate
    with open(new_song_name.absolute(), "rb") as f:
              │             │                    └ <_io.BufferedWriter name='C:\\Users\\nick\\AppData\\Local\\Temp\\tmptyyj82s8\\39c95b9ae34b4745801b1a63a0df2c85.m4a'>
              │             └ <function Path.absolute at 0x0000016C594DFEC0>
              └ WindowsPath('C:/Users/nick/AppData/Local/Temp/tmptyyj82s8/39c95b9ae34b4745801b1a63a0df2c85_fixed.m4a')

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\nick\\AppData\\Local\\Temp\\tmptyyj82s8\\39c95b9ae34b4745801b1a63a0df2c85_fixed.m4a'
WorldObservationLog commented 6 months ago

Did you install the FFMpeg?

ngagne commented 6 months ago

Thank you! I had installed ffmpeg, but the PATH was incorrect. Fixing the path resolved it.