Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'ENCODER' #3349

Open
RFB127 opened this issue Nov 29, 2024 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'ENCODER' #3349

RFB127 opened this issue Nov 29, 2024 · 1 comment

Comments

@RFB127
Copy link

RFB127 commented Nov 29, 2024

Hi there,
I'm running into a problem with the post processing. If I decide to turn on the Re-Encoding, the tasks skips all songs with following error:

File "C:\Program Files\headphones\headphones\music_encoder.py", line 255, in command_map 
return command(*args)
File "C:\Program Files\headphones\headphones\music_encoder.py", line 280, in command
elif headphones.CONFIG.ENCODER == 'lame':
AttributeError: 'NoneType' object has no attribute 'ENCODER'

These are the settings I use for the Re-Encoding.
image

I checked the path to the ffmpeg bin folder, and I have full access to all files on every directory being used. The files are moved to the temp directory for post processing and then just stop there. If I disable Re-Encoding, everything works just fine.
I´m not really a programmer at all, but it seems to me that the program somehow can't read my config file?

I'm on Windows 10 using Python 3.10.11 and the latest version of ffmpeg and headphones.

@AdeHub
Copy link
Collaborator

AdeHub commented Dec 7, 2024

Try it as C:\Program Files\ffmpeg\bin\ffmpeg.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants