ModuleNotFoundError: No module named 'trac'

11 views
Skip to first unread message

Mike Dewhirst

unread,
Jun 26, 2023, 2:28:46 AM6/26/23
to Trac Users
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


Mike Dewhirst

unread,
Jun 26, 2023, 2:41:33 AM6/26/23
to trac-...@googlegroups.com
Sorry to bother you ... I found https://download.edgewall.org/trac/Trac-latest-dev.tar.gz and everything is now working again.

Cheers

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 trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/f3b6152b-5172-da05-7a92-251a856387dc%40dewhirst.com.au.


-- 
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Your
email software can handle signing.
OpenPGP_signature

Tony Brian Albers (XTOAL)

unread,
Jun 26, 2023, 2:42:09 AM6/26/23
to Trac Users
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: trac-...@googlegroups.com <trac-...@googlegroups.com> on behalf of Mike Dewhirst <mi...@dewhirst.com.au>
Sent: 26 June 2023 08:28
To: Trac Users
Subject: [Trac] ModuleNotFoundError: No module named 'trac'

CAUTION: This email originated from outside the organization.
--
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 trac-users+...@googlegroups.com<mailto:trac-users+...@googlegroups.com>.
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>.

Mike Dewhirst

unread,
Jun 26, 2023, 2:47:56 AM6/26/23
to trac-...@googlegroups.com
Many thanks Tony ...

Mike
OpenPGP_signature

Markus Rosjat

unread,
Jun 26, 2023, 3:43:35 AM6/26/23
to trac-...@googlegroups.com
hey mike,

if you are still looking for 1.5.4  there isn't a pypi package and you need to go to the subversion repo from edgewall to get the version. 


or just go to trunk for the latest https://svn.edgewall.org/repos/trac/trunk

you need to install subversion for this and then you might try to pip install it like so 


cheers

Markus

To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/901628af-9b1e-9461-37c7-386e753390f7%40dewhirst.com.au.

Mike Dewhirst

unread,
Jun 26, 2023, 4:36:57 AM6/26/23
to trac-...@googlegroups.com
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages