AliOS-Things
AliOS-Things copied to clipboard
新建工程执行aos upload报错 :name 'aos_component' is not defined
Describe the bug
- 通过vscode下的alios-studio新建工程。
- 执行
aos upload myProject@developerkit时遇到errorname 'aos_component' is not defined
environment
- branch(version): aos 1.3.3 aos-cube version: 0.2.59
- Desktop OS(windows linux or macOS):macOS
- example:
Screenshots
> Executing task: aos upload myProject@developerkit <
aos-cube version: 0.2.59
[INFO]: Target: myProject@developerkit
[INFO]: Not in aos_sdk_path, curr_path:'/Users/LEO/.aos/AliOS-Things/myProject'
[INFO]: Config Loading OK, use '/Users/LEO/.aos/AliOS-Things' as sdk path
scons: Reading SConscript files ...
NameError: name 'aos_component' is not defined:
File "/Users/LEO/.aos/AliOS-Things/myProject/ucube.py", line 5:
component = aos_component('helloworld', src)
[AliOS-Things] ERROR: "s" returned error code 2.
[AliOS-Things] ERROR: Command "s c o n s - f u c u b e . p y C O M M A N D = u p l o a d A P P L I C A T I O N = m y P r o j e c t B O A R D= d e v e l o p e r k i t" in "/Users/LEO/.aos/AliOS-Things/myProject"
---
终端进程已终止,退出代码: 2
终端将被任务重用,按任意键关闭。
aos-cube更新到0.2.60且SDK更新到aos 2.0.0后该问题解决