我正在尝试使用 Python 2.6 在我的 Readynas duo 上运行 Headphones,但遇到与确定操作系统版本相关的错误。作为非 python 专家,我想知道是否有人可以通过以下堆栈跟踪帮助我:
[ couchpotato.core.event] Error in event "app.version", that wasn't caught: Traceback (most recent call last): File "/usr/share/cpserver/couchpotato/core/event.py", line 12, in runHandler
return handler(*args, **kwargs) File "/usr/share/cpserver/couchpotato/core/_base/_core/main.py", line 167, in version
elif 'Darwin' in platform.platform(): platf = 'osx' File "/usr/local/lib/python2.6/platform.py", line 1520, in platform
elif system in ('Linux',): File "/usr/local/lib/python2.6/platform.py", line 361, in dist
return linux_distribution(distname, version, id, File "/usr/local/lib/python2.6/platform.py", line 333, in linux_distribution
firstline = f.readline() File "/usr/local/lib/python2.6/platform.py", line 269, in
_parse_release_file
else: UnboundLocalError: local variable 'version' referenced before assignment encoding=UTF-8 debug=False args=['--daemon', '--data_dir', '/media/UsenetTmp/.couchpotato', '--pid_file=/var/run/cpserver/server.pid'] app_dir=/usr/share/cpserver data_dir=/media/UsenetTmp/.couchpotato desktop=None options=Namespace(config_file='/media/UsenetTmp/.couchpotato/settings.conf', console_log=False, daemon=True, data_dir='/media/UsenetTmp/.couchpotato', debug=False, pid_file='/var/run/cpserver/server.pid', quiet=False)