Skip to content

Conversation

@godmial
Copy link

@godmial godmial commented Nov 28, 2025

Description

This PR adds a troubleshooting section to the README.md to help users resolve installation issues on Ubuntu 23.04 and later versions.

Problem

On Ubuntu 23.04+, the installation script may complete successfully, but users may encounter ModuleNotFoundError errors when using commands like pkgs or scons --menuconfig. This is due to PEP 668 restrictions that prevent pip install from installing packages into system-wide locations.

Solution

Added a new "Troubleshooting" section in the README.md that:

  • Explains the issue with PEP 668 restrictions on Ubuntu 23.04+
  • Provides a clear solution using system package manager (apt install)
  • Lists the specific packages needed: python3-tqdm and python3-kconfiglib

Changes

  • Added "Troubleshooting" section after "Prepare Env" section in README.md
  • Includes instructions for Ubuntu 23.04+ users to manually install missing dependencies

Testing

  • Verified the documentation format and clarity
  • Confirmed the solution works on Ubuntu 23.04+ systems

Related Issues

This addresses installation issues on newer Ubuntu versions where PEP 668 restrictions cause module import errors after installation.

@dongly
Copy link
Contributor

dongly commented Nov 28, 2025

#257
应是修改安装脚本,软件包安装在虚拟环境(现windows 就是安装在虚拟环境),而不是加说明

@godmial
Copy link
Author

godmial commented Nov 28, 2025

#257 应是修改安装脚本,软件包安装在虚拟环境(现windows 就是安装在虚拟环境),而不是加说明

在虚拟环境中可以成功安装依赖,但是我这边安装成功之后使用scons命令还是失败,可能是因为命令仍然使用的是系统路径而不是虚拟环境

dongly added a commit to dongly/env that referenced this pull request Jan 31, 2026
- 重构了安装脚本
- 将安装脚本统一移动到 tools 目录
- 更新 README 文档
- 支持中/英双语
- Linux/MacOS 统一使用虚拟环境
    RT-Thread#257
   RT-Thread#269
- 可能自定义安装目录(默认: ~/.rt-env)
   RT-Thread#230
- 根据 IP,决定是否使用国内镜像(软件/仓库/PyPI)
- 多平台共用的操作由 touch_env.py 统一处理,方便维护
- Linux / MacOS 整合为一个安装文件 install.sh
- 可选是否安装 pyocd
- 对已经安装 ENV, 可选择多种保留策略(主要是因工具链下载时间太长了)
- 激活后显示欢迎词
-  可设定 env、package 、sdk 仓库的地址及分支,方便测试这些仓库的更改
- Windows 安装脚本:
    - 设置 ps 脚本的执行策略
    - 自动搜索系统中的 Python
    - 或自动下载并安装便携式 Python
    - 为 Python 设置长路径支持
    - 自动下载安装 Git 最新版
 - 使用了 AI 辅助

已测试平台:
 - Windows 11: Windows PowerShell 5.1
 - Windows 11: PowerShell 7.5
 - Windows WSL2: Ubuntu 24.04.3 LTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants