Xbee3 MicroPython bundled files are not accessible after firmware update to 1012

Hi! I have an issue with MicroPython after updating to firmware 1012.

Let’s suppose I have a library in /flash/lib/core.mpy file on the device.
I want to bundle it:

import uos
uos.chdir("/flash")
uos.bundle("lib/core.mpy")

All goes well.
Then I want to load the bundled module:

>>> import uos
>>> uos.chdir("/flash")
>>> uos.remove("lib/core.mpy")
>>> uos.bundle()
['lib/core']
>>> import core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'core'
>>> import lib.core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'lib.core'

The module seems to be bundled, but there is no way to import it.
Note:

  1. It works with previous firmware (1010)
  2. It works with files in /flash/ but not with files in other directories

Is this a proper place to report such issues?

No, this is not the correct place to report this. The correct way to report what you determine or feel is a Bug is to submit a Case to Digi Support by going to ttps://my.digi.com/

1 Like

Thanks for sharing useful info… Mathews