RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → Announcements →

Python toolbox library updated

Subscribe to Python toolbox library updated 3 posts, 3 voices

 
2 days ago
Avatar Chris Johns (8262) 231 posts

Those of you who attended the WROCC talk will be aware that the toolbox library for python has undergone a bit of an overhaul.

The reults of this are now available, and can be installed with pip in the usual way. You might need to tell pip you want to upgrade if you’ve been using 0.2.0.

A word of warning, things build for 0.2 will need a bit of fettling to use 1.0.1.

The Hyper example is on github (https://github.com/c-jo/riscos-toolbox) which should give you a good idea how to do stuff, given the lack of docs and howtos. Which are on the list of things to do!

 
18 hours ago
Avatar John Rickman (71) 493 posts

Hi Chris
Thanks for doing this. Are you going to update PIP on PackMan. It is currently showing:- Version 20.0.2-4

Meanwhile I used PIP to upgrade itself but am a bit puzzled by the warning.


*python3 -m pip install pip -U
Collecting pip
  Downloading pip-23.1.2-py3-none-any.whl (2.1 MB)

Installing collected packages: pip
Successfully installed pip-23-1-2
WARNING: You are using pip version 23-1-2; however, version 23.1.2 is available.
You should consider upgrading via the
‘SCSI::SSD….!Python3.Bin.python38 -m pip install —upgrade pip’
command.

 
14 hours ago
Avatar David Pitt (9872) 104 posts

Replicating the above I decided to verify the upgrade had happened.

*python3 -m pip --version
Traceback (most recent call last):
....
  File "ADFS::Titan4.$.Progm.Progm2.Python.!Python3.python38.lib.importlib.resources", line 61, in _normalize_path
    raise ValueError('{!r} must be only a file name'.format(path))
ValueError: 'cacert.pem' must be only a file name

I remembered this.

A bit of digging found instances of cacert.pem in !PythonSite.Python38.Site-Packages.pip._vendor.certifi.core/py which are not present in the previous version of that file in pip 20.0.2 .

A speculative search and replace of all 7 .pem‘s with /pem’s helped.

**python3 -m pip --version
pip 23.1.2 from ... !PythonSite.Python38.Site-Packages.pip (python 3.8)
*

Perhaps PackMan versions are better for RISC OS??

A bit later Reverted to pip 20.0.2 from PackMan.

Reply

To post replies, please first log in.

Forums → Announcements →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

Announce and discuss new hardware and software releases.

Voices

  • Chris Johns (8262)
  • John Rickman (71)
  • David Pitt (9872)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys