Python 3.8 - alpha release
Pages: 1 ... 3 4 5 6 7 8 9 10 11 12 13 14
Chris Johnson (125) 825 posts |
The problem is that Netsurf does not wrap long lines if they are enclosed in pre tags. |
Chris Gransden (337) 1202 posts |
I dont’t think it’s supposed to. A horizontal scroll bar appears below the text on Otter Browser. |
Steve Fryatt (216) 2103 posts |
Not so. The issue is that NetSurf should add horizontal scroll bars to the grey preformat boxes, so that they don’t extend beyond the available width but the content can be scrolled back and forth into view. That said, it could be a deficiency in the formatting on the forum, as it’s surprisingly hard to get correct. It works on other browsers, however, so there’s a presumption towards NetSurf being at fault. |
Rick Murray (539) 13806 posts |
When it does it incorrectly or only partially. The CSS specifies Thus, NetSurf ought to be adding scrolling to the wide preformatted content and not rijigging everything else to fit a four thousand pixel wide display. |
Steve Pampling (1551) 8155 posts |
I think you’re slightly misunderstanding what the behaviour should be: Typically something like a preformatted 1000 character line length set of text seen through a scrollable window that fits the display width of all the text outside the window at say 80 characters. |
Rick Murray (539) 13806 posts |
HTML as pure markup has been “broken” ever since the likes of CSS came along. Now it is less about just marking up content with basic formatting and all about visual presentation. There is a benefit to having a website look consistent across various different devices, but the cost of this is that it doesn’t resemble the behaviours of HTML 2.0 and the like. There are various things that can be tweaked. You can add scroll bars, override the default font and size, make it wrap (in a browser specific way), and so on. Pre text in Arial! If you have a spare moment and a capable enough browser, try reading the forum here with the CSS disabled and see how utterly different it looks. ;-) |
John Rickman (71) 645 posts |
here is no such version as 0.9.5.1. The version available in PackMan is 0.9.5-1. The ‘-1’ is the package version. It’s a chicken and egg thing. I have now sorted it out and everything is working satisfactorily. |
Chris (2061) 72 posts |
Fresh install of Python38 and i get an error even trying to get a prompt. ModuleNotFoundError: No module named ‘encodings’ Any ideas how to fix this? Using the lessthan3 repo |
Chris Johns (8262) 242 posts |
The packages should be on the “main” ROOL repos now, it might be you need to remove the existing ones and install them again from there though. While I’m here.. I’m still working on Python although time is a bit limited at the moment .. paid work getting in the way again! |
Chris (2061) 72 posts |
Resolved. Old !Youtube-DL !Boot was removing the variable as i still had it being looked at in my boot structure, Doh! |
Ian Beagrie (3223) 3 posts |
Stupid questions time: |
Steve Fryatt (216) 2103 posts |
That’s the source, so there might be some untangling to do (if the binaries are even there). You would be better downloading the packages by hand from the repository (scroll down to Python-38) and installing their contents. Note that you will also need to download and install all of the packages listed under “Required”, in a similar way. You will find the other packages split between the ROOL Repository and the RISC OS Info Repository The packages are just Zip files, and in each case you’ll want the files that aren’t in the RiscPkg folder. Some stuff will need to go into specific places (eg. anything in a top level folder called “Resources” needs to be in !Boot.Resources), but you might need to read the RiscPkg control files or ask for help to work out where it should go. |
Rob Andrews (112) 164 posts |
Can’t you just download all the packages from http://packages.lessthan3.org.uk/ then load packman to the iconbar then drop the unpacked files onto packman on the iconbar |
Ian Beagrie (3223) 3 posts |
Okay, I bit the bullet and now have working internet on my BBxM, long overdue I know. Double click on the !Python3 in $.Apps.Development and… Am I missing something really obvious? Any suggestions would be much appreciated. |
Chris Johns (8262) 242 posts |
You shouldn’t need to use the packages.lessthan3.org,uk site for Python 3.8, although pygame is on there. It’s where I put packages for testing. If you get a !Python3 to double-click and *python3 in a taskwindow give the same error, it would seem like it’s at least installed. I’ve not seen a “Bad Reason Code” so I’m not quite sure what it could be. Usually if python can’t start it falls over with a load of debug. which makes me think it’s failing pretty early on. Does *python3 -V (which is meant to just print the version number) give the same error? |
Ian Beagrie (3223) 3 posts |
I have tried your suggestion Chris and the version number request gives the same result. |
Andreas Skyman (8677) 170 posts |
Wait… Pygame works on Risc OS? Why am I coding C?! |
John Rickman (71) 645 posts |
Is announcements still the best place to post Python38 problems? or should the Python discussions move to somewhere else.? In order to code some primitive graphic function I have tried to install a popular library of funtions called Matplotlib using pip. It gets quite a long way but eventuallly aborts with a message about a missing file. here is a pruned version of what happens:
I have tried reinstalling ‘setuptools’ as recommended by several online posts but it made no difference. |
Rick Murray (539) 13806 posts |
I don’t think it ever was, but we’re about thirteen pages too late for that. ;-) I’m not familiar with Python, but… do you have anything called “pkg_resources”? Failing that, just a guess, how about “pkg_resour” (antiquated 10 character filename thing)? |
Chris Gransden (337) 1202 posts |
You picked ones of the most complicated python modules to install! :-) It’s currently only possible to install pure Python modules using pip. An older version of matplotlib and numpy works ok with the VFP version of Python2. The plots are output direct to PDF which can be converted to draw files using !PDF. |
Chris Johns (8262) 242 posts |
I did start to look at building C modules via pip, but it’s not trivial to say the least. Numpy also had another set issues I believe to do with how floats are stored. It’s OK if everything is VFP, as Chris Gransden pointed out above. Given numpy is doing a lot with floating point numbers, you probably need to have VFP anyway! It’s been a hectic few months with lockdown 3 and (attempting to) home-school, work and about 20 other things. Sadly I’ve not yet won the lottery so I can just give up wotk and and sit in the sun writing RISC OS stuff. |
Lioh (8855) 7 posts |
I am trying to install youtube-search-python using pip on the latest version of python 3.8.8 but got the following error: https://i.imgur.com/pLwPSDg.png The module is required for YTSearch from https://www.riscosports.co.uk/downloads.html |
Chris Gransden (337) 1202 posts |
The zlib python module needs the ZLib1g shared library installing with PackMan. |
Lioh (8855) 7 posts |
Installing ZLib1g-dev helped but now I got this error: |
Lioh (8855) 7 posts |
Sorry ZLib1g, not -dev. |
Pages: 1 ... 3 4 5 6 7 8 9 10 11 12 13 14