Skip to content

Orange Pie Installation Error #169

Closed
@msaraac

Description

@msaraac

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
I try to install awsiotsdk on orange pie but I have an error which I couldnt understand.

SDK version number
1.5.7

Platform/OS/Device
What are you running the sdk on?
Orange pie ZERO v1.5 ( 512 MB Memory ) ( Armbian Buster )

To Reproduce (observed behavior)
pip -v install awsiotsdk --no-cache-dir

Expected behavior
To be installed on device.

Logs/output

2021-03-22T12:04:36,596     building '_awscrt' extension
2021-03-22T12:04:36,599     creating build/temp.linux-armv7l-3.7
2021-03-22T12:04:36,600     creating build/temp.linux-armv7l-3.7/source
2021-03-22T12:04:36,602     arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/tmp/pip-install-tah0yn_r/awscrt_89e758d656ea436fb4e95b0a9f233613/build/deps/install/include -c source/s3_meta_request.c -o build/temp.linux-armv7l-3.7/source/s3_meta_request.o -Wextra -Werror -Wno-strict-aliasing -std=gnu99
2021-03-22T12:04:36,700     In file included from source/s3.h:8,
2021-03-22T12:04:36,702                      from source/s3_meta_request.c:5:
2021-03-22T12:04:36,703     source/module.h:13:10: fatal error: Python.h: No such file or directory
2021-03-22T12:04:36,704      #include <Python.h>
2021-03-22T12:04:36,706               ^~~~~~~~~~
2021-03-22T12:04:36,707     compilation terminated.
2021-03-22T12:04:36,709     error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
2021-03-22T12:04:36,918 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tah0yn_r/awscrt_89e758d656ea436fb4e95b0a9f233613/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tah0yn_r/awscrt_89e758d656ea436fb4e95b0a9f233613/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2djh4731/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/awscrt Check the logs for full command output.
2021-03-22T12:04:36,919 Exception information:
2021-03-22T12:04:36,919 Traceback (most recent call last):
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/req/req_install.py", line 826, in install
2021-03-22T12:04:36,919     req_description=str(self.req),
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/operations/install/legacy.py", line 86, in install
2021-03-22T12:04:36,919     raise LegacyInstallFailure
2021-03-22T12:04:36,919 pip._internal.operations.install.legacy.LegacyInstallFailure
2021-03-22T12:04:36,919 
2021-03-22T12:04:36,919 During handling of the above exception, another exception occurred:
2021-03-22T12:04:36,919 
2021-03-22T12:04:36,919 Traceback (most recent call last):
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 189, in _main
2021-03-22T12:04:36,919     status = self.run(options, args)
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/req_command.py", line 178, in wrapper
2021-03-22T12:04:36,919     return func(self, options, args)
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/install.py", line 400, in run
2021-03-22T12:04:36,919     pycompile=options.compile,
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/req/__init__.py", line 88, in install_given_reqs
2021-03-22T12:04:36,919     pycompile=pycompile,
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/req/req_install.py", line 830, in install
2021-03-22T12:04:36,919     six.reraise(*exc.parent)
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/six.py", line 703, in reraise
2021-03-22T12:04:36,919     raise value
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/operations/install/legacy.py", line 76, in install
2021-03-22T12:04:36,919     cwd=unpacked_source_directory,
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/subprocess.py", line 293, in runner
2021-03-22T12:04:36,919     spinner=spinner,
2021-03-22T12:04:36,919   File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/subprocess.py", line 258, in call_subprocess
2021-03-22T12:04:36,919     raise InstallationSubprocessError(proc.returncode, command_desc)
2021-03-22T12:04:36,919 pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tah0yn_r/awscrt_89e758d656ea436fb4e95b0a9f233613/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tah0yn_r/awscrt_89e758d656ea436fb4e95b0a9f233613/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2djh4731/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/awscrt Check the logs for full command output.

test.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions