I would like to make HBMQTT work with micropython. I've cloned micropython repo (head revision) and built UNIX successfully.
Before being able to run, I need to install some dependencies like logging. Therefore, I run the following command :
Code: Select all
./micropython -v -m upip install logging
Code: Select all
./micropython -v -m upip install logging
Traceback (most recent call last):
File "", line 291, in <module>
File "", line 252, in main
TypeError: function takes 1 positional arguments but 2 were given
Code: Select all
install_path = os.getenv("MICROPYPATH", DEFAULT_MICROPYPATH)
- cloned micropython-lib
- changed install_path = os.getenv("MICROPYPATH", DEFAULT_MICROPYPATH) to install_path = os.getenv("MICROPYPATH") or DEFAULT_MICROPYPATH
- run python setup.py sdist (with CPython3)
- copied micropython-upip-0.6.tar.gz to micropython/tools
- make clean all on unix/
then run again upip gives now :
Code: Select all
./micropython -v -m upip install logging
Segmentation fault: 11