Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sudo -H pip3 install -r requirements-pi.txt
- Requirement already satisfied: appdirs in /usr/local/lib/python3.7/site-packages/appdirs-1.4.3-py3.7.egg (from -r requirements-pi.txt (line 1)) (1.4.3)
- Collecting pycoap
- Cloning git://github.com/moroen/pycoap.git to /tmp/pip-install-au9owool/pycoap
- Running command git clone -q git://github.com/moroen/pycoap.git /tmp/pip-install-au9owool/pycoap
- Building wheels for collected packages: pycoap
- Building wheel for pycoap (setup.py) ... error
- ERROR: Command errored out with exit status 1:
- command: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-au9owool/pycoap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-au9owool/pycoap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-mfv22uku --python-tag cp37
- cwd: /tmp/pip-install-au9owool/pycoap/
- Complete output (132 lines):
- running bdist_wheel
- running build
- running build_py
- creating build
- creating build/lib.linux-armv7l-3.7
- creating build/lib.linux-armv7l-3.7/pycoap
- copying pycoap/errors.py -> build/lib.linux-armv7l-3.7/pycoap
- copying pycoap/pycoap.py -> build/lib.linux-armv7l-3.7/pycoap
- copying pycoap/__init__.py -> build/lib.linux-armv7l-3.7/pycoap
- running build_ext
- $ GOPATH=/tmp/tmpnpr7vjz7 go get -d
- /tmp/ccWT95yJ.o: In function `main':
- test.c:(.text+0xc): undefined reference to `f'
- collect2: error: ld returned 1 exit status
- $ CGO_CFLAGS=-I/usr/local/include/python3.7m CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-all GOPATH=/tmp/tmpnpr7vjz7 go build -buildmode=c-shared -o /tmp/pip-install-au9owool/pycoap/build/lib.linux-armv7l-3.7/_pycoap.cpython-37m-arm-linux-gnueabihf.so
- flag provided but not defined: -buildmode
- usage: build [-o output] [-i] [build flags] [packages]
- Build compiles the packages named by the import paths,
- along with their dependencies, but it does not install the results.
- If the arguments are a list of .go files, build treats them as a list
- of source files specifying a single package.
- When the command line specifies a single main package,
- build writes the resulting executable to output.
- Otherwise build compiles the packages but discards the results,
- serving only as a check that the packages can be built.
- The -o flag specifies the output file name. If not specified, the
- output file name depends on the arguments and derives from the name
- of the package, such as p.a for package p, unless p is 'main'. If
- the package is main and file names are provided, the file name
- derives from the first file name mentioned, such as f1 for 'go build
- f1.go f2.go'; with no files provided ('go build'), the output file
- name is the base name of the containing directory.
- The -i flag installs the packages that are dependencies of the target.
- The build flags are shared by the build, clean, get, install, list, run,
- and test commands:
- -a
- force rebuilding of packages that are already up-to-date.
- -n
- print the commands but do not run them.
- -p n
- the number of builds that can be run in parallel.
- The default is the number of CPUs available.
- -race
- enable data race detection.
- Supported only on linux/amd64, darwin/amd64 and windows/amd64.
- -v
- print the names of packages as they are compiled.
- -work
- print the name of the temporary work directory and
- do not delete it when exiting.
- -x
- print the commands.
- -ccflags 'arg list'
- arguments to pass on each 5c, 6c, or 8c compiler invocation.
- -compiler name
- name of compiler to use, as in runtime.Compiler (gccgo or gc).
- -gccgoflags 'arg list'
- arguments to pass on each gccgo compiler/linker invocation.
- -gcflags 'arg list'
- arguments to pass on each 5g, 6g, or 8g compiler invocation.
- -installsuffix suffix
- a suffix to use in the name of the package installation directory,
- in order to keep output separate from default builds.
- If using the -race flag, the install suffix is automatically set to race
- or, if set explicitly, has _race appended to it.
- -ldflags 'flag list'
- arguments to pass on each 5l, 6l, or 8l linker invocation.
- -tags 'tag list'
- a list of build tags to consider satisfied during the build.
- For more information about build tags, see the description of
- build constraints in the documentation for the go/build package.
- The list flags accept a space-separated list of strings. To embed spaces
- in an element in the list, surround it with either single or double quotes.
- For more about specifying packages, see 'go help packages'.
- For more about where packages and binaries are installed,
- run 'go help gopath'. For more about calling between Go and C/C++,
- run 'go help c'.
- See also: go install, go get, go clean.
- Traceback (most recent call last):
- File "<string>", line 1, in <module>
- File "/tmp/pip-install-au9owool/pycoap/setup.py", line 20, in <module>
- setup_requires=["setuptools-golang"],
- File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
- return distutils.core.setup(**attrs)
- File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
- dist.run_commands()
- File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
- self.run_command(cmd)
- File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
- cmd_obj.run()
- File "/usr/local/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
- self.run_command('build')
- File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
- self.distribution.run_command(command)
- File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
- cmd_obj.run()
- File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
- self.run_command(cmd_name)
- File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
- self.distribution.run_command(command)
- File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
- cmd_obj.run()
- File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
- _build_ext.run(self)
- File "/home/pi/Downloads/ikea-tradfri/ikea-tradfri/.eggs/Cython-0.29.14-py3.7-linux-armv7l.egg/Cython/Distutils/old_build_ext.py", line 186, in run
- _build_ext.build_ext.run(self)
- File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 340, in run
- self.build_extensions()
- File "/home/pi/Downloads/ikea-tradfri/ikea-tradfri/.eggs/Cython-0.29.14-py3.7-linux-armv7l.egg/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
- _build_ext.build_ext.build_extensions(self)
- File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
- self._build_extensions_serial()
- File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
- self.build_extension(ext)
- File "/tmp/pip-install-au9owool/pycoap/.eggs/setuptools_golang-1.6.0-py3.7.egg/setuptools_golang.py", line 131, in build_extension
- _check_call(cmd_build, cwd=pkg_path, env=env)
- File "/tmp/pip-install-au9owool/pycoap/.eggs/setuptools_golang-1.6.0-py3.7.egg/setuptools_golang.py", line 80, in _check_call
- subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ, **env))
- File "/usr/local/lib/python3.7/subprocess.py", line 347, in check_call
- raise CalledProcessError(retcode, cmd)
- subprocess.CalledProcessError: Command '('go', 'build', '-buildmode=c-shared', '-o', '/tmp/pip-install-au9owool/pycoap/build/lib.linux-armv7l-3.7/_pycoap.cpython-37m-arm-linux-gnueabihf.so')' returned non-zero exit status 2.
- ----------------------------------------
- ERROR: Failed building wheel for pycoap
- Running setup.py clean for pycoap
- Failed to build pycoap
- Installing collected packages: pycoap
- Running setup.py install for pycoap ... error
- ERROR: Command errored out with exit status 1:
- command: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-au9owool/pycoap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-au9owool/pycoap/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-w5w7hd5y/install-record.txt --single-version-externally-managed --compile
- cwd: /tmp/pip-install-au9owool/pycoap/
- Complete output (134 lines):
- running install
- running build
- running build_py
- creating build
- creating build/lib.linux-armv7l-3.7
- creating build/lib.linux-armv7l-3.7/pycoap
- copying pycoap/errors.py -> build/lib.linux-armv7l-3.7/pycoap
- copying pycoap/pycoap.py -> build/lib.linux-armv7l-3.7/pycoap
- copying pycoap/__init__.py -> build/lib.linux-armv7l-3.7/pycoap
- running build_ext
- $ GOPATH=/tmp/tmpdpwtgly5 go get -d
- /tmp/ccEkWXDH.o: In function `main':
- test.c:(.text+0xc): undefined reference to `f'
- collect2: error: ld returned 1 exit status
- $ CGO_CFLAGS=-I/usr/local/include/python3.7m CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-all GOPATH=/tmp/tmpdpwtgly5 go build -buildmode=c-shared -o /tmp/pip-install-au9owool/pycoap/build/lib.linux-armv7l-3.7/_pycoap.cpython-37m-arm-linux-gnueabihf.so
- flag provided but not defined: -buildmode
- usage: build [-o output] [-i] [build flags] [packages]
- Build compiles the packages named by the import paths,
- along with their dependencies, but it does not install the results.
- If the arguments are a list of .go files, build treats them as a list
- of source files specifying a single package.
- When the command line specifies a single main package,
- build writes the resulting executable to output.
- Otherwise build compiles the packages but discards the results,
- serving only as a check that the packages can be built.
- The -o flag specifies the output file name. If not specified, the
- output file name depends on the arguments and derives from the name
- of the package, such as p.a for package p, unless p is 'main'. If
- the package is main and file names are provided, the file name
- derives from the first file name mentioned, such as f1 for 'go build
- f1.go f2.go'; with no files provided ('go build'), the output file
- name is the base name of the containing directory.
- The -i flag installs the packages that are dependencies of the target.
- The build flags are shared by the build, clean, get, install, list, run,
- and test commands:
- -a
- force rebuilding of packages that are already up-to-date.
- -n
- print the commands but do not run them.
- -p n
- the number of builds that can be run in parallel.
- The default is the number of CPUs available.
- -race
- enable data race detection.
- Supported only on linux/amd64, darwin/amd64 and windows/amd64.
- -v
- print the names of packages as they are compiled.
- -work
- print the name of the temporary work directory and
- do not delete it when exiting.
- -x
- print the commands.
- -ccflags 'arg list'
- arguments to pass on each 5c, 6c, or 8c compiler invocation.
- -compiler name
- name of compiler to use, as in runtime.Compiler (gccgo or gc).
- -gccgoflags 'arg list'
- arguments to pass on each gccgo compiler/linker invocation.
- -gcflags 'arg list'
- arguments to pass on each 5g, 6g, or 8g compiler invocation.
- -installsuffix suffix
- a suffix to use in the name of the package installation directory,
- in order to keep output separate from default builds.
- If using the -race flag, the install suffix is automatically set to race
- or, if set explicitly, has _race appended to it.
- -ldflags 'flag list'
- arguments to pass on each 5l, 6l, or 8l linker invocation.
- -tags 'tag list'
- a list of build tags to consider satisfied during the build.
- For more information about build tags, see the description of
- build constraints in the documentation for the go/build package.
- The list flags accept a space-separated list of strings. To embed spaces
- in an element in the list, surround it with either single or double quotes.
- For more about specifying packages, see 'go help packages'.
- For more about where packages and binaries are installed,
- run 'go help gopath'. For more about calling between Go and C/C++,
- run 'go help c'.
- See also: go install, go get, go clean.
- Traceback (most recent call last):
- File "<string>", line 1, in <module>
- File "/tmp/pip-install-au9owool/pycoap/setup.py", line 20, in <module>
- setup_requires=["setuptools-golang"],
- File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
- return distutils.core.setup(**attrs)
- File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
- dist.run_commands()
- File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
- self.run_command(cmd)
- File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
- cmd_obj.run()
- File "/usr/local/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
- return orig.install.run(self)
- File "/usr/local/lib/python3.7/distutils/command/install.py", line 545, in run
- self.run_command('build')
- File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
- self.distribution.run_command(command)
- File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
- cmd_obj.run()
- File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
- self.run_command(cmd_name)
- File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
- self.distribution.run_command(command)
- File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
- cmd_obj.run()
- File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
- _build_ext.run(self)
- File "/home/pi/Downloads/ikea-tradfri/ikea-tradfri/.eggs/Cython-0.29.14-py3.7-linux-armv7l.egg/Cython/Distutils/old_build_ext.py", line 186, in run
- _build_ext.build_ext.run(self)
- File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 340, in run
- self.build_extensions()
- File "/home/pi/Downloads/ikea-tradfri/ikea-tradfri/.eggs/Cython-0.29.14-py3.7-linux-armv7l.egg/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
- _build_ext.build_ext.build_extensions(self)
- File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
- self._build_extensions_serial()
- File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
- self.build_extension(ext)
- File "/tmp/pip-install-au9owool/pycoap/.eggs/setuptools_golang-1.6.0-py3.7.egg/setuptools_golang.py", line 131, in build_extension
- _check_call(cmd_build, cwd=pkg_path, env=env)
- File "/tmp/pip-install-au9owool/pycoap/.eggs/setuptools_golang-1.6.0-py3.7.egg/setuptools_golang.py", line 80, in _check_call
- subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ, **env))
- File "/usr/local/lib/python3.7/subprocess.py", line 347, in check_call
- raise CalledProcessError(retcode, cmd)
- subprocess.CalledProcessError: Command '('go', 'build', '-buildmode=c-shared', '-o', '/tmp/pip-install-au9owool/pycoap/build/lib.linux-armv7l-3.7/_pycoap.cpython-37m-arm-linux-gnueabihf.so')' returned non-zero exit status 2.
- ----------------------------------------
- ERROR: Command errored out with exit status 1: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-au9owool/pycoap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-au9owool/pycoap/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-w5w7hd5y/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement