Re: OT yt-dlp and Python snag
In article <0e7c66ab-afe7-57fa-5234-808c2a97b...@timelords.org.uk>, fred.d wrote: > If you liked Fortran, then you should have tried PASCAL. Sure it needed > some extensions but it was simple and it was very hard to write bad > code. I find it easy to write terrible code. Comes naturally. I just stop digging when it does the job. As the French (almost) say, "It's not magnificent, it's a railway station". 8-] My 1st machine was an ICL 1900. But once it arrived I *much* preferred a BBC B. Not a fan of BBC Basic, but it was OK until later machines with FORTRAN and C compilers came along for later 'Acorn' machines. Still typing this on a machine running modern RISC OS. :-) > Sorry, bit off topic I know but it's horrible weather outside... Actually, its a decent day here. Need much less heating than a few days ago! Jim -- Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html Audio Misc http://www.audiomisc.co.uk/index.html ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
If you liked Fortran, then you should have tried PASCAL. Sure it needed some extensions but it was simple and it was very hard to write bad code. A very good contractor wrote an assembler/OS interface to Pascal for us on a PDP 11 (about 200 lines of code). That allowed us to create a duplexed (failover cluster) production line control system in 1983 written in PASCAL. It also interfaced to some IBM mainframe (harder) and a VAX (any youngsters, that's not the sucky thing, look it up). I can still remember carrying the disk backups on a plane each week with the necessary import and export documentation. Case had special dispensation to be carry on luggage as it was as big as a small suitcase (foam padding) but couldn't go in the hold. Total capacity of that case 2MB! ... but back to PASCAL all my code has a very familiar structure no matter which of the myriad languages I've played with over the years so I know what you mean. Sorry, bit off topic I know but it's horrible weather outside... On 29/03/2023 11:09, Jim web wrote: In article <809b079f-cc32-2027-f825-520c77614...@macfh.co.uk>, MacFH - C E Macfarlane - News wrote: On 28/03/2023 15:51, Jim web wrote: Sorry to hear about your wife, commiserations to you both. In article , MacFH - C E Macfarlane - News wrote: Might as well be sure, so what happens when you type: python --version If that comes up with 3.7 as desired, what do you get for: pip --help It gives me Python 2.7.17 However if I look in usr/lib/ I can see directories for Python 2.7, 3, 3.6, 3.7, and 3.8. Different versions of Java, FWIW I did once try learning and using Java. Gave up after a while because by the time I'd written anything the methods became 'deprecated' as the caravan morphed on at superluminal speed! 8-[ So I've stuck with my shoddy use of 'C'. No style, just: "does this give me the coconut?!" 8-] Oh well, at least I've stopped using FORTRAN. Although people who know both can see that my 'C' looks like "FORTRAN in disguise"... (snipped useful info) When I can, I'll try again to install the new yt-dlp version again from scratch. Use a different tack and see. If it doesn't work, I'll give up and do something else. Jim ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
In article <809b079f-cc32-2027-f825-520c77614...@macfh.co.uk>, MacFH - C E Macfarlane - News wrote: > On 28/03/2023 15:51, Jim web wrote: > > > Sorry to hear about your wife, commiserations to you both. > > In article , MacFH > > - C E Macfarlane - News wrote: > >> > >> Might as well be sure, so what happens when you type: python --version > >> > >> If that comes up with 3.7 as desired, what do you get for: pip --help > > > > It gives me Python 2.7.17 > > > > However if I look in usr/lib/ I can see directories for Python 2.7, 3, > > 3.6, 3.7, and 3.8. > Different versions of Java, FWIW I did once try learning and using Java. Gave up after a while because by the time I'd written anything the methods became 'deprecated' as the caravan morphed on at superluminal speed! 8-[ So I've stuck with my shoddy use of 'C'. No style, just: "does this give me the coconut?!" 8-] Oh well, at least I've stopped using FORTRAN. Although people who know both can see that my 'C' looks like "FORTRAN in disguise"... (snipped useful info) When I can, I'll try again to install the new yt-dlp version again from scratch. Use a different tack and see. If it doesn't work, I'll give up and do something else. Jim -- Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html Audio Misc http://www.audiomisc.co.uk/index.html ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
On 28/03/2023 15:51, Jim web wrote: Sorry to hear about your wife, commiserations to you both. In article , MacFH - C E Macfarlane - News wrote: Might as well be sure, so what happens when you type: python --version If that comes up with 3.7 as desired, what do you get for: pip --help It gives me Python 2.7.17 However if I look in usr/lib/ I can see directories for Python 2.7, 3, 3.6, 3.7, and 3.8. Different versions of Java, Perl, and Python can be a right royal PITA - seemingly endless updates seem to require anything based on them that you are using needing programs to be rewritten and/or recompiled. If you have a genuine need for different versions as opposed to having arrived with multiple versions merely by happenstance, one possible workaround is to have some means of determining the default version for a given shell instance. For example, in Unbuntu 18, I get ... # which python /usr/bin/python # ls -al /usr/bin/python /usr/bin/python->python2.7 ... and ... # ls -al /usr/bin/python* ... is also quite instructive, but would be overkill to transcribe in its entirety here! This gives the possibility of a given shell instance pointing that link to whichever version of python that it needs, either directly or via an environment variable, as it launches ... # ln -s -f /usr/bin/python2.7 /usr/bin/python ... or ... # export PYTH_VER=2.7 # ln -s -f /usr/bin/python${PYTH_VER} /usr/bin/python ... however, although I have seen it done this way, I DON'T RECOMMEND IT, because if you have two shells running simultaneously requiring different versions of python [the rest of this sentence is left as an exercise to the programmer]! Better is to use a different alias within each shell ... # python --version Python 2.7.17 # alias python=/usr/bin/python3.6 # python --version Python 3.6.9 If this works, fine, but if, say, more than one change to the environment is needed, perhaps because the PATH or LIB variables need to include the directories for a different versions of Python or some such, then use an environment variable in all the settings so that between different shells you have to change only the value of that: # python --version Python 3.6.9 # export PYTH_VER=2.7 # alias python=/usr/bin/python${PYTH_VER} # python --version Python 2.7.17 HTHs ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
In article , MacFH - C E Macfarlane - News wrote: > > Might as well be sure, so what happens when you type: python > > --version > > > > If that comes up with 3.7 as desired, what do you get for: pip > > --help It gives me Python 2.7.17 However if I look in usr/lib/ I can see directories for Python 2.7, 3, 3.6, 3.7, and 3.8. When I get a chance I'll go back to the beginning and re-install (or try to) the current version of yt-dlp. I usually cheat and make it local, but will try and install as normally described. Jim -- Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html Audio Misc http://www.audiomisc.co.uk/index.html ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
In article , MacFH - C E Macfarlane - News wrote: > On 27/03/2023 10:44, Jim web wrote: > Glad to see you're still alive and kicking. I'd noticed your absence in > another place and was a little worried for you. Warning for the sensitive. Much of the following is even more OT. :-) I'm still alive... I think!... but these days I'm ultra-busy with non-maskable interrupts. My wife now needs 24/7 care due to some falls added to other problems. So when it comes to time, usenet has drawn one of the short straws in recent weeks. I also now have to be nagged by editors when they want an item *now* "You'r holding up the magazine!" [snip] I've also been doing an urgent task - finding a new supplier for decent FF teas, etc. Our old one ceased trading. Sad as their teas were great, and they are nice people. Now found two candidates and doing trial orders. Back on topic... I've got Python 3.7 installed. But as my distro is 'just out of span' Synaptic can't find related packages beyond the ones mentioned earlier. However I suddenly realised that I'd probably messed up in another way as well. Apologies to all if so. I keep having to do things in a rush, which amplifies my usual state of muddle. I'd first tried to use -U to update yt-dip on a machine where it had been OK, but now fails due - I suspect - to YT moving their deckchairs. The new version there also failed. *That* machine, though runs an even older distro, so I decided to try my newer one. But probably fouled up by simply copying across the updated yt-dlp and latterly installing the Python 3.7. Instead, when I can find time I'll now do the standard install approach for yt-dlp from the net. That may then sort out things I didn't do, or did wrong. But there is no hurry. As usual, I'm doing this for some test reasons similar to those reported on https://www.audiomisc.co.uk/YouTube/SpotTheDifference.html Say more about that if I ever get somewhere... :-) However, progress is sloower than it used to be as I can't get as much time for things like this as I was. BTW The VW on Brass CD is superb. :-) Jim -- Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html Audio Misc http://www.audiomisc.co.uk/index.html ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
On 27/03/2023 18:10, MacFH - C E Macfarlane - News wrote: On 27/03/2023 10:44, Jim web wrote: Glad to see you're still alive and kicking. I'd noticed your absence in another place and was a little worried for you. This is OT but I'm hoping some here will be using yt-dlp and can help! I do use yt-dlp occasionally, but it's the Win32 pre-compiled version, so I kept quiet initially hoping that someone else would be able to give you some worthwhile help, but, as the problem doesn't seem to going anywhere, I'll see what I can do ... The version of yt-dlip I've been using has been upped to the current one. This now refuses to work unless I also go to Python 3.7 so I have installed the basics of that... I think. However... Might as well be sure, so what happens when you type: python --version If that comes up with 3.7 as desired, what do you get for: pip --help On Ubuntu 18 I get: Command 'pip' not found, but can be installed with: sudo apt install python-pip Now when I try to run it is fails by saying No module "contextvars". Once pip is installed, try: pip install contextvars Meant to include this: https://docs.python.org/3.7/library/contextvars.html ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
On 27/03/2023 10:44, Jim web wrote: Glad to see you're still alive and kicking. I'd noticed your absence in another place and was a little worried for you. This is OT but I'm hoping some here will be using yt-dlp and can help! I do use yt-dlp occasionally, but it's the Win32 pre-compiled version, so I kept quiet initially hoping that someone else would be able to give you some worthwhile help, but, as the problem doesn't seem to going anywhere, I'll see what I can do ... The version of yt-dlip I've been using has been upped to the current one. This now refuses to work unless I also go to Python 3.7 so I have installed the basics of that... I think. However... Might as well be sure, so what happens when you type: python --version If that comes up with 3.7 as desired, what do you get for: pip --help On Ubuntu 18 I get: Command 'pip' not found, but can be installed with: sudo apt install python-pip Now when I try to run it is fails by saying No module "contextvars". Once pip is installed, try: pip install contextvars ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
In article <1fc5118b-7da9-e243-3a5a-3b1198f8f...@errichel.co.uk>, Budge wrote: > So what I am using is not much help. I am surprised that you have not > upgraded though. 3.10 was introduced in 2021. What OS are you using? > Regards, Alastair. Do you mean 3.6 for the Python that my machine has been using? I can't recall when I installed the distro offhand, but it has just gone out of active support. It is Mint xfce. I assume the synaptic version of Python found would have been kept up, hence the 3.7 being present I guess. Note I'm posting here using a totally different RISC OS machine. I suspect that I need to install one (at least) of the other Python 3.7 items synaptic list. But since I know zip about Python I have no idea which one(s)! So - not finding the contextvars module - yt-dlt tries what is present, then throws the objection to it. Just my guess, though. OTOH I'm wary of installing many 3.7 things in case that b*88*rs something else that uses Python! Jim Jim -- Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html Audio Misc http://www.audiomisc.co.uk/index.html ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
Hi Jim Further to my last message here is the version I am using and dependencies. Installed Version 2023.03.04-pm150400.2.1 yt-dlp = 2023.03.04-pm150400.2.1 python310 /usr/bin/python3.10 ffmpeg rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 So what I am using is not much help. I am surprised that you have not upgraded though. 3.10 was introduced in 2021. What OS are you using? Regards, Alastair. On 27/03/2023 11:30, Budge wrote: Hi Jim, I am not a coder so cannot help too much but am using yt-dlp on openSUSE Leap 15.4 and used it at the weekend to download a film. No problems for me here so I shall check what packages are installed and get back to you. I am typing on a different machine at the office at present. Will get back to you. Alastair. On 27/03/2023 10:44, Jim web wrote: This is OT but I'm hoping some here will be using yt-dlp and can help! The version of yt-dlip I've been using has been upped to the current one. This now refuses to work unless I also go to Python 3.7 so I have installed the basics of that... I think. However... Now when I try to run it is fails by saying No module "contextvars". It then, I think, tries to use Python 3.6 and throws its errors that I won't do that. Then stops. No coconut. This is probably because I've not installed one of the packages for 3.7 that it needs, but I'm not sure of that, and don't want to install every 3.7 item that synaptic list if that isn't needed. Nor find I have to remove Python 3.6! Can anyone clarify/help, please? Running a Mint xfce distro. Thanks, Jim ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: OT yt-dlp and Python snag
Hi Jim, I am not a coder so cannot help too much but am using yt-dlp on openSUSE Leap 15.4 and used it at the weekend to download a film. No problems for me here so I shall check what packages are installed and get back to you. I am typing on a different machine at the office at present. Will get back to you. Alastair. On 27/03/2023 10:44, Jim web wrote: This is OT but I'm hoping some here will be using yt-dlp and can help! The version of yt-dlip I've been using has been upped to the current one. This now refuses to work unless I also go to Python 3.7 so I have installed the basics of that... I think. However... Now when I try to run it is fails by saying No module "contextvars". It then, I think, tries to use Python 3.6 and throws its errors that I won't do that. Then stops. No coconut. This is probably because I've not installed one of the packages for 3.7 that it needs, but I'm not sure of that, and don't want to install every 3.7 item that synaptic list if that isn't needed. Nor find I have to remove Python 3.6! Can anyone clarify/help, please? Running a Mint xfce distro. Thanks, Jim ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
OT yt-dlp and Python snag
This is OT but I'm hoping some here will be using yt-dlp and can help! The version of yt-dlip I've been using has been upped to the current one. This now refuses to work unless I also go to Python 3.7 so I have installed the basics of that... I think. However... Now when I try to run it is fails by saying No module "contextvars". It then, I think, tries to use Python 3.6 and throws its errors that I won't do that. Then stops. No coconut. This is probably because I've not installed one of the packages for 3.7 that it needs, but I'm not sure of that, and don't want to install every 3.7 item that synaptic list if that isn't needed. Nor find I have to remove Python 3.6! Can anyone clarify/help, please? Running a Mint xfce distro. Thanks, Jim -- Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html Audio Misc http://www.audiomisc.co.uk/index.html ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer