-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Path to images with spaces breaks the compare function #25
Comments
@DiegoSanchezE Will take a look. |
@DiegoSanchezE When running the tests do you provide the absolute path to results? Or maybe Imagemagick expands the path. |
@DiegoSanchezE I have raised a potential fix. #26 |
@jz-jess Definitely. I'll do that in a bit. Thanks! |
Fix released in version 0.64. Closing this |
Describe the bug
If the images path contains spaces, the
compare
function fails.To Reproduce
G:\My Drive\Web-Automation
.Expected behavior
The error I got was:
ValueError: could not convert string to float: b'nabl'
, but the real issue is that compare is looking for the image inG:\\My
which is obviously not equal toG:\My Drive\Web-Automation
.In my particular case, this is the whole error in the robot report:
b"compare: unable to open image 'G:\\My': No such file or directory @ error/blob.c/OpenBlob/3485.\r\ncompare: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556.\r\ncompare: unable to open image 'Drive\\Web-Automation\\visual_images\\actual\\Hillshade\\img1.png': No such file or directory @ error/blob.c/OpenBlob/3485.\r\ncompare: unable to open image 'Drive\\Web-Automation\\visual_images\\actual\\Hillshade\\img1.png': No such file or directory @ error/blob.c/OpenBlob/3485.\r\ncompare: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556.\r\ncompare: unable to open image 'Drive\\Web-Automation\\visual_images\\baseline\\Hillshade\\img1.png': No such file or directory @ error/blob.c/OpenBlob/3485.\r\ncompare: unable to open image 'Drive\\Web-Automation\\visual_images\\baseline\\Hillshade\\img1.png': No such file or directory @ error/blob.c/OpenBlob/3485.\r\ncompare: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556.\r\n"
Notice how it's looking for the
G:\\My
andDrive\\foo\\bar
directories.Screenshots
Desktop (please complete the following information):
Additional context
Imagmagick is installed and in the path
My code works in a different path (no spaces).
The obvious workaround is to not put the images in a path with spaces 😆 , but that's kinda silly.
I'll move my project to another folder, no problem. Just wanted to point this out.
Cheers!
The text was updated successfully, but these errors were encountered: