Python 2.7.16 with working Pygame and youtube-dl.
Pages: 1 2
Chris Gransden (337) 1207 posts |
Finally managed to port Python 2.7.16 using shared libraries. Mainly to get youtube-dl working. Tested so far with downloading from Youtube and BBC iPlayer. |
David Feugey (2125) 2709 posts |
Hundreds of games to test :) |
Chris Gransden (337) 1207 posts |
There’s a test version of python 2.7.16 here. It also includes the pygame and youtube_dl modules. The !Boot folder contained in the python27.zip file needs copying over The zip file also contains a simple FrontEnd module application to make it Before running YoutubeDL the !Python27 folder must first be seen by the filer. Running Pygame python scripts can be a bit temperamental. It can take a few goes |
Chris Johns (3727) 40 posts |
Are there any plans to support Python 3? I managed to compile it (with gccsdk), but there the expected file naming differences means it doesn’t get very far if I run it. There is also the fact that python3’s standards string type is wchar_t* which only has very limited support on RISC OS. I am sure neither of these are insurmountable issues, but I don’t want to spend time doing it if someone else is. However if you’re only maintaining the 2.7 code, I can look at the 2.7 sources to figure out what to do about the paths :) |
mikko (3145) 123 posts |
+1 for anyone porting Python 3! |
Chris Johns (3727) 40 posts |
I’ve managed to get python3 to run as far as the >>> prompt, which is a start :) |
Norman Lawrence (3005) 172 posts |
+1 for a port of Python 3 |
Chris Johns (3727) 40 posts |
I will keep on with it then :) |
Raik (463) 2061 posts |
YoutubeDL is also working with dailymotion (!Murnong not). Thanks a lot. |
Raik (463) 2061 posts |
Is an update from youtube-dl available for RISC OS? Unfortunately, the linked version does not work anymore. The current Linux and WIN download works. |
Chris Gransden (337) 1207 posts |
There’s an updated youtube-dl (2019/04/30) available here. |
Raik (463) 2061 posts |
Very nice. Thanks a lot. |
John Rickman (71) 646 posts |
If I run !Python27 and try to see the list of modules there is an error and Python crashes. >>> help() This does not happen if Python is invoked in a TaskWindow by keying the command Python27. |
David Pitt (3386) 1248 posts |
I get that on the RPi3B+ but not the Titanium. |
John Rickman (71) 646 posts |
If I run !Python27 and try to see the list of modules there is an error and Python crashes. But.. if I run Python27 again and ask for the list of modules a second time it works!. |
Raik (463) 2061 posts |
Problems are back. A new update? ;-) |
Chris Gransden (337) 1207 posts |
There’s another updated youtube-dl (2019/08/13) available here. |
Raik (463) 2061 posts |
Cool. Works fine. Thanks a lot! |
Andrew McCarthy (3688) 605 posts |
What are the commands to get youtube-dl working from the Python27 or Taskwindow prompt? I’m on a Pi3B and can’t get it to run or find any guidance on how to get it running. |
Raik (463) 2061 posts |
If all the !Python and !Youtubedl variable are set… Python you have to start one times, !YouTubedl must be seen. From TaskWindow, TaskObey… python27 /<Youtubedl$Dir>/youtube-dl —no-check-certificate “hxxps://www.youtube.blah” -help gives the YouTube-dl … |
Andrew McCarthy (3688) 605 posts |
Help doesn’t return anything. How do you build !Youtubedl as the one I have only contains a text file named Desc? |
Raik (463) 2061 posts |
Desc is the script-file for the frontend module. Not sure what your problem is. At first you have to download and install the first complete package of Python and youtubedl (second post from Chris). Than you have to install the latest update. !Youtubedl is a Little frontend you have to start after Python. For !Streamer I set the needed variables in my !Run so the Filer must only see the Tools. |
Andrew McCarthy (3688) 605 posts |
Thank you… ;-) I now have the complete package of Python. Results: Pi3B running 5.27 (26-Aug-19) |
Raik (463) 2061 posts |
I wondering. Any “error messages”? If the download works, play should also do. Use you !FFPlay from the “alpha-package” ffplayetc.zip? |
Raik (463) 2061 posts |
Have try on P3B+ with a fresh card. UnixHome must also seen by the Filer and !Python must be start one time to create /Cache and other. I have “build in” a bug for Radiio/TV streams. :-( Will fix soon. It looks like there is a generally problem with ffplay on Pi3B. The ffplay call works on Ti but it Looks like on Pi it will not Play the created playlist-file. On Ti it will be play. Maybe theré are any sideeffects… |
Pages: 1 2