1) install micropy-cli using pip, as per the install instructions
2) run micropy -t vscode foo
3) micropy fails to create project (or any project files)
Output from micropy:
MicroPy Creating New Project
MicroPy You don't have any stubs!
MicroPy To add stubs to micropy, use micropy stubs add <STUB_NAME>
Contents of ~/.micropy/micropy.log
[2022-02-09 11:14:39] DEBUG: hookproxy(add_from_file): Method added to proxy: (<function PackagesModule.add_from_file at 0x7f8ff2331670>, '_hook__add_from_file__path_None__dev_False')
[2022-02-09 11:14:39] DEBUG: hookproxy(add_package): Method added to proxy: (<function PackagesModule.add_package at 0x7f8ff2331790>, '_hook__add_package__dev_False')
[2022-02-09 11:14:39] DEBUG: hookproxy(add_package): Method added to proxy: (<function DevPackagesModule.add_package at 0x7f8ff2331c10>, '_hook__add_package__dev_True')
[2022-02-09 11:14:39] DEBUG: hookproxy(add_from_file): Method added to proxy: (<function DevPackagesModule.add_from_file at 0x7f8ff2331d30>, '_hook__add_from_file__path_None__dev_True')
[2022-02-09 11:14:39] DEBUG: hookproxy(stubs): Method added to proxy: (<function StubsModule.stubsat 0x7f8ff22db670>, '_hook__stubs__')
[2022-02-09 11:14:39] DEBUG: hookproxy(add_stub): Method added to proxy: (<function StubsModule.add_stub at 0x7f8ff22dbaf0>, '_hook__add_stub__')
[2022-02-09 11:14:39] DEBUG: micropy: MicroPy Loaded
[2022-02-09 11:14:39] INFO: micropy: Creating New Project
[2022-02-09 11:14:39] DEBUG: micropy: Starting new HTTPS connection (1): raw.githubusercontent.com:443
[2022-02-09 11:14:39] DEBUG: micropy: https://raw.githubusercontent.com:443 "GET /BradenM/micropy-stubs/master/source.json HTTP/1.1" 200 1535
[2022-02-09 11:14:39] ERROR: micropy: You don't have any stubs!
[2022-02-09 11:14:39] INFO: micropy: To add stubs to micropy, use micropy stubs add <STUB_NAME>
In this case, ~/.micropy/stubs is empty.
Installing a stub (e.g., micropy stubs add micropython) doesn't help: I get the same error.
1) install micropy-cli using pip, as per the install instructions 2) run
micropy -t vscode foo
3) micropy fails to create project (or any project files)Output from micropy:
Contents of ~/.micropy/micropy.log
In this case, ~/.micropy/stubs is empty.
Installing a stub (e.g.,
micropy stubs add micropython
) doesn't help: I get the same error.Micropy 3.6.0, Python 3.9.10, Debian sid