Closed khlitoshi closed 9 years ago
error 2 is solved. python uses unix-based paths, with 'c:\' considered as '/' error 1 could not solve. need help please.
Error 1 finally solved by the following:
Got the error:
File "./prep.py", line 4, in
from PIL import Image
My version of python is 3.6
Hi, I've several error running the the python prep.py script on windows 7 using python 2.7.9. error 1, "from PIL import Image" => the module name incorrect. changed it from "from pil import Image" to "import image", but still the module Image is unknown.
error 2 is related to directory paths. original path in script was: "/home/mhill/projects/alpr/samples/training/" I changed it to: "C:\trainer" and I get error when the script concatenates it in the following instruction: INPUT_NEGATIVE_DIR = BASEDIR + 'raw-neg/' by giving this wrong result: "C:\trainerraw-neg/._" I changed it to: "C:\trainer\" and the error is: syntax error: EOL while scanning string literal
seems like the script is written for unix-based system. can anyone please help?