Closed ARiisgaard closed 4 years ago
ERROR 1: No color association found in popcolor.txt
popcolor.txt:
nv 173 240 255 0.0 255 247 236 569.75 254 232 200 1139.5 253 212 158 1709.25 253 187 132 2279.0 252 141 89 2848.75 239 101 72 3418.5 215 48 31 3988.25 179 0 0 4558.0 127 0 0
Could be due to the fact that popcolor.txt is being created with
color = """nv 173 240 255 """+str(stops[0])+""" 255 247 236 """+str(stops[1])+""" 254 232 200 """+str(stops[2])+""" 253 212 158 """+str(stops[3])+""" 253 187 132 """+str(stops[4])+""" 252 141 89 """+str(stops[5])+""" 239 101 72 """+str(stops[6])+""" 215 48 31 """+str(stops[7])+""" 179 0 0 """+str(stops[8])+""" 127 0 0 """ f= open("popcolor.txt","w+") f.write(color)
Instead for the original:
os.system("""echo "nv 173 240 255 """+str(stops[0])+""" 255 247 236 """+str(stops[1])+""" 254 232 200 """+str(stops[2])+""" 253 212 158 """+str(stops[3])+""" 253 187 132 """+str(stops[4])+""" 252 141 89 """+str(stops[5])+""" 239 101 72 """+str(stops[6])+""" 215 48 31 """+str(stops[7])+""" 179 0 0 """+str(stops[8])+""" 127 0 0 " >> popcolor.txt""")
The reason I was replacing the original was since it wasn't producing anything on my system
File could not be opened, because I already was in use - fixed with:
f.close()
ERROR 1: No color association found in popcolor.txt
popcolor.txt:
Could be due to the fact that popcolor.txt is being created with
Instead for the original:
The reason I was replacing the original was since it wasn't producing anything on my system