AdriaGual / marvel-snap-bot

A computer vision bot made with OpenCV and ADB.
102 stars 26 forks source link

'NoneType' object has no attribute 'shape' #6

Closed cheryiit closed 1 year ago

cheryiit commented 1 year ago

[ WARN:0@0.829] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('C:\Users\Yi─şit\marvel-snap-bot\tmp\0.png'): can't open/read file: check file path/integrity Traceback (most recent call last): File "start.py", line 22, in screenshot_dimensions = screenshot.shape AttributeError: 'NoneType' object has no attribute 'shape'

why i am getting the errors ?

AdriaGual commented 1 year ago

There are a bunch of things you can check:

Hope it helps

spiderowl commented 1 year ago

i think you need to add a folder called tmp in marvel-snap-bot folder.

AdriaGual commented 1 year ago

As @spiderowl said, you should follow the README.md folder structure.

cheryiit commented 1 year ago

yes thats correct the reason of error is the turkish alphabet I tried to change project directory and I fixed it. But I also tried to just change the tmp folder to C:\, it wasn't enough and i got the same error again.

The solution is about the language erorrs just change the project directory to C:\ I changed with git cmd like I created folder in C:\ which name is "marvelBot". cd C:\marvelBot

and then just I follow the comments in readme.md, ı cloned to in folder C:\ Its works thx.