Issue with mpy-cross compiler in xbee module

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.

Have you tried using PyCharm?