I just created a C module that loads and works correctly on the unix port (WSL Ubuntu),
but when I create a windows exe and try to load it, I get:
Code: Select all
>>> import mpmymod
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'mpmymod'
under build/
Code: Select all
$ make CROSS_COMPILE=i686-w64-mingw32- USER_C_MODULES=. CFLAGS_EXTRA="-DMODULE_MPMYMOD_ENABLED=1"
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Including User C Module from ./mpmymod
mkdir -p build/genhdr
GEN build/genhdr/mpversion.h
GEN build/genhdr/moduledefs.h
GEN build/genhdr/qstr.i.last
GEN build/genhdr/qstr.split
GEN build/genhdr/qstrdefs.collected.h
QSTR updated
....
LINK micropython.exe
text data bss dec hex filename
312240 3644 8732 324616 4f408 micropython.exe
Code: Select all
>>> import sys
>>> print (sys.path)
['', 'C:/Users/pp/.micropython/lib:/usr/lib/micropython']
Thanks!
PP