jimbob88 / wheelers-wort-works

A rebuild of Wheeler's Beer Engine written in Python with continuous updates
https://jimbob88.github.io/wheelers-wort-works/
GNU General Public License v3.0
4 stars 2 forks source link

error - in notes area? after recent update #55

Closed Bobbicat closed 5 years ago

Bobbicat commented 5 years ago

After successfully updating www-ce I attempted to open a .berfx file with this result:

wheelers-wort-works-ce

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.7/tkinter/__init__.py", line 1705, in __call__
    return self.func(*args)
  File "/usr/include/wheelers-wort-works-ce/beer_engine.py", line 1693, in j_open
    self.open_file(file_str)
  File "/usr/include/wheelers-wort-works-ce/beer_engine.py", line 1832, in open_file
    self.seventh_tab.texpert.insert('1.0', ast.literal_eval("'"+notes.replace("'", r'\'').replace('"', r'\"')+"'"))
  File "/usr/lib/python3.7/ast.py", line 46, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/usr/lib/python3.7/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    '---\ncarefully check quantities and re-plan brew\n---\nset up basic 10L brew x two\nwith all ingredients doubled [as in Engine Room}\n\nmill grist --> two batches\ngrain in bag, water in mash tun\nmash 30m in ~6L at 67C [75C], sparge 15m with ~6L at 74C [80C], \ncombine, add hops and boil, cool and put into fermenter. \n---\nyeast - muntons\n\nThe regular one is even better than their premium \"Gold\" one in my opinion. \nIt\\'s not the most attenuative in the world, because it fails to ferment the complex caramelized sugars, but that\\'s what I like about it in English session-strength styles. \nWhat it leaves behind makes your beer that much tastier.\n\n---\nDAY   1  16th jun - make small muntons gold starter [3-4g yeast from opened packet]\nDAY   3  18th jun - two batches 10L x 30 min mash and boil \nDAY   3  18th jun - OG [1052]\nDAY   3  18th jun - volume 20L in fermenter no lid, 20°C in brew fridge\nDAY   3  18th jun - pitch yeast from small starter [although added no need for sugar]\nDAY   4  19th jun - good thick krausen\nDAY   5  20th jun - krausen even heavier and thicker\nDAY   6  21st jun check SG=1016 - krausen subsided a bit - expected 1008-1012 - temp up to 22°C\nDAY   7  22nd jun check SG= 1012 rested lid lightly on fermenter blew in some CO2\nDAY   8  23rd jun check SG= 1011\nDAY   9  24rd jun check SG= 1010\nDAY 10  25th jun check SG= 1010\nDAY 12  27th jun check SG= 1010 - abv 5.5%\nDAY 12  27th jun clean out keg\nDAY 13  28th jun weigh empty keg = 4.480kg\nDAY 13  28th jun turn temp down to +1°C\nDAY 14  29th jun stirred in [2g gelatine in 150ml water at 65°C]\nDAY 14  29th jun went to get another CO2 cylinder\nDAY 14  29th jun temp adjusted to 1.5°C\nDAY 15  30th jun syphon into keg\nDAY 15  30th jun reserve some sediment yeast [thrown away should have been harvested before gelatine]\nDAY 15  30th jun seal keg and gently gas up, while cold\nDAY 15  30th jun draw off first pint\nDAY 15  30th jun weight full keg = 22.57kg\nDAY 15  30th jun check gravity at room temp FG = 1012\nDAY 15  30th jun ABV = 5.24%\nDAY 15  30th jun total product =   22.57 - 4.48 = 18.09L\nDAY  21   6th jul  ale now running bright from keg\n\n===\nprojected\n===\n\n\n===\n\nhttps://chorleybottlegas.co.uk/opening-times/\n\n------\nday before: sun 16th jun\nmake up a milk bottle of starter, part packet 6g probably about 3-4g muntons gold\nstart up in brew fridge at 20°C\n\nweigh up grist and hops for two 10L brews\nmill grist --> two separate batches\nprep hop bags\n------\ntues 18th jun\nput bag in mash tun\nadd  5.8L water heated to 75°C\nadd grain into bag stirring\nmash wrapped for 30m at 67°C\nHeat 7L sparge water to 81°C dunk for 15m at 74°C\nCombine mash with sparge.\nBring to 30 min boil, add hop bag and later additions.\nCool, aerate and put into fermenter. \n---\nrepeat for second batch.\nmake up to 20L with pre-treated tap water\ncheck specific gravity\nOG=1052\npitch yeast muntons gold\nferment no lid, 20°C in brew fridge \n---\nwed 19th jun nice kreusen formed\n\nafter 5-7 days\nwhen SG has settled\nturn temp down to +1°C\nafter ~24hrs\n[2g gelatine in 150ml water at 66°C]\nadd gelatine finings at 1°C [gently stir in]\nthe beer should clear in as little as 24-48 hours.\n---\noxyclean keg and purge with CO2\n---\nsyphon into keg\nkeg weight empty: kg =\nkeg weight full     : kg =\ndifference            : kg beer yield =\nspecific gravity    : FG=\n---\ngas up carefully\nTurn down to 6-8psi and pour the first couple of pints\nDrink clear beer\n---\nprocedure:\nafter siphoning to keg pressurize just enough to seal lid.\nallow temperature to rise before gassing or only gas very gently.\n---\nsuggestion:\nyeast, 0.5g/L direct pitch at 26°C, wort down to 22°C via cooler overnight\n\n---\n================================================\nAll-Grain Yeast Starter\n[milk bottle sterilized]\n\n60g grain mashed in 250ml of 74°C water. \nMash at 67°C deg. Hold 30 min.\ncollect 160ml liquor\n\nsparge with 200ml of water ~85°C.\n- brings temp into the 70-75°C range.\n\npre-boil volume - 360ml\n15 min boil \n\nend with about 300ml wort\ncool, bottle\npitch yeast 20°C - munton premium gold part pack [14-25°C]\n\nsg 1040 of starter\n===============================================\nbittering 30 min boil:\n\n11 cascade [all gone]\n11 challenger\n\n20 challenger\n===============================================\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
SyntaxError: invalid syntax
jimbob88 commented 5 years ago

Hi, the seems like an odd issue, do you think you could send the whole brewing file so I can attempt to find a fix!

Bobbicat commented 5 years ago

55 fix appears to be okay

many thanks I would include my .berfx file in case it was useful or relevant:

however, that file type is not supported here, so I renamed it as Speedy19L.txt

rename Speedy19L.txt --> Speedy19L.berfx to return to its original form

(https://github.com/jimbob88/wheelers-wort-works/files/3563447/Speedy19L.txt)

[I haven't checked out Help Update yet]