Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BL616的network模块适配问题 #327

Open
Y1ZzLu opened this issue Sep 20, 2023 · 1 comment
Open

BL616的network模块适配问题 #327

Y1ZzLu opened this issue Sep 20, 2023 · 1 comment

Comments

@Y1ZzLu
Copy link

Y1ZzLu commented Sep 20, 2023

使用M0S Docker bl616,在requestment中添加了network并拉取包之后
在pikastudio中会报错Error: invalid version number. Expected 4, got 6
当在studio中import network报错,显示不存在network模块ModuleNotFoundError: No module named 'network IMP network (#1)
将该固件烧录至BL618M0P Docker板子后,无虚拟串口显示

@pikasTech
Copy link
Owner

pikasTech commented Sep 21, 2023

  1. 之前的requestment里面的内核写的是latest,所以拉取包之后被更新到了最新内核,所以字节码的version number和内核的对不上,这个问题重新预编译脚本然后下载进去就可以了,建议内核和标准库版本改到1.12.3试一下
  2. 先确认是否有在main.py 里面import network,main.py中import了,才会被预编译进固件,你可能没有运行预编译,另外预编译后也要重新刷脚本,确保脚本包里有 network.py 模块的字节码。

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

No branches or pull requests

2 participants