I've googled everything I can think of and I keep hitting deadends.
A couple days ago I followed these (seemingly simple) instructions for installing Beets onto my Ubuntu 16.04 server:
Code: Select all
sudo apt-get install python-dev python-pip
sudo pip install beets
I got a bunch of errors and figured it wasn't worth the hassle. I absent-mindedly reversed the above, including removing python-dev. After having more troubles (described below), I reinstalled python-dev.
Troubles? I noticed two of my services weren't working: headphones and sabnzbdplus. sudo service sabnzbdplus status gives me this:
Code: Select all
Loaded: loaded (/etc/init.d/sabnzbdplus; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-02-09 21:23:39 PST; 16min ago
Docs: man:systemd-sysv-generator(8)
Process: 10273 ExecStart=/etc/init.d/sabnzbdplus start (code=exited, status=1/FAILURE)
Feb 09 21:23:39 server sabnzbdplus[10273]: File "/usr/share/sabnzbdplus/cherrypy/__init__.py", line 66, in <module>
Feb 09 21:23:39 server sabnzbdplus[10273]: from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect # noqa
Feb 09 21:23:39 server sabnzbdplus[10273]: File "/usr/share/sabnzbdplus/cherrypy/_cperror.py", line 124, in <module>
Feb 09 21:23:39 server sabnzbdplus[10273]: import six
Feb 09 21:23:39 server sabnzbdplus[10273]: ImportError: No module named six
Feb 09 21:23:39 server sabnzbdplus[10273]: ...fail!
Feb 09 21:23:39 server systemd[1]: sabnzbdplus.service: Control process exited, code=exited status=1
Feb 09 21:23:39 server systemd[1]: Failed to start LSB: SABnzbd+ binary newsgrabber.
Feb 09 21:23:39 server systemd[1]: sabnzbdplus.service: Unit entered failed state.
Feb 09 21:23:39 server systemd[1]: sabnzbdplus.service: Failed with result 'exit-code'.
and for headphones I get this:
Code: Select all
Loaded: loaded (/etc/init.d/headphones; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-02-08 23:55:40 PST; 21h ago
Docs: man:systemd-sysv-generator(8)
Feb 08 23:55:40 server headphones[1445]: File "lib/pkg_resources.py", line 1401, in get_metadata
Feb 08 23:55:40 server headphones[1445]: return self._get(self._fn(self.egg_info, name))
Feb 08 23:55:40 server headphones[1445]: File "lib/pkg_resources.py", line 1512, in _get
Feb 08 23:55:40 server headphones[1445]: with open(path, 'rb') as stream:
Feb 08 23:55:40 server headphones[1445]: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Unidecode-
Feb 08 23:55:40 server headphones[1445]: ...fail!
Feb 08 23:55:40 server systemd[1]: headphones.service: Control process exited, code=exited status=1
Feb 08 23:55:40 server systemd[1]: Failed to start LSB: starts instance of Headphones.
Feb 08 23:55:40 server systemd[1]: headphones.service: Unit entered failed state.
Feb 08 23:55:40 server systemd[1]: headphones.service: Failed with result 'exit-code'.
Neither of these issues were present prior to the attempted Beets install.
I've tried about everything Google has dug up for me, including:
pip install --upgrade pip
easy_install six
apt-get install ubuntu-server
apt-get install python-sabyenc
apt-get install par2-tbb
python -c "import six; print (six.__version__)"
pip install six
pip --upgrade six
pip install urllib3 --upgrade
pip install six-1.11.0-py2.py3-none-any.whl
install --ignore-installed six
From various comments/answers to other people looking for the solution to this, it seems I may have "corrupted" Python. Aside from starting from scratch (which I'll probably do before I get any answers, but we'll see)... what can I do?