Re: Dmr Utils


Steve Siesel [K4KSA]
 

Thanks to both, got them all in!

 

 

From: DVSwitch@groups.io [mailto:DVSwitch@groups.io] On Behalf Of Cort N0MJS
Sent: Saturday, June 24, 2017 7:06 PM
To: DVSwitch@groups.io
Subject: Re: [DVSwitch] Dmr Utils

 

Try installing python-dev. That's where python.h lives

Sent from my iPhone


On Jun 24, 2017, at 5:56 PM, Steve N4IRS <szingman@...> wrote:

       apt-get install python-dev -y
    apt-get install python-pip -y
        apt-get install python-twisted -y
    pip install bitstring
    pip install bitarray

        cd /opt
        git clone https://github.com/n0mjs710/dmr_utils.git
        cd dmr_utils/
    pip install --upgrade .

On 06/24/2017 06:51 PM, Steve Siesel [K4KSA] wrote:

Steve….

 

I did a apt-get install pip  and then not knowing about DMR utils did  a

 

pip install bitstring

pip install bitarray

pip install Twisted

 

I did get the following errors as noted in the red below.

 

Then I did get (git) DMR Utils… and did a

 

Pip install –upgrade .

and got this output:

 

Unpacking /srv/dmr_utils

  Running setup.py (path:/tmp/pip-MHENhJ-build/setup.py) egg_info for package from file:///srv/dmr_utils

 

Downloading/unpacking bitarray (from dmr-utils==0.1.7)

  Downloading bitarray-0.8.1.tar.gz (46kB): 46kB downloaded

  Running setup.py (path:/tmp/pip-build-dVC387/bitarray/setup.py) egg_info for package bitarray

 

Installing collected packages: bitarray, dmr-utils

  Running setup.py install for bitarray

    building 'bitarray._bitarray' extension

    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c bitarray/_bitarray.c -o build/temp.linux-armv7l-2.7/bitarray/_bitarray.o

    bitarray/_bitarray.c:9:20: fatal error: Python.h: No such file or directory

     #include "Python.h"

                        ^

    compilation terminated.

    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-dVC387/bitarray/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-HqQRt9-record/install-record.txt --single-version-externally-managed --compile:

    running install

 

running build

 

running build_py

 

creating build

 

creating build/lib.linux-armv7l-2.7

 

creating build/lib.linux-armv7l-2.7/bitarray

 

copying bitarray/__init__.py -> build/lib.linux-armv7l-2.7/bitarray

 

copying bitarray/test_bitarray.py -> build/lib.linux-armv7l-2.7/bitarray

 

running build_ext

 

building 'bitarray._bitarray' extension

 

creating build/temp.linux-armv7l-2.7

 

creating build/temp.linux-armv7l-2.7/bitarray

 

arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c bitarray/_bitarray.c -o build/temp.linux-armv7l-2.7/bitarray/_bitarray.o

 

bitarray/_bitarray.c:9:20: fatal error: Python.h: No such file or directory

 

#include "Python.h"

 

                    ^

 

compilation terminated.

 

error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

 

----------------------------------------

Cleaning up...

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-dVC387/bitarray/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-HqQRt9-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-dVC387/bitarray

Storing debug log for failure in /root/.pip/pip.log

root@DMRLink:/srv/dmr_utils#

 

Join {main@DVSwitch.groups.io to automatically receive all group messages.