Skip to content

Remote update code“ code.py” #5000

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

Closed
ZHNscl opened this issue Jul 14, 2021 · 3 comments
Closed

Remote update code“ code.py” #5000

ZHNscl opened this issue Jul 14, 2021 · 3 comments
Milestone

Comments

@ZHNscl
Copy link

ZHNscl commented Jul 14, 2021

I want to implement FTP on IOTS2 module through circulePython.
Because OTA updates the underlying firmware, I can't update the main code of code.py, which bothers me a lot.

Referring to some of the routines in mircuitPython, one of them didn't work on my board.

from setuptools import setup
Post-run prompt "No module name 'setuptools'"
What do I need to solve?

@ZHNscl ZHNscl changed the title 远程更新代码code.py Remote update code“ code.py” Jul 14, 2021
@Neradoc
Copy link

Neradoc commented Jul 14, 2021

I want to implement FTP on IOTS2 module through circulePython.
Because OTA updates the underlying firmware, I can't update the main code of code.py, which bothers me a lot.

I believe #3454 might allow what you want to do, by uploading the file to the board, then resetting to run a script that replaces the old code.py with the new one and reset again to run the new code.py from then on. You have to make the drive writable too, that's covered in the learn guides.

@tannewt
Copy link
Member

tannewt commented Jul 14, 2021

setuptools is a CPython module that CircuitPython doesn't provide.

@tannewt tannewt closed this as completed Jul 14, 2021
@tannewt tannewt added this to the Support milestone Jul 14, 2021
@tannewt
Copy link
Member

tannewt commented Jul 14, 2021

We can help with questions like this on Discord or if you are in china we have a CircuitPython WeChat group. You can add me on wechat as tannewt and I can add you to the group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants