• Python

    From Stuart@Spambin@argonet.co.uk to comp.sys.acorn.misc on Sun Oct 20 19:30:02 2024
    From Newsgroup: comp.sys.acorn.misc

    I bought my eldest grandson (now 10) a Microbit a christmas or so ago. My daughter tells me he has just started to take an interest in it and he
    will be staying with us over part of the forthcoming half term holiday.

    Obviously this is something I want to encourage him in, but I have no clue whatsoever about the language, and I've not done any programming since I
    did a bit in BBC basic on a BBC micro many, many, years ago. I believe something called Scratch is also available, but, as I understand Python is available to run under RISC OS, that seems the way to go.

    Are there any Python experts here, can someone recommend a suitable book,
    like the old books available for BBC basic, to get me started.
    --
    Stuart Winsor

    Tools With A Mission
    sending tools across the world
    http://www.twam.co.uk/
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Stuart@Spambin@argonet.co.uk to comp.sys.acorn.misc on Sun Oct 20 20:00:02 2024
    From Newsgroup: comp.sys.acorn.misc

    In article <5bb2f088fdSpambin@argonet.co.uk>,
    Stuart <Spambin@argonet.co.uk> wrote:
    I bought my eldest grandson (now 10) a Microbit a christmas or so ago. My daughter tells me he has just started to take an interest in it and he
    will be staying with us over part of the forthcoming half term holiday.

    Obviously this is something I want to encourage him in, but I have no clue whatsoever about the language, and I've not done any programming since I
    did a bit in BBC basic on a BBC micro many, many, years ago. I believe something called Scratch is also available, but, as I understand Python is available to run under RISC OS, that seems the way to go.

    Are there any Python experts here, can someone recommend a suitable book, like the old books available for BBC basic, to get me started.

    Also where to find it.

    !Packman gives information on it and a long URL to find it at Risc OS
    open, however, this gives a 404.
    --
    Stuart Winsor

    Tools With A Mission
    sending tools across the world
    http://www.twam.co.uk/
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From John Norris@jrn@orpheusmail.co.uk to comp.sys.acorn.misc on Sun Oct 20 21:30:02 2024
    From Newsgroup: comp.sys.acorn.misc

    In message <5bb2f3501bSpambin@argonet.co.uk>
    Stuart <Spambin@argonet.co.uk> wrote:

    In article <5bb2f088fdSpambin@argonet.co.uk>,
    Stuart <Spambin@argonet.co.uk> wrote:
    I bought my eldest grandson (now 10) a Microbit a christmas or so ago. My
    daughter tells me he has just started to take an interest in it and he
    will be staying with us over part of the forthcoming half term holiday.

    Obviously this is something I want to encourage him in, but I have no clue >> whatsoever about the language, and I've not done any programming since I
    did a bit in BBC basic on a BBC micro many, many, years ago. I believe
    something called Scratch is also available, but, as I understand Python is >> available to run under RISC OS, that seems the way to go.

    Are there any Python experts here, can someone recommend a suitable book,
    like the old books available for BBC basic, to get me started.

    Also where to find it.

    !Packman gives information on it and a long URL to find it at Risc OS
    open, however, this gives a 404.

    One possibility:-

    Programming the Raspberry Pi
    Getting Started with Python

    By Simon Monk
    Pub. by McGraw Hill
    ISBN 978-1-25-958740-5
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Stuart@Spambin@argonet.co.uk to comp.sys.acorn.misc on Mon Oct 21 08:30:03 2024
    From Newsgroup: comp.sys.acorn.misc

    In article <52b8f4b25b.John@jrn.orpheusmail.co.uk>,
    John Norris <jrn@orpheusmail.co.uk> wrote:
    !Packman gives information on it and a long URL to find it at Risc OS
    open, however, this gives a 404.

    One possibility:-

    Programming the Raspberry Pi
    Getting Started with Python

    By Simon Monk
    Pub. by McGraw Hill
    ISBN 978-1-25-958740-5

    Thank you for that clue.

    Many moons ago, when the Pi first came out, I purchased two books,
    "Raspberry Pi user guide", by Eben Upton, and "Raspberry PI projects", by Andrew Robinson and mike Cook. I've just dug them out and both have
    chapters on Python. I have also ordered a copy of "Automate the boring
    stuff with Python", Al Sweigart, which is supposed to be a beginners book
    on programming.

    However, I'm still having issues with the program itself. I finally
    managed to locate three different packages at:

    https://packages.riscosopen.org/thirdparty/DevelopmentDetails.html#Python-38any

    I subsequently discovered that there is already a copy installed on my FOURTress in a folder called "Programming", however, neither that, nor the
    pip download, which is supposed to have no dependencies, will actually
    run. Both complain about not being able to find:

    ShardLibs:lib.ld-riscos/so/1

    Which is really helpful!

    I discovered a thread on ROOL discussing this missing component, in
    relation to Lua, but the thread quickly diverts onto discussing Iris and doesn't say where this can be downloaded from and installed.

    Why doesn't the pip download, which supposed not to have any dependencies, include it, because it clearly does have this dependancy.
    --
    Stuart Winsor

    Tools With A Mission
    sending tools across the world
    http://www.twam.co.uk/
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Jean-Michel@jmc.bruck@orange.fr to comp.sys.acorn.misc on Mon Oct 21 18:37:52 2024
    From Newsgroup: comp.sys.acorn.misc

    In message <5bb336e4d5Spambin@argonet.co.uk>
    Stuart <Spambin@argonet.co.uk> wrote:

    In article <52b8f4b25b.John@jrn.orpheusmail.co.uk>,
    John Norris <jrn@orpheusmail.co.uk> wrote:
    !Packman gives information on it and a long URL to find it at Risc OS
    open, however, this gives a 404.

    One possibility:-

    Programming the Raspberry Pi
    Getting Started with Python

    By Simon Monk
    Pub. by McGraw Hill
    ISBN 978-1-25-958740-5

    Thank you for that clue.

    Many moons ago, when the Pi first came out, I purchased two books,
    "Raspberry Pi user guide", by Eben Upton, and "Raspberry PI projects", by Andrew Robinson and mike Cook. I've just dug them out and both have
    chapters on Python. I have also ordered a copy of "Automate the boring
    stuff with Python", Al Sweigart, which is supposed to be a beginners book
    on programming.

    However, I'm still having issues with the program itself. I finally
    managed to locate three different packages at:

    https://packages.riscosopen.org/thirdparty/DevelopmentDetails.html#Python- 38any

    I subsequently discovered that there is already a copy installed on my FOURTress in a folder called "Programming", however, neither that, nor the pip download, which is supposed to have no dependencies, will actually
    run. Both complain about not being able to find:

    ShardLibs:lib.ld-riscos/so/1
    I assume you have SharedLibs installed?
    If you are using Iris there may be problems and you need to relaunch !SharedLis after quitting !Iris.

    Which is really helpful!

    I discovered a thread on ROOL discussing this missing component, in
    relation to Lua, but the thread quickly diverts onto discussing Iris and doesn't say where this can be downloaded from and installed.

    Why doesn't the pip download, which supposed not to have any dependencies, include it, because it clearly does have this dependancy.

    Pip works here...

    Also:
    https://www.bakehousecyber.co.uk/PYGWEB/index.html
    --
    Jean-Michel
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Stuart@Spambin@argonet.co.uk to comp.sys.acorn.misc on Mon Oct 21 19:00:02 2024
    From Newsgroup: comp.sys.acorn.misc

    In article <dabb64b35b.jmb@jmc.bruck.orange.fr>,
    Jean-Michel <jmc.bruck@orange.fr> wrote:
    In message <5bb336e4d5Spambin@argonet.co.uk>
    Stuart <Spambin@argonet.co.uk> wrote:

    In article <52b8f4b25b.John@jrn.orpheusmail.co.uk>,
    John Norris <jrn@orpheusmail.co.uk> wrote:
    !Packman gives information on it and a long URL to find it at Risc OS
    open, however, this gives a 404.

    One possibility:-

    Programming the Raspberry Pi
    Getting Started with Python

    By Simon Monk
    Pub. by McGraw Hill
    ISBN 978-1-25-958740-5

    Thank you for that clue.

    Many moons ago, when the Pi first came out, I purchased two books, "Raspberry Pi user guide", by Eben Upton, and "Raspberry PI projects", by Andrew Robinson and mike Cook. I've just dug them out and both have chapters on Python. I have also ordered a copy of "Automate the boring stuff with Python", Al Sweigart, which is supposed to be a beginners book on programming.

    However, I'm still having issues with the program itself. I finally
    managed to locate three different packages at:

    https://packages.riscosopen.org/thirdparty/DevelopmentDetails.html#Python- 38any

    I subsequently discovered that there is already a copy installed on my FOURTress in a folder called "Programming", however, neither that, nor the pip download, which is supposed to have no dependencies, will actually
    run. Both complain about not being able to find:

    ShardLibs:lib.ld-riscos/so/1
    I assume you have SharedLibs installed?
    If you are using Iris there may be problems and you need to relaunch !SharedLis after quitting !Iris.

    Yes, Iris does seem to have been the cause of that issue, but, after a CTRL-BREAK, it threw up another error.

    I have listed that in full in a post in comp.sys.acorn.apps, but briefly:

    -----------------------------------------------------------------------

    Fatal Python error: init_fs_encoding: failed to get the Python codec of
    the filesystem encoding
    Python runtime state: core initialized
    ModuleNotFoundError: No module named 'encodings'

    Current thread 0x00299d08 (most recent call first):

    <no Python frame>

    ----------------------------------------------------------------------


    Pip works here...

    Also:
    https://www.bakehousecyber.co.uk/PYGWEB/index.html

    Thank you for that link, it looks really useful.

    Stuart
    --
    Stuart Winsor

    Tools With A Mission
    sending tools across the world
    http://www.twam.co.uk/
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Chris Newman@newslists@npost.uk to comp.sys.acorn.misc on Tue Oct 22 17:18:06 2024
    From Newsgroup: comp.sys.acorn.misc

    In article <dabb64b35b.jmb@jmc.bruck.orange.fr>, Jean-Michel <jmc.bruck@orange.fr> wrote:


    <Big snip>


    I assume you have SharedLibs installed? If you are using Iris there may
    be problems and you need to relaunch !SharedLis after quitting !Iris.

    Slightly off piste but can anyone kindly explain what's wrong with Iris
    and !SharedLibs?
    --
    Chris
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Harriet Bazley@harriet@bazleyfamily.co.uk to comp.sys.acorn.misc on Tue Oct 22 18:23:09 2024
    From Newsgroup: comp.sys.acorn.misc

    On 22 Oct 2024 as I do recall,
    Chris Newman wrote:

    In article <dabb64b35b.jmb@jmc.bruck.orange.fr>, Jean-Michel <jmc.bruck@orange.fr> wrote:


    <Big snip>


    I assume you have SharedLibs installed? If you are using Iris there may
    be problems and you need to relaunch !SharedLis after quitting !Iris.

    Slightly off piste but can anyone kindly explain what's wrong with Iris
    and !SharedLibs?

    It rewrites SharedLibs$Path to point to a version inside !Iris instead
    of the version in !Boot.Resources.
    --
    Harriet Bazley == Loyaulte me lie ==

    Those who can't write, write manuals.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Chris Newman@newslists@npost.uk to comp.sys.acorn.misc on Tue Oct 22 18:25:00 2024
    From Newsgroup: comp.sys.acorn.misc

    In article <31b7ecb35b.harriet@bazleyfamily.co.uk>, Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
    On 22 Oct 2024 as I do recall, Chris Newman wrote:

    In article <dabb64b35b.jmb@jmc.bruck.orange.fr>, Jean-Michel <jmc.bruck@orange.fr> wrote:


    <Big snip>


    I assume you have SharedLibs installed? If you are using Iris there
    may be problems and you need to relaunch !SharedLis after quitting
    !Iris.

    Slightly off piste but can anyone kindly explain what's wrong with
    Iris and !SharedLibs?

    It rewrites SharedLibs$Path to point to a version inside !Iris instead
    of the version in !Boot.Resources.

    Ah1 Thanks. Is that solvable? Can I just remove the Iris copy?
    --
    Chris
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Harriet Bazley@harriet@bazleyfamily.co.uk to comp.sys.acorn.misc on Tue Oct 22 19:01:10 2024
    From Newsgroup: comp.sys.acorn.misc

    On 22 Oct 2024 as I do recall,
    Chris Newman wrote:

    In article <31b7ecb35b.harriet@bazleyfamily.co.uk>, Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
    On 22 Oct 2024 as I do recall, Chris Newman wrote:

    [snip]


    Slightly off piste but can anyone kindly explain what's wrong with
    Iris and !SharedLibs?

    It rewrites SharedLibs$Path to point to a version inside !Iris instead
    of the version in !Boot.Resources.

    Ah1 Thanks. Is that solvable? Can I just remove the Iris copy?

    I assume there is some reason why Iris wants to ensure that only that
    specific version gets used. :-(

    I wrote an Obey file to create a joint SharedLibs$Path with both copies
    of !SharedLibs on it, but while this allows Lua to run after attempts at
    using Iris, I seem to remember that it's not a complete solution in
    terms of cohabitation between Iris and other applications.
    --
    Harriet Bazley == Loyaulte me lie ==

    Flee at once, all is discovered.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Jean-Michel@jmc.bruck@orange.fr to comp.sys.acorn.misc on Tue Oct 22 20:44:48 2024
    From Newsgroup: comp.sys.acorn.misc

    In message <f931f0b35b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 22 Oct 2024 as I do recall,
    Chris Newman wrote:

    In article <31b7ecb35b.harriet@bazleyfamily.co.uk>, Harriet Bazley
    <harriet@bazleyfamily.co.uk> wrote:
    On 22 Oct 2024 as I do recall, Chris Newman wrote:

    [snip]


    Slightly off piste but can anyone kindly explain what's wrong with
    Iris and !SharedLibs?

    It rewrites SharedLibs$Path to point to a version inside !Iris instead
    of the version in !Boot.Resources.

    Ah1 Thanks. Is that solvable? Can I just remove the Iris copy?

    I assume there is some reason why Iris wants to ensure that only that specific version gets used. :-(
    Thanks Harriet

    I wrote an Obey file to create a joint SharedLibs$Path with both copies
    of !SharedLibs on it, but while this allows Lua to run after attempts at using Iris, I seem to remember that it's not a complete solution in
    terms of cohabitation between Iris and other applications.

    I don't know if it's the same method, I open !Boot.resources and I click
    on !SharedLibs and Python works again.

    Just tested with a taskobey:
    filer_run <BootResources$Dir>.!SharedLibs

    Python doesn't complain anymore... and works. It's Iris' turn, you just
    have to restart it.
    --
    Jean-Michel
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Chris Hughes@news13@noonehere.co.uk to comp.sys.acorn.misc on Tue Oct 22 19:54:26 2024
    From Newsgroup: comp.sys.acorn.misc

    In message <f931f0b35b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 22 Oct 2024 as I do recall,
    Chris Newman wrote:

    In article <31b7ecb35b.harriet@bazleyfamily.co.uk>, Harriet Bazley
    <harriet@bazleyfamily.co.uk> wrote:
    On 22 Oct 2024 as I do recall, Chris Newman wrote:

    [snip]


    Slightly off piste but can anyone kindly explain what's wrong with
    Iris and !SharedLibs?

    It rewrites SharedLibs$Path to point to a version inside !Iris instead
    of the version in !Boot.Resources.

    Ah1 Thanks. Is that solvable? Can I just remove the Iris copy?

    I assume there is some reason why Iris wants to ensure that only that specific version gets used. :-(

    IIRC of the code in the version of !SharedLibs within Iris and technically beta and thus not in the more formal version of !SharedLibs within !Boot .Resources, hence why they are currently kept separate.
    --
    Chris Hughes
    --- Synchronet 3.21d-Linux NewsLink 1.2