MrBruz/Minecraft-Server-Scanner

ImportError: No module named mcstatus

Opened this issue · 2 comments

ggrea commented

Everything goes smoothly with the installation and scanning for servers. Once I try and find the Minecraft servers though, I get the following error:

python mcscanner.py -i masscan.txt -o result.txt -p public.txt Traceback (most recent call last): File "mcscanner.py", line 1, in <module> from mcstatus import JavaServer ImportError: No module named mcstatus

I installed mcstatus using pipx, so I initially thought this was an issue of it being isolated. I reinstalled it using pip3, but still had the same issue. To confirm I had it installed, I ran the following:

pipx list venvs are in /home/<user>/.local/pipx/venvs apps are exposed on your $PATH at /home/<user>/.local/bin package mcstatus 11.0.1, installed using Python 3.11.4 - mcstatus

Let me know if I am doing something wrong or if I can maybe modify mcscanner.py somehow to make it recognise I already have mcstatus installed.

For general information, I am running OpenSUSE Tumbleweed (version 20230906).

same issue :/

found a solution, it's venv being the issue, you can either fix the venv manually: (activate.bat in venv/bin) or get a VS code extention for that