A
Hi again,
we resolved this issue and it is easy to tackle if you know what has been happening to make things go south. So, let me explain.
When installing micropython-urllib.parse with upip, this obviously pulls in all package dependencies. One dependency, the package micropython-re-pcre brings in the re.py module along with ffilib.py as a utility module to be able to talk to libpcre.
However, all of this is not available on the Pycom platform, but Pycom itself ships a built-in re package, which would have worked right away when not being masked by the vanilla re.py shipped through micropython-re-pcre.
So, we manually remove re.py and ffilib.py from the dist-packages folder before uploading the firmware using rshell. Then, urllib will use the built-in re.py module and everything works like a charm.
Sorry for the noise and happy hacking,
Andreas.
P.S.: If you are interested in what we are building here, you are welcome to have a look at the Hiveeyes MPY data logger firmware. We'd love to hear about any feedback and suggestions you might have.