-
Notifications
You must be signed in to change notification settings - Fork 62
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
[BUG] - Diretório com caracteres especiais #76
Comments
O erro está relacionado com caracteres especiais no file path, certo? |
Tenta mover o projeto pra C:/PyTibia. |
@ViniNathan e @felipetnh alguma sugestão? |
Creio que só mover pra um lugar que o PATH não contenha caracteres especiais já vai resolver. |
Poderia rolar um escape, etc. Tenho de ver algo cross compatível em todos OS. |
Dá pra tentar, mas nunca tive muito sucesso com isso. |
*Descrição do bug
Após instalar todas as bibliotecas necessárias e o poetry, assim como solicitado pelos devs, ao realizar o comando 'poetry run python main.py' recebo o seguinte erro:
[ WARN:[email protected]] global loadsave.cpp:244 cv::findDecoder imread_('C:\Users\Usuário\Documents\PyTibia\src\repositories\radar/images/floor-0.png'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "C:\Users\Usuário\Documents\PyTibia\main.py", line 2, in
from src.gameplay.threads.pyTibia import PyTibiaThread
File "C:\Users\Usuário\Documents\PyTibia\src\gameplay\threads\pyTibia.py", line 3, in
from src.gameplay.cavebot import resolveCavebotTasks, shouldAskForCavebotTasks
File "C:\Users\Usuário\Documents\PyTibia\src\gameplay\cavebot.py", line 2, in
from src.repositories.gameWindow.creatures import hasTargetToCreature
File "C:\Users\Usuário\Documents\PyTibia\src\repositories\gameWindow\creatures.py", line 8, in
from src.repositories.radar.config import walkableFloorsSqms
File "C:\Users\Usuário\Documents\PyTibia\src\repositories\radar\config.py", line 19, in
loadFromRGBToGray(
File "C:\Users\Usuário\Documents\PyTibia\src\utils\image.py", line 62, in loadFromRGBToGray
return np.array(RGBtoGray(load(path)), dtype=np.uint8)
File "C:\Users\Usuário\Documents\PyTibia\src\utils\image.py", line 78, in load
return np.array(cv2.cvtColor(cv2.imread(path), cv2.COLOR_BGR2RGB), dtype=np.uint8)
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: