AliOS-Things icon indicating copy to clipboard operation
AliOS-Things copied to clipboard

新建工程执行aos upload报错 :name 'aos_component' is not defined

Open leoadvance opened this issue 8 years ago • 1 comments

Describe the bug

  1. 通过vscode下的alios-studio新建工程。
  2. 执行aos upload myProject@developerkit时遇到error name 'aos_component' is not defined

environment

  1. branch(version): aos 1.3.3 aos-cube version: 0.2.59
  2. Desktop OS(windows linux or macOS):macOS
  3. 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

终端将被任务重用,按任意键关闭。

leoadvance avatar Sep 19 '18 09:09 leoadvance

aos-cube更新到0.2.60且SDK更新到aos 2.0.0后该问题解决

leoadvance avatar Sep 19 '18 12:09 leoadvance