Advertisement
Guest User

Untitled

a guest
Dec 25th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.54 KB | None | 0 0
  1. $ sudo -H pip3 install -r requirements-pi.txt
  2. 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)
  3. Collecting pycoap
  4. Cloning git://github.com/moroen/pycoap.git to /tmp/pip-install-au9owool/pycoap
  5. Running command git clone -q git://github.com/moroen/pycoap.git /tmp/pip-install-au9owool/pycoap
  6. Building wheels for collected packages: pycoap
  7. Building wheel for pycoap (setup.py) ... error
  8. ERROR: Command errored out with exit status 1:
  9. 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
  10. cwd: /tmp/pip-install-au9owool/pycoap/
  11. Complete output (132 lines):
  12. running bdist_wheel
  13. running build
  14. running build_py
  15. creating build
  16. creating build/lib.linux-armv7l-3.7
  17. creating build/lib.linux-armv7l-3.7/pycoap
  18. copying pycoap/errors.py -> build/lib.linux-armv7l-3.7/pycoap
  19. copying pycoap/pycoap.py -> build/lib.linux-armv7l-3.7/pycoap
  20. copying pycoap/__init__.py -> build/lib.linux-armv7l-3.7/pycoap
  21. running build_ext
  22. $ GOPATH=/tmp/tmpnpr7vjz7 go get -d
  23. /tmp/ccWT95yJ.o: In function `main':
  24. test.c:(.text+0xc): undefined reference to `f'
  25. collect2: error: ld returned 1 exit status
  26. $ 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
  27. flag provided but not defined: -buildmode
  28. usage: build [-o output] [-i] [build flags] [packages]
  29.  
  30. Build compiles the packages named by the import paths,
  31. along with their dependencies, but it does not install the results.
  32.  
  33. If the arguments are a list of .go files, build treats them as a list
  34. of source files specifying a single package.
  35.  
  36. When the command line specifies a single main package,
  37. build writes the resulting executable to output.
  38. Otherwise build compiles the packages but discards the results,
  39. serving only as a check that the packages can be built.
  40.  
  41. The -o flag specifies the output file name. If not specified, the
  42. output file name depends on the arguments and derives from the name
  43. of the package, such as p.a for package p, unless p is 'main'. If
  44. the package is main and file names are provided, the file name
  45. derives from the first file name mentioned, such as f1 for 'go build
  46. f1.go f2.go'; with no files provided ('go build'), the output file
  47. name is the base name of the containing directory.
  48.  
  49. The -i flag installs the packages that are dependencies of the target.
  50.  
  51. The build flags are shared by the build, clean, get, install, list, run,
  52. and test commands:
  53.  
  54. -a
  55. force rebuilding of packages that are already up-to-date.
  56. -n
  57. print the commands but do not run them.
  58. -p n
  59. the number of builds that can be run in parallel.
  60. The default is the number of CPUs available.
  61. -race
  62. enable data race detection.
  63. Supported only on linux/amd64, darwin/amd64 and windows/amd64.
  64. -v
  65. print the names of packages as they are compiled.
  66. -work
  67. print the name of the temporary work directory and
  68. do not delete it when exiting.
  69. -x
  70. print the commands.
  71.  
  72. -ccflags 'arg list'
  73. arguments to pass on each 5c, 6c, or 8c compiler invocation.
  74. -compiler name
  75. name of compiler to use, as in runtime.Compiler (gccgo or gc).
  76. -gccgoflags 'arg list'
  77. arguments to pass on each gccgo compiler/linker invocation.
  78. -gcflags 'arg list'
  79. arguments to pass on each 5g, 6g, or 8g compiler invocation.
  80. -installsuffix suffix
  81. a suffix to use in the name of the package installation directory,
  82. in order to keep output separate from default builds.
  83. If using the -race flag, the install suffix is automatically set to race
  84. or, if set explicitly, has _race appended to it.
  85. -ldflags 'flag list'
  86. arguments to pass on each 5l, 6l, or 8l linker invocation.
  87. -tags 'tag list'
  88. a list of build tags to consider satisfied during the build.
  89. For more information about build tags, see the description of
  90. build constraints in the documentation for the go/build package.
  91.  
  92. The list flags accept a space-separated list of strings. To embed spaces
  93. in an element in the list, surround it with either single or double quotes.
  94.  
  95. For more about specifying packages, see 'go help packages'.
  96. For more about where packages and binaries are installed,
  97. run 'go help gopath'. For more about calling between Go and C/C++,
  98. run 'go help c'.
  99.  
  100. See also: go install, go get, go clean.
  101. Traceback (most recent call last):
  102. File "<string>", line 1, in <module>
  103. File "/tmp/pip-install-au9owool/pycoap/setup.py", line 20, in <module>
  104. setup_requires=["setuptools-golang"],
  105. File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
  106. return distutils.core.setup(**attrs)
  107. File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
  108. dist.run_commands()
  109. File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
  110. self.run_command(cmd)
  111. File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
  112. cmd_obj.run()
  113. File "/usr/local/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
  114. self.run_command('build')
  115. File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
  116. self.distribution.run_command(command)
  117. File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
  118. cmd_obj.run()
  119. File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
  120. self.run_command(cmd_name)
  121. File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
  122. self.distribution.run_command(command)
  123. File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
  124. cmd_obj.run()
  125. File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
  126. _build_ext.run(self)
  127. 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
  128. _build_ext.build_ext.run(self)
  129. File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 340, in run
  130. self.build_extensions()
  131. 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
  132. _build_ext.build_ext.build_extensions(self)
  133. File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
  134. self._build_extensions_serial()
  135. File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
  136. self.build_extension(ext)
  137. File "/tmp/pip-install-au9owool/pycoap/.eggs/setuptools_golang-1.6.0-py3.7.egg/setuptools_golang.py", line 131, in build_extension
  138. _check_call(cmd_build, cwd=pkg_path, env=env)
  139. File "/tmp/pip-install-au9owool/pycoap/.eggs/setuptools_golang-1.6.0-py3.7.egg/setuptools_golang.py", line 80, in _check_call
  140. subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ, **env))
  141. File "/usr/local/lib/python3.7/subprocess.py", line 347, in check_call
  142. raise CalledProcessError(retcode, cmd)
  143. 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.
  144. ----------------------------------------
  145. ERROR: Failed building wheel for pycoap
  146. Running setup.py clean for pycoap
  147. Failed to build pycoap
  148. Installing collected packages: pycoap
  149. Running setup.py install for pycoap ... error
  150. ERROR: Command errored out with exit status 1:
  151. 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
  152. cwd: /tmp/pip-install-au9owool/pycoap/
  153. Complete output (134 lines):
  154. running install
  155. running build
  156. running build_py
  157. creating build
  158. creating build/lib.linux-armv7l-3.7
  159. creating build/lib.linux-armv7l-3.7/pycoap
  160. copying pycoap/errors.py -> build/lib.linux-armv7l-3.7/pycoap
  161. copying pycoap/pycoap.py -> build/lib.linux-armv7l-3.7/pycoap
  162. copying pycoap/__init__.py -> build/lib.linux-armv7l-3.7/pycoap
  163. running build_ext
  164. $ GOPATH=/tmp/tmpdpwtgly5 go get -d
  165. /tmp/ccEkWXDH.o: In function `main':
  166. test.c:(.text+0xc): undefined reference to `f'
  167. collect2: error: ld returned 1 exit status
  168. $ 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
  169. flag provided but not defined: -buildmode
  170. usage: build [-o output] [-i] [build flags] [packages]
  171.  
  172. Build compiles the packages named by the import paths,
  173. along with their dependencies, but it does not install the results.
  174.  
  175. If the arguments are a list of .go files, build treats them as a list
  176. of source files specifying a single package.
  177.  
  178. When the command line specifies a single main package,
  179. build writes the resulting executable to output.
  180. Otherwise build compiles the packages but discards the results,
  181. serving only as a check that the packages can be built.
  182.  
  183. The -o flag specifies the output file name. If not specified, the
  184. output file name depends on the arguments and derives from the name
  185. of the package, such as p.a for package p, unless p is 'main'. If
  186. the package is main and file names are provided, the file name
  187. derives from the first file name mentioned, such as f1 for 'go build
  188. f1.go f2.go'; with no files provided ('go build'), the output file
  189. name is the base name of the containing directory.
  190.  
  191. The -i flag installs the packages that are dependencies of the target.
  192.  
  193. The build flags are shared by the build, clean, get, install, list, run,
  194. and test commands:
  195.  
  196. -a
  197. force rebuilding of packages that are already up-to-date.
  198. -n
  199. print the commands but do not run them.
  200. -p n
  201. the number of builds that can be run in parallel.
  202. The default is the number of CPUs available.
  203. -race
  204. enable data race detection.
  205. Supported only on linux/amd64, darwin/amd64 and windows/amd64.
  206. -v
  207. print the names of packages as they are compiled.
  208. -work
  209. print the name of the temporary work directory and
  210. do not delete it when exiting.
  211. -x
  212. print the commands.
  213.  
  214. -ccflags 'arg list'
  215. arguments to pass on each 5c, 6c, or 8c compiler invocation.
  216. -compiler name
  217. name of compiler to use, as in runtime.Compiler (gccgo or gc).
  218. -gccgoflags 'arg list'
  219. arguments to pass on each gccgo compiler/linker invocation.
  220. -gcflags 'arg list'
  221. arguments to pass on each 5g, 6g, or 8g compiler invocation.
  222. -installsuffix suffix
  223. a suffix to use in the name of the package installation directory,
  224. in order to keep output separate from default builds.
  225. If using the -race flag, the install suffix is automatically set to race
  226. or, if set explicitly, has _race appended to it.
  227. -ldflags 'flag list'
  228. arguments to pass on each 5l, 6l, or 8l linker invocation.
  229. -tags 'tag list'
  230. a list of build tags to consider satisfied during the build.
  231. For more information about build tags, see the description of
  232. build constraints in the documentation for the go/build package.
  233.  
  234. The list flags accept a space-separated list of strings. To embed spaces
  235. in an element in the list, surround it with either single or double quotes.
  236.  
  237. For more about specifying packages, see 'go help packages'.
  238. For more about where packages and binaries are installed,
  239. run 'go help gopath'. For more about calling between Go and C/C++,
  240. run 'go help c'.
  241.  
  242. See also: go install, go get, go clean.
  243. Traceback (most recent call last):
  244. File "<string>", line 1, in <module>
  245. File "/tmp/pip-install-au9owool/pycoap/setup.py", line 20, in <module>
  246. setup_requires=["setuptools-golang"],
  247. File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
  248. return distutils.core.setup(**attrs)
  249. File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
  250. dist.run_commands()
  251. File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
  252. self.run_command(cmd)
  253. File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
  254. cmd_obj.run()
  255. File "/usr/local/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
  256. return orig.install.run(self)
  257. File "/usr/local/lib/python3.7/distutils/command/install.py", line 545, in run
  258. self.run_command('build')
  259. File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
  260. self.distribution.run_command(command)
  261. File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
  262. cmd_obj.run()
  263. File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
  264. self.run_command(cmd_name)
  265. File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
  266. self.distribution.run_command(command)
  267. File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
  268. cmd_obj.run()
  269. File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
  270. _build_ext.run(self)
  271. 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
  272. _build_ext.build_ext.run(self)
  273. File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 340, in run
  274. self.build_extensions()
  275. 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
  276. _build_ext.build_ext.build_extensions(self)
  277. File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
  278. self._build_extensions_serial()
  279. File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
  280. self.build_extension(ext)
  281. File "/tmp/pip-install-au9owool/pycoap/.eggs/setuptools_golang-1.6.0-py3.7.egg/setuptools_golang.py", line 131, in build_extension
  282. _check_call(cmd_build, cwd=pkg_path, env=env)
  283. File "/tmp/pip-install-au9owool/pycoap/.eggs/setuptools_golang-1.6.0-py3.7.egg/setuptools_golang.py", line 80, in _check_call
  284. subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ, **env))
  285. File "/usr/local/lib/python3.7/subprocess.py", line 347, in check_call
  286. raise CalledProcessError(retcode, cmd)
  287. 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.
  288. ----------------------------------------
  289. 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