panda: error in panda.flash_release()
Need to reflash my panda white. Using panda.flash_release() does this:
Using panda with serial XXX
Fetching latest firmware from github.com/commaai/panda-artifacts
Fetching firmware from https://github.com/commaai/panda-artifacts/raw/master/panda-v1.7.3-DEV-d034f3e9-RELEASE.zip
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/anaconda3/lib/python3.7/site-packages/panda/flash_release.py", line 32, in flash_release
path = io.StringIO(r.content)
TypeError: initial_value must be str or None, not bytes
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 17 (6 by maintainers)
Finally someone is figuring out this issue! My panda has been BROKEN for 6 months ever since I tried to update using curl.
Ok, that seems to have worked. Download an old image from https://github.com/commaai/panda-artifacts and then run this pointing to the firmware zip file, but running the current (i.e. fixed) branch:
sudo -E python3 -c "import panda; panda.flash_release('/home/balt/Downloads/panda-v1.5.2-DEV-736c2cbf-RELEASE.zip')"and yes for some reason I still need to sudo this, even though I’ve installed the udev rules.
Why are you discontinuing wifi support? That’s a pretty major feature deprecation making the panda unusable with logger software on iPhone.
Looks like a sudo was missing and now it works. HOWEVER: The flashed version now only offers a BROKEN wifi identifier and the while connecting to the pairing wifi works, the subsequent attempt to connect to the BROKEN wifi does not. The password appears to be different.
So the question now is how to flash a non-broken version!?
Ok, so I’ve reinstalled this laptop to Ubuntu 20.04 LTS.
installed pip3:
sudo apt install python3-pipcloned panda:git clone https://github.com/commaai/panda.gitinstalled panda using pip3 from the cloned directory:
plugged in my panda+paw:
and trying to flash it to the release:
Any help getting this to work is greatly appreciated!