Python 3.8 - alpha release
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Alan Buckley (167) 232 posts |
I’ve just finished uploading the GCC 4.7.4 release 5 with the new shared libraries. I’ve installed the new shared libraries and python 3 seems to be running OK. |
John Rickman (71) 645 posts |
I have tried to upgrade the libraries with PackMan and got a message:- failed to install/remove package when downloading – url malformed. The log does not make any sense to me – I was trying to upgrade SharedLibs not ADFFS LOG |
Chris Gransden (337) 1202 posts |
This can happen when the package sources are out of date. Try ‘update lists’. |
John Rickman (71) 645 posts |
I think there was a problem with the cache. After I cleared, updated lists and upgraded all it seems to be correct. |
Raik (463) 2059 posts |
To handle my website www.riscos.berlin I need sFTP. Is a different protokoll so FTPc is not working. python3 -m pip install pysftp fails with a lot of error messages. |
Doug Webb (190) 1158 posts |
Hi Raik, At first guess I think it would be down to the version of SharedLibs that you have installed. 4.0-Rlse5-1 is the latest and seems to resolve issues though Qupzilla/Otter don’t work with it and are awaiting an update. |
Raik (463) 2059 posts |
Hi Doug, thanks for your answer. I’m sure, I use the latest. With the older, I use before, YTSearch was not working… Looks like I have to use the very slow cURL and my frontend a bit longer ;-) |
David Pitt (3386) 1248 posts |
I did have a try here. A file appears to be missing but it is not clear what that might be. *python3 -m pip install pysftp Collecting pysftp Using cached pysftp-0.2.9.tar.gz (25 kB) [31m ERROR: Command errored out with exit status 1: command: 'ADFS::Titan4.$.Progm.Progm2.Python.!Python3.python3' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-o7wdfv28.pysftp.setup/py'"'"'; __file__='"'"'ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-o7wdfv28.pysftp.setup/py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-o7wdfv28.pysftp.pip-egg-info' cwd: ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-o7wdfv28.pysftp Complete output (11 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "ADFS::Titan4.$.Progm.Progm2.Python.!Python3.Lib.Site-Packages.setuptools.__init__/py", line 20, in <module> from setuptools.dist import Distribution, Feature File "ADFS::Titan4.$.Progm.Progm2.Python.!Python3.Lib.Site-Packages.setuptools.dist/py", line 35, in <module> from setuptools import windows_support File "ADFS::Titan4.$.Progm.Progm2.Python.!Python3.Lib.Site-Packages.setuptools.windows_support/py", line 2, in <module> import ctypes File "ADFS::Titan4.$.Progm.Progm2.Python.!Python3.Lib.ctypes.__init__", line 7, in <module> from _ctypes import Union, Structure, Array ImportError: File not found ----------------------------------------[0m [31mERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.[0m * |
Raik (463) 2059 posts |
Thanks for trying. |
Chris Gransden (337) 1202 posts |
The reason the ctypes python module fails to load with a file not found error is due to the |
Chris Gransden (337) 1202 posts |
The psftp command line utility can be used to transfer files to an ssh server. I’ve done a quick port of 0.74. I’ll post the download link here when it’s available. You can download it from here. |
Raik (463) 2059 posts |
Thanks a lot. |
Raik (463) 2059 posts |
Have try. Gives also any error messages. Can not post at this time. Forget my USB pendrive with the message text at home.
First short try this morning looks very good. The access to my homepage content is much faster than with cURL. Thanks a lot. |
David Pitt (3386) 1248 posts |
*python3 -m pip install pysftp Collecting pysftp Using cached pysftp-0.2.9.tar.gz (25 kB) [31m ERROR: Command errored out with exit status 1: command: 'ADFS::Titan4.$.Progm.Progm2.Python.!Python3.python3' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-d2jxccn1.pysftp.setup/py'"'"'; __file__='"'"'ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-d2jxccn1.pysftp.setup/py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-d2jxccn1.pysftp.pip-egg-info' cwd: ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-d2jxccn1.pysftp Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "ADFS::Titan4.$.!BOOT.Resources.!Scrap.ScrapDirs.ScrapDir.pip-install-d2jxccn1.pysftp.setup/py", line 5, in <module> with open('README.rst') as h_rst: FileNotFoundError: [Errno 2] No such file or directory: 'README.rst' ----------------------------------------[0m [31mERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.[0m * |
Chris Gransden (337) 1202 posts |
I think it’s because python3 only supports RISC OS file paths. Even if you get past that it will fail as there are quite a few dependancies of ‘C’ python modules. pysftp uses the paramiko python module. All the dependancies build OK using GCCSDK but the lack of file path translation will stop it working. It works OK in python27 once all the dependancies are built manually and installed. |
Raik (463) 2059 posts |
… gives a small error at start. But at the end, it works. ERROR: Unable to write random seed: Boot:Choices/.putty: mkdir: No such file or directory Edit: Sorry, UnixHome was not seen by the filer… |
Chris Gransden (337) 1202 posts |
I changed it to always store files in Boot:Choices.Putty. You can download the updated version from here. |
Chris Johns (8262) 242 posts |
Yes, it does. I took the decision to make sure “native” paths wotked, rather than making everything unix-style. In doing so I think I gave myself a load of extra work. I need to have a think about what can be done for this sort of thing, as I imagine it will crop up lots. People just assume that files are named file.ext which is fine on unix, Windows and macOS. |
Chris Johns (8262) 242 posts |
If anyone feels brave, I’ve updated the RISC OS port to Python 3.8.5 and the latest release of GCC for RISC OS. I’ve made a package so it can be installed with PackMan rather than downloading a zip file. As this is a work-in-progress I’ve not released any packages to the main servers yet, while I iron out any bugs. A word of warning for any early adopters – at the moment pip isn’t supported on 3.8.5. It might just copy over, but I want to make that it’s own package in PackMan. There are also some issues with pip I need to address. It’s on the list. Please let me know if you find any issues – especially with dependencies. Adding http://packages.lessthan3.org.uk/pkg/testing to PackMan’s sources should give you the Python package to install. Usual warnings apply! |
Tristan M. (2946) 1039 posts |
Did you have to butcher gcc8 too? I’m using it and had to fiddle it a lot including some odd issues (like armeabihf) to make it function. Sadly the means of interacting with development is archaic and somewhat prickly so I can’t do much about it, but I would like to know how you got on building with it? |
Chris Johns (8262) 242 posts |
This was just the latest release of GCC 4.7.4 (think it’s release 5?). I did think about trying 8 or 10 but decided there are probably more pressing python-related things to look at first. |
John Rickman (71) 645 posts |
Thanks for the Package Chris – works straight from the box. Haven’t done much testing yet but will try this evening. |
Stuart Mitchell (3034) 9 posts |
Hi there, RISC OS code newbie here, just messing around with Python and I have a question about something I just came across while attempting to understand how everything works in RISC OS land So, I loaded Python 3 to use the live interpreter, just to test that it was working on my setup (RPCEmu, latest release on Win10, using the ROD distribution (the prebuilt package that’s That was weird, so I tried again: I wrote the line as print(“hellow world”) and then backspaced to the errant w and retyped the remaining line, and got a syntax error. It appears that Does anyone know if this is an issue with Python, StrongED or the way I have it set up? I haven’t changed any of the initial parameters for any programs, simply loaded Python and gone |
John WILLIAMS (8368) 493 posts |
I suspect that you are in a TaskWindow. This is not the same as a direct command-line interpreter. Try re-entering the correct command, and it will probably work! |
Stuart Mitchell (3034) 9 posts |
Thanks John, I think you are right. So if I understand correctly, there isn’t a way to launch a direct command-line interpreter in RISC OS, like there is in Linux? |
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14