Home/Support/Support Forum/Issue with mpy-cross compiler in xbee module

Issue with mpy-cross compiler in xbee module

0 votes
I am using Xbee3 firmware version 300B and using mpy-cross compiler version 1.12 on PC/laptop

I am trying to use mpy-cross on a PC/laptop to pre-compile source code and to upload .mpy file instead.
I run the command 'python -m mpy_cross my_file.py' in python terminal on PC/laptop, it was successfully converting to my_file.mpy
Then I copied into Xbee module file system by using XCTU software and run the following commands in micro python terminal to bundle the .mpy file:-

import os
os.chdir('lib')
os.bundle('my_file.mpy')

Above commands resultant with an error message:
ValueError: incompatible .mpy

Please help us to know why these error is showing and how to solve this error.
asked Nov 30, 2020 in XBee3 DigiMesh by ANOM New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
Have you tried using PyCharm?
answered Nov 30, 2020 by mvut Veteran of the Digi Community (14,063 points)
...