rembo10 / headphones

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

Headphones fail to start after update on FreeBSD #3296

Closed kennedyoliveira closed 2 years ago

kennedyoliveira commented 2 years ago

Recently updated the app, and it started requiring python3, installed python 3.8 and when I try to run I get the following error:

root@headphones:/usr/local/headphones # service headphones start
Starting headphones.
Traceback (most recent call last):
  File "/usr/local/headphones/Headphones.py", line 27, in <module>
    from headphones import webstart, logger  File "/usr/local/headphones/headphones/__init__.py", line 20, in <module>
    import subprocess
  File "/usr/local/lib/python3.8/subprocess.py", line 49, in <module>
    import signal
  File "/usr/local/lib/python3.8/signal.py", line 4, in <module>
    from enum import IntEnum as _IntEnum
ImportError: bad magic number in 'enum': b'\x03\xf3\r\n'
/usr/local/etc/rc.d/headphones: WARNING: failed to start headphones

Running python 3.8.12 on FreeBSD (TrueNAS) jail

rembo10 commented 2 years ago

In the headphones source directory: find . -name '*.pyc' -delete

I'm still trying to figure out the best way to handle this, but that will at least fix the problem. I'm not really sure why python is using the old pyc files....

kennedyoliveira commented 2 years ago

Awesome, it did solve the issue.