Hi,
I have been trying to install HTPC Manager on my Raspberry Pi 2 with Minibian with the guide from the site (and some other guides). And seems to have a problem with a few things. One of them not be able to install psutil.
When I start with the:
I get this:
And also having problems with installing psutil after installing PIP:
Is it is possible it has something to do with python 2.7?
But when I try to install it with:
it says that it is already the newest version.
Hopefully someone can help me out. If any more information is needed.
I have been trying to install HTPC Manager on my Raspberry Pi 2 with Minibian with the guide from the site (and some other guides). And seems to have a problem with a few things. One of them not be able to install psutil.
When I start with the:
Code:
sudo apt-get install build-essential git python-imaging python-dev python-setuptools python-pip python-cherrypy smartmontools vnstat -y
I get this:
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
git set to manually installed.
python-imaging is already the newest version.
python-imaging set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.4.3) but it is not going to be installed
python-dev : Depends: python2.7-dev (>= 2.7.3-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And also having problems with installing psutil after installing PIP:
Code:
Collecting psutil
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached psutil-3.2.2.tar.gz
Building wheels for collected packages: psutil
Running setup.py bdist_wheel for psutil
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-WqWBLA/psutil/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpyJyIRlpip-wheel-:
/tmp/tmpgAgGcQ.c:1:27: fatal error: linux/ethtool.h: No such file or directory
compilation terminated.
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for psutil
Failed to build psutil
Installing collected packages: psutil
Running setup.py install for psutil
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-WqWBLA/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-AbKswp-record/install-record.txt --single-version-externally-managed --compile:
/tmp/tmpbYaVG1.c:1:27: fatal error: linux/ethtool.h: No such file or directory
compilation terminated.
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/psutil
copying psutil/_pswindows.py -> build/lib.linux-armv7l-2.7/psutil
copying psutil/_pslinux.py -> build/lib.linux-armv7l-2.7/psutil
copying psutil/_psposix.py -> build/lib.linux-armv7l-2.7/psutil
copying psutil/_psbsd.py -> build/lib.linux-armv7l-2.7/psutil
copying psutil/_pssunos.py -> build/lib.linux-armv7l-2.7/psutil
copying psutil/_psosx.py -> build/lib.linux-armv7l-2.7/psutil
copying psutil/_common.py -> build/lib.linux-armv7l-2.7/psutil
copying psutil/_compat.py -> build/lib.linux-armv7l-2.7/psutil
copying psutil/__init__.py -> build/lib.linux-armv7l-2.7/psutil
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/psutil
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPSUTIL_VERSION=322 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-armv7l-2.7/psutil/_psutil_linux.o
psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-WqWBLA/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-AbKswp-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-WqWBLA/psutil
Is it is possible it has something to do with python 2.7?
But when I try to install it with:
Code:
sudo apt-get install python2.7
it says that it is already the newest version.
Hopefully someone can help me out. If any more information is needed.