我正在尝试使用命令行scon实用工具构建Arduino项目。我的Arduino主路径看起来像/home/<name>/Downloads/arduino/,我已经在当前工作目录中的SConscript文件中设置了这个路径,我就是从这里上传代码的。一切看起来都是文件,我的设备(Arduino yun)也是以太网连接的。一切看起来都很好,但我正在享受;
AssertionError: :
File "/home/fahad/Arduino/sketch_oct08a/SConstruct", line 133:
assert(os.path.exists(TARGET+'.pde'))这个错误。
附加信息:我遵循这个链接http://www.webweavertech.com/ovidiu/weblog/archives/000482.html并运行相同的命令序列。你觉得我的感觉有什么问题吗?让我知道并解决这个问题。
发布于 2015-10-08 14:14:04
如果您阅读了上述逻辑中的SCons中的注释,也许这就解释了您的问题?
# There should be a file with the same name as the folder and with the extension .pde
TARGET = os.path.basename(os.path.realpath(os.curdir))
assert(os.path.exists(TARGET+'.pde'))你有.pde文件吗?它在它抱怨的目录里吗?
AssertionError是当assert语句的条件不满足时得到的结果。在这种情况下,文件不存在。
https://stackoverflow.com/questions/33015353
复制相似问题