Skip to content
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] - error while starting application. any ideas? #75

Open
Vallorlo opened this issue Jul 1, 2023 · 3 comments
Open

[BUG] - error while starting application. any ideas? #75

Vallorlo opened this issue Jul 1, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Vallorlo
Copy link

Vallorlo commented Jul 1, 2023

I encountered this error while trying to run the application. I have poetry installed and also python. here's what my cmd says.

PyTibia-main>poetry run python main.py
Traceback (most recent call last):
File "Desktop\PyTibia-main\main.py", line 2, in
from src.gameplay.threads.pyTibia import PyTibiaThread
File "Desktop\PyTibia-main\src\gameplay\threads\pyTibia.py", line 12, in
from src.gameplay.core.middlewares.window import setTibiaWindowMiddleware
File "Desktop\PyTibia-main\src\gameplay\core\middlewares\window.py", line 2, in
import win32gui
ModuleNotFoundError: No module named 'win32gui'


keep in mind I have pywin32 already installed. idk what to do from here. I already did the command poetry install too.

@Vallorlo Vallorlo added the bug Something isn't working label Jul 1, 2023
@mateuszk131
Copy link

mateuszk131 commented Jul 2, 2023

I had similar issue with win32con import, how i fixed it:
pip install pywin32
Copy pywin32 folder and pywin32.pth from C:\Users\XXX\AppData\Local\Programs\Python\Python39\
to
C:\Users\XXX\AppData\Local\pypoetry\Cache\virtualenvs\pytibia-yRHMxwev-py3.9\Lib\site-packages

Not sure if its correct fix, as i cannot seem to get it to work (Healing and combat tabs are empty)

@lucasmonstrox
Copy link
Owner

@mateuszk131 can you open PR with your fix?

@felipetnh
Copy link

If I understood correctly, there won't be a PR, because the fix wasn't on the code, it was actually on poetry virtualenvs. He just copied the pywin32 folder and files from one place to another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants