我已经成功地在覆盆子pi3上安装了tinyos,但有很多问题:1-当制作任何应用程序时,除了像Blink这样的tinyos应用程序之外,我有以下错误:
/root/tinyos-main/support/make/Makerules:56: Old TinyOS environment variables detected.在Blink模式下,它成功运行2-当运行python程序时使用"import tos“,比如
import tos
a=1
b=2
c=a+b我遇到了一个错误,比如Traceback (最近一次调用):
File "ali.py", line 1, in <module>
import tos
ImportError: No module named tos我想我在设置路径时遇到了问题
发布于 2017-04-21 18:57:24
发布于 2017-05-15 18:14:48
你能确认一下,你得到的是警告还是错误?我查看了TinyOS makerules,它显示您引用的消息只是关于不推荐使用的变量的警告,可以通过设置TINYOS_NO_DEPRECATION_WARNING环境变量将其删除。摘自下面的makerules
ifndef TINYOS_NO_DEPRECATION_WARNING
define MAKE_VERSION_TWO_WARNING
$(WARN_STRING) Old TinyOS environment variables detected.
This version of the TinyOS make system has deprecated the TOSDIR, TOSROOT,
and MAKERULES environment variables. Generally, you shouldnt need
environment variables with this version of the TinyOS make system, and if
you are not using any older versions of TinyOS on your system you should
delete these environment variables. If you wish to leave these variables
but hide this warning, set the TINYOS_NO_DEPRECATION_WARNING environment
variable. If you are looking to compile against a different TinyOS tree,
configure the makefiles used when compiling, or setup an external TinyOS
tree with additional source files, please visit
https://github.com/tinyos/tinyos-main/blob/master/support/make/README.md
for more information about the TinyOS make system.
endef发布于 2017-08-30 19:00:36
对旧环境的警告并不严重。
对于您的问题,请将python SDK路径添加到~/.bashrc,然后从tinyos导入tos而不是导入tos尝试。
https://stackoverflow.com/questions/43540843
复制相似问题