[GH-ISSUE #22] Launching / Installing script in windows environment should not be possible #19

Closed
opened 2026-03-04 12:23:55 +03:00 by kerem · 3 comments
Owner

Originally created by @Parzival1608vonKatze on GitHub (Oct 23, 2020).
Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/22

//libmagic is missing//

Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\phmec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts\wsl-windows-toolbar.exe_main
.py", line 4, in
File "C:\Users\phmec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\wsl_windows_toolbar\wsl_windows_toolbar.py", line 8, in
import magic
File "C:\Users\phmec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\magic.py", line 201, in
raise ImportError('failed to find libmagic. Check your installation')
ImportError: failed to find libmagic. Check your installation

C:\Users\phmec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts>

Originally created by @Parzival1608vonKatze on GitHub (Oct 23, 2020). Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/22 //*libmagic is missing*// Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\phmec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts\wsl-windows-toolbar.exe\__main__.py", line 4, in <module> File "C:\Users\phmec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\wsl_windows_toolbar\wsl_windows_toolbar.py", line 8, in <module> import magic File "C:\Users\phmec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\magic.py", line 201, in <module> raise ImportError('failed to find libmagic. Check your installation') ImportError: failed to find libmagic. Check your installation C:\Users\phmec\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts>
kerem closed this issue 2026-03-04 12:23:55 +03:00
Author
Owner

@fquinner commented on GitHub (Oct 23, 2020):

The wsl toolbar script should be run from your WSL environment - not from your windows environment.

<!-- gh-comment-id:715315681 --> @fquinner commented on GitHub (Oct 23, 2020): The wsl toolbar script should be run from your WSL environment - not from your windows environment.
Author
Owner

@fquinner commented on GitHub (Nov 29, 2020):

Some changes in flight to prevent this from happening

<!-- gh-comment-id:735404036 --> @fquinner commented on GitHub (Nov 29, 2020): Some changes in flight to prevent this from happening
Author
Owner

@fquinner commented on GitHub (Nov 29, 2020):

Should now only install and run on WSL as of 0.6.0

<!-- gh-comment-id:735429983 --> @fquinner commented on GitHub (Nov 29, 2020): Should now only install and run on WSL as of 0.6.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wsl-windows-toolbar-launcher#19
No description provided.