rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.36k stars 602 forks source link

Mako Runtime Error #3227

Closed jandreaucodes closed 4 years ago

jandreaucodes commented 4 years ago

After a reboot of my Mac (not due to any updates, just due to Monday morning cleanup), Headphones won't run. It's now showing an error of: "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)"

The full error on the page says:

Error ! UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128) (${version.HEADPHONES_VERSION}) %endif %if headphones.CONFIG.GIT_BRANCH != 'master': (${headphones.CONFIG.GIT_BRANCH}) %endif </div> </footer> <a href="#main" id="toTop"><i class="fa fa-angle-double-up"></i> <span>Back to top</span></a> </div> /Applications/Headphones/data/interfaces/default/base.html, line 104: (${headphones.CONFIG.GIT_BRANCH}) /Applications/Headphones/lib/mako/runtime.py, line 860: callable_(context, *args, **kwargs) /Applications/Headphones/lib/mako/runtime.py, line 835: _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) /Applications/Headphones/lib/mako/runtime.py, line 803: **_kwargs_for_callable(callable_, data)) /Applications/Headphones/lib/mako/template.py, line 443: return runtime._render(self, self.callable_, args, data) /Applications/Headphones/headphones/webserve.py, line 56: return template.render(**kwargs)

I'm up to date, which I verified with a git pull in my Headphones directory. As far as I can tell, nothing other than headphones.db changed today.

raymondjstone commented 4 years ago

Common issue, file names need to not have ascii values > 128. Bulk rename utility is great for sorting them

jandreaucodes commented 4 years ago

What file names is it complaining about that I would need to rename?

raymondjstone commented 4 years ago

sorry I misread, that is also a common issue when scanning download libraries, not sure in your case why yoou would get it

jandreaucodes commented 4 years ago

There was an update to Xcode last night that seems to have broken some other permission-based stuff on my machine. Any chance that's related?

raymondjstone commented 4 years ago

I have never had any issues between xcode and python. macOS updates however do tend to affect localhost web server settings. If you keep getting issues I could try an pull a copy down to one of my macs and see if it runs, but I suspect duplicating your issue may be hard. I run headphones on win10 machine since my macs are only on when I'm writing software

jandreaucodes commented 4 years ago

Looks like the issue is that Xcode changed permissions on ~/Library/LaunchAgents, so all of my plists aren't loading.

This error, oddly, is because Headphones wasn't fully running. If I run it from command line, it's working fine, though.