cafehaine / xontrib-xlsd

xontrib-xlsd is the next gen ls command for xonsh shell, inspired by lsd.
GNU General Public License v3.0
21 stars 4 forks source link

fix: handle ModuleNotFoundError on macos #14

Closed deeuu closed 3 years ago

deeuu commented 3 years ago

Hey,

Cool xontrib! Thank you.

I'm on macos and run into the following error when loading

  File "/Users/deeuu/.local/share/virtualenvs/xonsh/lib/python3.8/site-packages/xontrib/xlsd.xsh", line 116, in <module>
    import magic
ModuleNotFoundError: No module named 'magic'
Failed to load xontrib xlsd.

which is now handled by this patch.

Cheers

cafehaine commented 3 years ago

Woops my bad, thanks a lot for your patch!