shawngmc / game-extraction-toolbox

Python tools for extracting ROMs from games and investigating files
MIT License
66 stars 7 forks source link

ModuleNotFoundError: No module named 'magic' (Fedora/Linux) #77

Open Azyrion opened 2 months ago

Azyrion commented 2 months ago

Hello I have an issue where I get this anytime I try to use any command(linux):

raceback (most recent call last):
  File "/home/jo/.local/bin/gextoolbox", line 5, in <module>
    from gex.toolbox import cli
  File "/home/jo/.local/share/pipx/venvs/game-extraction-toolbox/lib64/python3.12/site-packages/gex/toolbox.py", line 5, in <module>
    from gex.commands.archive.archive import archive
  File "/home/jo/.local/share/pipx/venvs/game-extraction-toolbox/lib64/python3.12/site-packages/gex/commands/archive/archive.py", line 3, in <module>
    from .arc.arc import arc
  File "/home/jo/.local/share/pipx/venvs/game-extraction-toolbox/lib64/python3.12/site-packages/gex/commands/archive/arc/arc.py", line 3, in <module>
    from .extract import extract
  File "/home/jo/.local/share/pipx/venvs/game-extraction-toolbox/lib64/python3.12/site-packages/gex/commands/archive/arc/extract.py", line 6, in <module>
    from gex.lib.file import identify
  File "/home/jo/.local/share/pipx/venvs/game-extraction-toolbox/lib64/python3.12/site-packages/gex/lib/file/identify.py", line 4, in <module>
    import magic
ModuleNotFoundError: No module named 'magic'

even though python3-magic is installed! Can someone help me pls?

Azyrion commented 2 months ago

tried it with python 3.11 too after seeing that I had 3.12 installed but got the same result: game-extraction-toolbox magic error

3vilg3nius commented 1 month ago

getting the same on opensuse tumbleweed.

jfhc commented 1 day ago

I'm getting this too (running in ubuntu under WSL)