Dmr Utils


Steve Siesel [K4KSA]
 

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#


Steve N4IRS
 

       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#



Cort N0MJS <n0mjs@...>
 

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#



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#

 


Don Poaps
 

On Sat, Jun 24, 2017 at 03:56 PM, Steve N4IRS wrote:
cd dmr_utils/
It is creating the folder dmr/utils/ directory I did ls and I hope this screencap shows the error. I'm running this on my dvswitch pi.

later

73

Don va7dgp





Steve N4IRS
 

Things have changed since 2017.
I suggest you ask here <https://dvswitch.groups.io/g/HBlink>

Steve N4IRS

On 12/18/2020 1:02 PM, Don Poaps wrote:
On Sat, Jun 24, 2017 at 03:56 PM, Steve N4IRS wrote:
cd dmr_utils/
It is creating the folder dmr/utils/ directory I did ls and I hope this screencap shows the error. I'm running this on my dvswitch pi.

later

73

Don va7dgp






Don Poaps
 

root@dvswitch-server:/opt/dmr_utils3# ls
dmr_utils3  install.sh  LICENSE  README.rst  setup.py
root@dvswitch-server:/opt/dmr_utils3# cd dmr_utils3
root@dvswitch-server:/opt/dmr_utils3/dmr_utils3# ls
ambe.py        const.py   encode.py        hamming.py   rs129.py
ambe_utils.py  crc.py     golay.py         __init__.py  utils.py
bptc.py        decode.py  golay_tables.py  qr.py
root@dvswitch-server:/opt/dmr_utils3/dmr_utils3#

Something I did setup. I don't see HBlink3 directory.

Lost and still looking

73

Don va7dgp/va7qu