-
• #2
That's an odd one. Only thing I can think is maybe it's trying to install it for Python 2.7, not Python 3?
-
• #3
hmm, good point, I ran into several problems with python-version-hell in the past
Hmm, I'm running python 3.6.9, and pip 9.0.1, will try with other versions -
• #4
That's odd - it should be ok. Always worth trying to update
pip
itself? Maybe even runningpip3.6
would do it? -
• #5
After doing some searching in the web, BTW I'm working with ubuntu 18.04.4 LTS
Actual nrfutil version is 6, but with that I get errors around installing pc-ble-driverFigured out, that nrfutil V 5.22 can be installed.
Actual installation according to pip list is..... ..... nrfutil (5.2.0) .... .... pc-ble-driver-py (0.11.4) .... ....
I've got an error and somewhere I found to do this
export LC_ALL=C.UTF-8 export LANG=C.UTF-8
But now I'm running into problems inside py-sources.
Sometimes life is not as friendly as it could be ;-( -
• #6
Sorry, that's very frustrating. Not quite sure what to suggest....
What command did you use to force installation of nrfutil 5.2.0 though? I'm happy to add that to
provision.sh
instead? -
• #7
I used pip install nrfutil==5.2.0
See https://pypi.org/project/nrfutil/#history for moreBut as long as I don't get it running, I would not suggest to change provision.sh
-
• #8
got it running at the end (HIP HIP HURRAY)
IMHO at the end its all about PYTHON version hell. No idea, why python3.6 did not accept nrfutil 6.1.0. Testing with TensorFlow and Opencv might have been the root of problems
I'm pretty sure people with more knowhow around python could explain. People like me, that want to compile Espruino only, have to walk through dessert to find some water_This is my way to find water:
- installed python3.8
- added an alias for python to python3.8 in .bashrc for user espruino
- logged out and logged in again
- installed pip with python -m pip install pip did this because pip before still pointed to python3.6. Therefore all installation had been done to .local/lib/python3.6
- installed nrfutil with python -m pip install nrfutil
now I've a folder ~/.local/lib/python3.8/site-packages.And nrfutil is installed in version 6.1.0
Next switched to folder with Espruino-installation and called - RELEASE=1 DFU_UPDATE_BUILD=1 BOARD=MDBT42Q make >tmp/stdout 2>tmp/stderr
and it worked fine. I've got my zip for uploading to MDB42Q board
- installed python3.8
-
• #9
Thanks for the update! I bet that'll help a bunch of people.
Yes, I have no idea why Python devs seem intent on introducing breaking changes between versions of Python :(
I've tried to compile firmware for MDBT42Q.
Installation of nrfutil, copied from provision.sh, fails.
Any idea?