Python 3.8 - alpha release
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Tristan M. (2946) 1039 posts |
IIRC it was a flat filesystem, and the “directories” were just long filenames. I think internally it was something like foo:bar:baz (but more complex) and parsed by the Mac System software to hide that away from the user. Gavin. There are smaller versions of Python. MicroPython comes to mind. In a sense it is like the base Lua because it starts off essentially in isolation, needing some modules added for base functionality. It’s popular on embedded platforms. I have various embedded devices with MicroPython, NodeMCU (Lua), Lua-RTOS and that sort of thing on them. They are all pretty small. |
Chris Mahoney (1684) 2165 posts |
It was originally flat, but true directories were added in HFS (1986?). |
Tristan M. (2946) 1039 posts |
I guess my knowledge on the subject is a little dated :) |
Stuart Swales (1481) 351 posts |
Extension separator characters? Not always dot – Panos used hyphen! |
Chris Johns (8262) 242 posts |
Octoprint
Hmm, I have the same error here too. A very quick look at the octoprint git shows https://github.com/OctoPrint/OctoPrint/tree/master/src/octoprint/static/img My quick guess is the ‘@’ in the filename is throwing things. It has a special meaning on RISC OS so can’t be used in a filename. |
Chris Johns (8262) 242 posts |
I have got Operating System :: RISC OS added to the pypi classifier list, and uploaded an early version of my toolbox library. https://pypi.org/project/riscos-toolbox/ It only covers a few of the objects and gadgets at the moment but if you need more adding please let me know, although I aim to cover them all in time. The package was built and uploaded from RISC OS itself, so part of the release was to test that! |
Tristan M. (2946) 1039 posts |
Nice! Just installed it. Do you have at least a list of what it can do? e: To do it, from the * prompt
Just thought I’d throw that out there for people. |
Chris Johns (8262) 242 posts |
The github page for it has a really basic example of a Window with a few gadgets(ActionButton, DisplayField, Adjuster, RadioButton, OptionButton, StringSet, NumberRange) in it. At the momemnt the only real ‘documentation’ is the example app, I will try to get some actual documentation writen up.
Yes, that’s on my mental list of things to look at. So far I’ve avoiding “installing” anything but I think for the next release TaskRunner needs to be installed in !System and then Python can load it if it’s not running. |
John Rickman (71) 645 posts |
I tried to join www.freelists.org/list/riscos-python |
Steffen Huber (91) 1949 posts |
|
John Rickman (71) 645 posts |
Thanks Steffen |
John Rickman (71) 645 posts |
I have tried to install toolbox as suggested above:- *python3 -m pip install riscos-toolbox It gets quite a long way but fails with:- |
Tristan M. (2946) 1039 posts |
John, |
David J. Ruck (33) 1629 posts |
Arrrh! A null claimer – over 90,000 nulls per second on my Mini.m, which is causing it to get rather hot. Any chance you could make it use Wimp_PollIdle? |
John Rickman (71) 645 posts |
if I recall I fixed that by installing zlib1g and zlib1g-dev from PackMan. Done that, thanks. ssl is present in python.lib and AcornSSL module is loaded: I am using ARMX6 RISC OS version 5.27 (30-Jun-20) |
Doug Webb (190) 1158 posts |
So when did you last update your CA Root certificate file and also your AcornSSL module is way out of date. Latest Certificates , 24th June 2020, are available as part of the Beta HardDisc image download along with the latest AcornSSL 1.06 (3rd June 2020) mbedTLS 2.16.6 and some other updates. |
Sprow (202) 1155 posts |
Can’t connect to HTTPS URL because the SSL module is not available In the context of python, it’s probably referring to the python SSL module rather than a module in the RISC OS relocatable module sense. |
Doug Webb (190) 1158 posts |
Right so installed Python3 and after a second read of the instructions I manually ran the TaskRunner module and then excuted the install and I’ve succesfully installed riscos-toolbox so thanks Chris for all your hardwork to date. |
John Rickman (71) 645 posts |
Still no joy with install pip. I have updated certificates and AcornSSL (although as Sprow points out above it is the Python SSL that is apparently missing) Also reinstalled from Python38a6.zip *python3 -m pip install riscos_toolbox results in: There is a file called ssl module in the lib directory: This is has a comment at the top:
at line 98 it has: But at this point I am out of my depth! Doug and Chris have you got this install working on ARMX6 or just Raspberry Pi? |
Doug Webb (190) 1158 posts |
Hi John, ARMX6 running 30th June 2020 ROM and latest ROOL hard disc image. I downloaded Alpha 6 and also used PackMan to install both Zlib components. Also before I start the install I manually ran the TaskRunner module included in the Python3 download. |
John Rickman (71) 645 posts |
Doug AFAICT I have done exactly what you have done with hardware and software the same. Obviously something is different but what? Among many things that puzzle me is, |
Doug Webb (190) 1158 posts |
John The application goes off to download the required riscos-toolbox elements. Are the certificates another red herring in that perhaps they are not the normal CertData ones in !Internet but the !CaCertificates version. I have a up to date version of those by coping the CertData out of Internet.files to CaCertificates and renaming the file to ca-certificates/crt. The other thing is your network set up and is it stopping certain ports being used? I guess Chris knows the details so we may need to wait for him to come back and answer them. |
John Rickman (71) 645 posts |
Trying another tack – I tried to install pip on my ARMBook, but got stuck trying to install ZLib1g via PackMan. |
Alan Buckley (167) 232 posts |
@bq. Trying another tack – I tried to install pip on my ARMBook, but got stuck trying to install ZLib1g via PackMan. The conflicts are probably because you updated the shared libraries from outside PackMan. To be safe you could make a copy of the whole !SharedLibs directory somewhere safe. Then let PackMan update them. Reboot and check everything is OK. If it all goes wrong you can copy the !SharedLibs back (remembering to overwrite of course). |
Chris Johns (8262) 242 posts |
I am wondering if either something is missing in the latest release bundle (it’s still a bit of a manual process to build it) or there is some other dependancy that some people have and others don’t. I will try setting up a totally ‘vanilla’ Pi or RPCEmu system and see what I can work out. |
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14