r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.73k stars 554 forks source link

[Python 3.7] Installation via pip gives an error, fails #291

Closed selplacei closed 5 years ago

selplacei commented 5 years ago

Specification

Description

Can't install pywebview via pip on win32. Tried installing on Ubuntu on the same computer, installation was successful; however, I need it installed on Windows specifically. Console output: https://pastebin.com/yhWX4i6Y (deliberately didn't censor anything, there isn't any data there that I really care about). Thanks in advance.

selplacei commented 5 years ago

After looking closer, it appears that this is a problem with pythonnet specifically, not pywebview. I'll refer there for help on this issue.

EDIT: I actually managed to solve the issue myself by downloading pythonnet from this website and modifying setup.py's lines 345-346 to manually return the location of mt.exe; the function's inability to find that file (a tool used to build .NET code included in pythonnet, apparently) was the root cause of the issue.

That being said I couldn't find the same issue on Google (at least, not with the same solution), so I assume that my system specifically was at fault (probably corrupted a corrupted WinSDK installation after I meddled with VS Studio more than I should've in the past).

The necessity of downloading pythonnet from the link above when using Python 3.7 has already been addressed in the repo's issues so I won't mention this problem there.