-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Support #25
Comments
AFAIK Windows 10 has native Media Playback API, but I haven't seen any Python bindings for it. The main problem is that is not for Python, so we have to write our own UWP API binding. |
Also, have found out that python-mpv works with Windows not so smoothly as it does on Unix-like systems, we need to put a workaround on installation process: jaseg/python-mpv#60 (comment) |
Just a note - to build on windows you will need to install the C++ build tools for pycairo. Dont have a successfull build yet - but will keep you updated |
I decided to not try going down the mingw route, and to see what it will take to write a wrapper for the windows media playback api in python |
So from some quick poking around. The ideal would be to build a generator on top of NodeRT's templates to generate Python bindings instead of C# bindings. The other option is to generate the JS/TS code and see if it is easier to convert it by hand and then maintain it. Another option: With: |
Ok, so turning off the media integration - it fails because the loop defined for the uirwid loop is not there. To make this work in windows, we first have to get urwid working. There is several topics related to it here: |
Hi @longtomjr, Thanks for looking into this. Is there any way to leverage the linux subsystem for windows 10 to get around any of these issues? |
Ok - so urwid is built heavily using events, sockets and file descriptors. It will take some work to get it working smoothly with windows without implementing a POSIX layer. |
@cfangmeier I think the WSL should just work with this out of the box - have not tried though. It would make sense to use WSL if you want to - but I would like to see if there is a way to build this for windows and to work in powershell. I have to use windows at work - and I have a rabid |
I have the feeling that it might be easier and quicker to just rewrite the ui layer in something that is cross platform. Is there any specific reasons urwid was chosen? (Also, is there a irc [or similar] channel it might be easier to discuss this on?) |
urwid was chosen because it's a nice wrapper around doing lower level curses programming, and I initially had no plans for making this work on anything other than linux. Do you know of a cross-platform alternative? I'm not really an IRC user, but am willing to give it a go. (also, I just noticed that the old style login has broken and I need to update to the new oauth based one, but that's another issue) |
hehe - yep, saw that too. I cannot vouch for any alternatives (have not used them) but found the folowing: https://npyscreen.readthedocs.io/introduction.html Don't know the cross platform support of any of the above, but they all seem to be maintained to some extent. |
I made a temp channel on freenode |
@cfangmeier If we use the There is other issues as well - but it seems to be something to work from |
I have to bounce now - gotta sleep, but will tinker a bit more tomorrow. Also, should get my environment set up, new install so only raw vim and pyenv so far. Need to get everything configured and my dotifiles in place before I do more dev work. Will do some more testing on windows tomorrow at work during lunch. |
Ok, got it working on windows - had to tweak urwid a bit, the graphics is not correct, but everything looks workable if I use curses. Music plays, search works, music stops etc. Performance is really bad though, but that might be my env Will get a branch working tomorrow - have to do other things now and this evening. |
that's great! looking forward to a PR. |
Got busy at work - will try to get a WIP PR in this weekend. There is still some testing and other work that needs to be done. Cannot get the performance ready and there is some other issues that I will investigate once I get a bit more time. Will to to get the code visible though, so that people can start discussing it. |
Still here, and still working on it when I have time. Trying to make it work without having to change the source of urwid if posible. Meanwhile - here is a link to a rice including tuijam https://forum.manjaro.org/t/august-aberrations-2019-screenshots/96987/156?u=longtomjr |
Hi @longtomjr, have you made any progress on this? No hurry, just looking forward to having this implemented. |
It would be nice if there was a nice way to install TUIJam on Windows. Naively I tried doing just a
But the dependent version of
scrypt
failed to compile. I changed to the latest version and that worked. Next, there is a problem withPyGObject
which requires, from what I can tell, the GTK+ runtime to be installed for it to work properly. According to the docs installing this involves installing mingw, which I'd really like to avoid. One alternative would be to simply drop the use ofPyGObject
on windows since it's just used for the external control and on windows maybe a different system thatGObject
is preferred anyway.The text was updated successfully, but these errors were encountered: