Josverl / micropython-stubber

Generate and maintain stubs for different MicroPython ports to use with VSCode and Pylance, PyRight, Thonny, PyCharm or MyPy
https://micropython-stubber.readthedocs.io
Other
173 stars 14 forks source link

error in processing frozen stubs for rp2040 latest #263

Closed Josverl closed 1 year ago

Josverl commented 2 years ago

run frozen latest

possibly related to #259 from : https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true

Run stubber clone 
Cloning into 'repos/micropython'...
Cloning into 'repos/micropython-lib'...
repos/micropython latest
repos/micropython-lib latest

repos/micropython-lib latest
repos/micropython-lib latest
0s
Run stubber get-frozen --black
WARNING:stubber.makemanifest_2:Could not process manifest: /home/runner/work/micropython-stubs/micropython-stubs/repos/micropython/ports/rp2/boards/manifest.py
WARNING:stubber.makemanifest_2:Could not process manifest: /home/runner/work/micropython-stubs/micropython-stubs/repos/micropython/ports/rp2/boards/manifest.py
WARNING:stubber.makemanifest_2:Could not process manifest: /home/runner/work/micropython-stubs/micropython-stubs/repos/micropython/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/manifest.py
WARNING:stubber.makemanifest_2:Could not process manifest: /home/runner/work/micropython-stubs/micropython-stubs/repos/micropython/ports/rp2/boards/manifest.py

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.[1](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:5:1)3/x64/bin/stubber", line [8](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:5:9), in <module>
    sys.exit(stubber_cli())
  File "/opt/hostedtoolcache/Python/3.[9](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:5:10).13/x64/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/click/core.py", line [10](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:5:11)53, in main
    rv = self.invoke(ctx)
  File "/opt/hostedtoolcache/Python/3.9.[13](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:5:14)/x64/lib/python3.9/site-packages/click/core.py", line [1](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:6:1)690, in invoke
    rv.append(sub_ctx.command.invoke(sub_ctx))
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/click/core.py", line [7](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:6:8)54, in invoke
    return __callback(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.[9](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:6:10).[13](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:6:14)/x64/lib/python3.9/site-packages/stubber/commands/get_frozen.py", line 57, in cli_get_frozen
    get_mpy.get_frozen(
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/stubber/get_mpy.py", line 79, in get_frozen
    get_frozen_from_manifest(manifests, stub_folder, mpy_folder, lib_folder, version)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/stubber/get_mpy.py", line [26](https://github.com/Josverl/micropython-stubs/runs/8198251876?check_suite_focus=true#step:6:27)9, in get_frozen_from_manifest
    makemanifest.include(manifest)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/stubber/makemanifest_2.py", line 139, in include
    exec(f.read(), globals(), {"options": IncludeOptions(**kwargs)})  # pylint: disable=exec-used
  File "<string>", line 3, in <module>
NameError: name 'module' is not defined
Error: Process completed with exit code 1.
Josverl commented 1 year ago

fixed by : https://github.com/Josverl/micropython-stubber/pull/265