Firmware 0.2.8: Fermentation GUI is out

My update went ok until it tried to check firmware version.

   Traceback (most recent call last):
  File "updater.py", line 424, in <module>
    updateFirmware.updateFromGitHub(userInput) # update and restore settings, do not prompt user
  File "/home/brewpi/utils/updateFirmware.py", line 20, in updateFromGitHub
    import brewpiVersion
  File "/home/brewpi/brewpiVersion.py", line 21, in <module>
    from BrewPiUtil import asciiToUnicode
ImportError: cannot import name asciiToUnicode

It updated the firmware after I ran it again selecting No to update the firmaware and then running it again and selecting yes. So the 3rd time was the charm. :wink:

Update: Lost all of my settings on the update.

Looks great guys, Super easy to upgrade. Way to go, I know you have been swamped.

All looks good here - had the same error as above:

indent preformatted text by 4 spacesThe update script can automatically check your controller firmware version and program it with the latest release on GitHub, would you like to do this now? [Y/n]:y
Traceback (most recent call last):
File "updater.py", line 424, in <module>
updateFirmware.updateFromGitHub(userInput) # update and restore settings, do not prompt user
File "/home/brewpi/utils/updateFirmware.py", line 20, in updateFromGitHub
import brewpiVersion
File "/home/brewpi/brewpiVersion.py", line 21, in <module>
from BrewPiUtil import asciiToUnicode
ImportError: cannot import name asciiToUnicode

Checked DNS was resolving successfully, which it was, re-ran the script, and it went through fine. Successfully backed up and restored current settings as well.

Cheers,

Ben

The reason for the error is as follows:

  • The update script starts and imports module BrewPiUtil form the script dir
  • It updates the script
  • It tries to use the import asciiToUnicode, which is part of the new version, but it still has the old import and uses it instead of the new version.

That is why it works on second try. Will be fixed shortly :slight_smile:

Programming using dfu-utils worked.

Thanks for the advice