dwalton76 / rubiks-color-resolver

Resolve rubiks cube RGB values to the six cube colors
MIT License
34 stars 15 forks source link

bug/No such file or directory #9

Closed Safacan7 closed 2 years ago

Safacan7 commented 2 years ago

Hi when I run my python3, all sides are scanned and an output (JSON) file is also created, however this issue pops up before it starts solving it.

image

Could you help please!

dwalton76 commented 2 years ago

Hello, can you attach the JSON file?

Safacan7 commented 2 years ago

I can't attach the file but this is the output

{"5": [255, 255, 255], "9": [36, 255, 255], "6": [109, 255, 255], "3": [218, 255, 255], "2": [255, 255, 255], "1": [218, 255, 127], "4": [72, 255, 255], "7": [182, 255, 127], "8": [255, 255, 255], "23": [255, 255, 255], "27": [255, 255, 255], "24": [255, 255, 255], "21": [255, 255, 255], "20": [109, 255, 255], "19": [36, 255, 255], "22": [255, 255, 255], "25": [255, 255, 255], "26": [255, 255, 255], "50": [255, 255, 255], "54": [255, 255, 255], "51": [72, 255, 255], "48": [255, 255, 255], "47": [109, 255, 255], "46": [145, 255, 255], "49": [255, 255, 255], "52": [36, 255, 255], "53": [72, 255, 255], "14": [109, 255, 255], "10": [218, 255, 255], "13": [218, 255, 255], "16": [218, 255, 255], "17": [182, 170, 255], "18": [72, 255, 255], "15": [109, 255, 255], "12": [255, 255, 127], "11": [255, 255, 127], "41": [255, 255, 255], "43": [255, 255, 255], "44": [255, 255, 255], "45": [255, 255, 255], "42": [255, 255, 255], "39": [109, 255, 255], "38": [255, 255, 255], "37": [255, 255, 255], "40": [255, 255, 255], "32": [109, 255, 255], "34": [72, 255, 255], "35": [255, 255, 255], "36": [109, 255, 255], "33": [72, 255, 255], "30": [72, 255, 255], "29": [255, 255, 255], "28": [145, 85, 127], "31": [255, 255, 255]}

image

dwalton76 commented 2 years ago

@Safacan7 sorry for being slow to respond. I think I see the issue....I suspect windows behaves differently when python opens a file in a mode with the file is not there.

dwalton76 commented 2 years ago

@Safacan7 I just pushed a fix, do git pull to pick it up

Safacan7 commented 2 years ago

Thank you!