V1.12 RuntimeError: name too long

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
User avatar
RWLTOK
Posts: 34
Joined: Thu Dec 14, 2017 7:24 pm

V1.12 RuntimeError: name too long

Post by RWLTOK » Thu Jan 02, 2020 5:58 pm

I just built and installed v1.12 on a PYBV11 board. This is what comes up after power up or a ctrl-d.

Thoughts?

Code: Select all

>>>
MPY: sync filesystems
MPY: soft reboot
RuntimeError: name too long
RuntimeError: name too long
MicroPython v1.12-35-g10709846f on 2020-01-02; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
Rich

PS:
I deleted my micropython installation and redid the git clone bla bla bla. Here is the output of the unix port:

Code: Select all

MicroPython v1.12-35-g10709846f on 2020-01-02; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>>
I don't get the error when I run the unix port.

User avatar
RWLTOK
Posts: 34
Joined: Thu Dec 14, 2017 7:24 pm

Re: V1.12 RuntimeError: name too long

Post by RWLTOK » Thu Jan 02, 2020 7:50 pm

Found the issue. I received a new clone pyboard V1.1 from China. When I restored a known working micropython image I got the same error so I knew it was not an issue with the build. By restoring the local file system (orange green LED boot), the error went away. Perhaps this will help someone.

Rich

User avatar
jimmo
Posts: 1204
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: V1.12 RuntimeError: name too long

Post by jimmo » Fri Jan 03, 2020 5:37 am

There was a fix in 1.12 that had something to do with catching cases where names were too long. https://github.com/micropython/micropython/pull/5105 That might be related.

Likely you had something in main.py, which is why a filesystem reset made the problem go away.

Post Reply