Giter VIP home page Giter VIP logo

Comments (1)

whinee avatar whinee commented on May 23, 2024

line 136 of file /home/lyra/storage/projects/fw-linux/.venv/lib64/python3.11/site-packages/micropy/pyd/backend_upydevice.py:

results = self._pydevice.cmd(f"list(uos.ilistdir('{path}'))", silent=True, rtn_resp=True)

equals to:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 2] ENOENT

No wonder!

Running the following makes the first error go away:

mkdir stubs
ampy --port /dev/ttyUSB0 put stubs

However, a new error arise:

MicroPy  Connecting to Pyboard @ /dev/ttyUSB0
MicroPy  ✔ Connected!
2024-02-11 13:14:29.126 | DEBUG    | stubber.minify:minify_script:253 - Original length : 26905
2024-02-11 13:14:29.126 | INFO     | stubber.minify:minify_script:254 - Minified length : 11631
2024-02-11 13:14:29.126 | INFO     | stubber.minify:minify_script:255 - Reduced by      : 15274 
2024-02-11 13:14:29.354 | DEBUG    | stubber.minify:cross_compile:328 - mpy-cross compiled to    : mpy_cross_3_qc0ugh.mpy
MicroPy  Executing stubber on pyboard...
MicroPy  Pyboard  Writing /createstubs.mpy: 100%|███████████████████████████████████████████████████████████| [10.4k/10.4k @ 1.04kB/s]
MicroPy  Pyboard  Traceback (most recent call last):
MicroPy  Pyboard  File "<stdin>", line 1, in <module>
MicroPy  Pyboard  ValueError: incompatible .mpy file
MicroPy  ✔ Done!
MicroPy  Copying stubs...

from micropy-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.