-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in server when submitting sketch. #7
Comments
To get to the UI, after launching the server, I go to 127.0.0.1:80 in the browser. |
@EmoryQ could you throw some print statements in the function |
@noyoshi So I added some print statements through the code, and in the copy_file function like this:
The powershell output shows:
So it appears to crash the first time that the copy_file function is ran, after the I'm still not sure what is going on to cause this error. I'm not extremely familiar with python, and I'm not sure what the |
Right here I am doing a bit of hacky stuff, I am calling the shell command |
I do have those folders. The server does create a greyscale.png of the drawing in the val_inst folder, but it does not copy it to val_label folder. Edit: Correction |
Hmm, that is weird. I think it might be a Widows specific bug then. Later today I'll try running this on a windows machine to see if I can reproduce it. Ideally we wouldn't even be calling |
So, as a workaround: Now, however, when I click "Convert Photo" I get an "X" on the webpage where the hourglass would normally be, and I get an image of a livingroom in the /img folder (this is the same image i get when I run test.py) |
After I click "Convert to Photo", the hourglass does spin for a little bit, and the PoweShell does pause and think for a little bit. On the PowerShell, after it shows the 3 greyscale conversions it then shows:
But then I get an "X" (like missing image) on the webpage UI. I wonder what I am missing... |
It would appear that it is most likely, as you said, a windows specific bug. I'll wait for a fix, and had fun using the smartsketch.xyz when it's up and running! Thanks!! |
modify these lines and make it~ #copy_file(ouptut_greyscale_file, ouptut_greyscale_file_labels) #copy_file(ouptut_greyscale_file, ouptut_greyscale_file_img) |
Thank you @SeavanMao ! im with the same problem now the server.py says :
|
@SeavanMao resolve problem on windows with server error but also we need to parse path to result image. At windows we have '\\' splitter in path ) Try at this function change / splitter to \\ def parse_static_filepath(filepath): |
@parkzinc you have to import shutil at the top of server.py |
I have tried to set up everything per the instructions, and when I create a sketch and click "Convert Photo", I only get a spinning hourglass. The terminal says:
"FileNotFoundError: [WinError 2] The system cannot find the file specified" , but I'm not sure what file it is looking for.
This is the complete output from Powershell from the server.py:
The text was updated successfully, but these errors were encountered: