Skip to content

显示相关库import报错:ImportError: no module named 'lvgl'和'LCD' #4

@Irvingao

Description

@Irvingao

硬件

Image

固件版本

EC800MCNGBR06A01M08_OCPU_QPY_TEST0303.zip

报错内容

  • 运行example可以成功,喇叭也有声音,log输出正常,但是import 一些显示相关的库都报错。
>>> import example
>>> example.exec('/usr/example_ai.py')
lte network normal
volume: 6
>>> TIKTOK_RTC_EVENT_START
TIKTOK_RTC_EVENT_TTS_TEXT 你好
TIKTOK_RTC_EVENT_TTS_TEXT 你好有
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什么
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什么可
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什么可以
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什么可以帮
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什么可以帮到
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什么可以帮到你
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什么可以帮到你的
TIKTOK_RTC_EVENT_TTS_TEXT 你好有什么可以帮到你的吗

>>> 
>>> 
>>> print('hello world')
hello world
>>> 
>>> 
>>> 
>>> from machine import UART
>>> from machine import Timer
>>> from machine import ExtInt
>>> from machine import RTC
>>> from machine import I2C
>>> from machine import I2C_simulation
>>> from machine import SPI
>>> from machine import LCD
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: can't import name LCD
>>> 
>>> from machine import WDT
>>> import miscimport misc
>>> import audio
>>> from gnss import GnssGetData
>>> import quecgnss
>>> import cellLocator
>>> import TiktokRTC
>>> from aLiYun import aLiYun
>>> import poc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'poc'
>>> 
>>> import lvgl as lv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'lvgl'
>>> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions