Hi Mike, Are you using pip in the OS or in a virtualenv? You should use it in a virtualenv to prevent packages from polluting your OS.
Something like this: $ cd $ python3 -m venv tracinst $ source tracinst/bin/activate (trac)$ pip install --upgrade pip (trac)$ pip install https:// download.edgewall.org /trac/Trac-latest-dev.tar.gz (trac)$ pip install babel docutils pygments textile psycopg2-binary (remove the spaces in the URL) HTH /tony -- Tony Albers - SCSA, SCNA, EMCIE, EMCBA, RHCSA Transition Manager - FIT/TMS Delivery Team - Signalling Integrations Banedanmark, Signalling Systems Carsten Niebuhrs Gade 43, 1577 Copenhagen V ________________________________________ From: [email protected] <[email protected]> on behalf of Mike Dewhirst <[email protected]> Sent: 26 June 2023 08:28 To: Trac Users Subject: [Trac] ModuleNotFoundError: No module named 'trac' CAUTION: This email originated from outside the organization. Using do-release-upgrade, I upgraded Ubuntu from 2020.04 LTS to 2022.04 last night to discover Trac has unexpectedly stopped working under Python 3. We are now running on Python 3.10 and PostgreSQL 14. Previously it was Py 3.8 and PostgreSQL 12 which seemed to suit Trac very well over the last couple of years I tried pip install trac==1.5.4 but got "No matching distribution..." Pip can only see 1.4.x and no 1.5.x releases. How can I get Trac working again? Many thanks Mike -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/f3b6152b-5172-da05-7a92-251a856387dc%40dewhirst.com.au<https://groups.google.com/d/msgid/trac-users/f3b6152b-5172-da05-7a92-251a856387dc%40dewhirst.com.au?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/VI1PR05MB6032BC2D2F01FCEB554DBE0ABD26A%40VI1PR05MB6032.eurprd05.prod.outlook.com.
