Page 1 of 1

编译lv_port_esp32工程出现unknown statement "rsource"

Posted: Wed Nov 10, 2021 3:50 am
by snailwft
root@ubuntu:/home/share/esp32/esp_light/lvgl/lv_port_esp32# make menuconfig
fatal: Not a git repository (or any of the parent directories): .git
DEFCONFIG
/home/share/esp32/esp_light/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/Kconfig:2: syntax error
/home/share/esp32/esp_light/esp-idf/Kconfig:209: missing end statement for this entry
/home/share/esp32/esp_light/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/Kconfig:1: invalid statement
/home/share/esp32/esp_light/lvgl/lv_port_esp32/components/lvgl_esp32_drivers/Kconfig:2: unknown statement "rsource"
/home/share/esp32/esp_light/esp-idf/Kconfig:211: unexpected end statement


我的IDF版本是 V3.3.x,我更新了版本,但是好多工具有安装不了,怎个问题不知道哪位大神也遇到过,帮忙解答一下。

Re: 编译lv_port_esp32工程出现unknown statement "rsource"

Posted: Wed Nov 10, 2021 7:07 am
by ESP_ICY
这边还是建议更新下IDF版本,你是在更新版本的哪一步遇到了问题呢

Re: 编译lv_port_esp32工程出现unknown statement "rsource"

Posted: Wed Nov 10, 2021 9:43 am
by snailwft
你好,安装新版本出现的,不知道啥子问题?

Installing virtualenv
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python3.6/site-packages/pip/commands/install.py", line 272, in run
with self._build_session(options) as session:
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {}
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 931, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout, stderr)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/site-packages/pip/__main__.py", line 19, in <module>
sys.exit(pip.main())
File "/usr/local/lib/python3.6/site-packages/pip/__init__.py", line 233, in main
return command.main(cmd_args)
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 251, in main
timeout=min(5, options.timeout)) as session:
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {}
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 931, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout, stderr)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/share/esp/esp-idf/tools/idf_tools.py", line 1182, in action_install_python_env
import virtualenv # noqa: F401
ModuleNotFoundError: No module named 'virtualenv'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/share/esp/esp-idf/tools/idf_tools.py", line 1387, in <module>
main(sys.argv[1:])
File "/home/share/esp/esp-idf/tools/idf_tools.py", line 1383, in main
action_func(args)
File "/home/share/esp/esp-idf/tools/idf_tools.py", line 1186, in action_install_python_env
stdout=sys.stdout, stderr=sys.stderr)
File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'pip', 'install', '--user', 'virtualenv']' returned non-zero exit status 1.

Re: 编译lv_port_esp32工程出现unknown statement "rsource"

Posted: Fri Nov 12, 2021 6:50 am
by ESP_ICY
看你的log,你是在虚拟环境里进行idf的安装,然后现在虚拟环境的安装出现了问题是吗