FiPy/Pyscan problem
-
I have a FiPy running "Pycom MicroPython 1.19.0.b4 [v1.9.4-50f84dd] on 2018-07-13; FiPy with ESP32"
I have just plugged it into a PyScan and I tried running the example main.py from:
https://github.com/pycom/pycom-libraries/tree/master/pyscan
I am told:
Traceback (most recent call last): File "main.py", line 14, in <module> ValueError: incompatible .mpy file
I now have a copy of MFRC630.mpy uploaded to both /flash & /flash/lib using Filezilla, just in case.
What else can I try?
-
Hi @soulsurfer,
Thanks for noticing! I'll let the team know. We're using the
.mpy
version to save memory, so your project can take up more space.May I ask what are you missing from the documentation?
-
@soulsurfer That's nothing to be sad about. I stumbled over that incompatibility last week, and it caused me some time to discover the reason for than unexpected behavior. The make scripts for the firmware do not force re-building of mpy-cross when a different branch is checked out.
-
Thanks @robert-hh. That explains my issue! The perils of being a micropython noob :(
I didn't build it myself. I just grabbed it using git and FTPed it to the FiPy. The documentation is rather sparse!
Thanks to your hint I have now located where MFRC630.py was hiding:
https://github.com/pycom/pycom-libraries/tree/master/lib/MFRC630
-
@soulsurfer How did you create the mpy file? Which version of mpy-cross did you use? The versions created with the master and development version are different, the generated code is incompatible.