Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not install with trac 1.6-2~bpo12+1 (debian stable package) #37

Open
dimonic opened this issue Jul 22, 2024 · 4 comments
Open

Does not install with trac 1.6-2~bpo12+1 (debian stable package) #37

dimonic opened this issue Jul 22, 2024 · 4 comments

Comments

@dimonic
Copy link

dimonic commented Jul 22, 2024

Using the current stable trac for debian, none of the installation methods results in a working (or detected) subtickets package. No database upgrade occurs.

@dimonic
Copy link
Author

dimonic commented Jul 24, 2024

Using postgres, this may be something to do with:
2024-07-24 13:18:01,993 Trac[env] INFO: -------------------------------- environment startup [Trac 1.6] -------------------------------- 2024-07-24 13:18:02,211 Trac[loader] ERROR: Skipping "tracsubtickets.api = tracsubtickets.api": ModuleNotFoundError: No module named 'db_default' 2024-07-24 13:18:02,214 Trac[loader] ERROR: Skipping "tracsubtickets.web_ui = tracsubtickets.web_ui": ImportError: cannot import name 'ITemplateStreamFilter' from 'trac.web.api' (/usr/lib/python3/dist-packages/trac/web/api.py)

@hasienda
Copy link

hasienda commented Jul 24, 2024

Right, no surprise since ITemplateStreamFilter is not existing anymore in Trac 1.6.

Generic informationen is available for replacing that https://trac.edgewall.org/wiki/TracDev/PortingFromGenshiToJinja#ReplacingITemplateStreamFilter methods by equal functionality. It means accounting for the switch from Genshi to Jinja2 in serverside HTML generation. Details depend a lot on plugin specific ways and extent of native Trac page modifications for display of and interaction with plugin-specific content.

@dimonic
Copy link
Author

dimonic commented Jul 24, 2024

I managed to fix the core issue (db_default import) by adding "from ." to comply with python3 directory stuff. I could submit that as a git commit.

@snev52
Copy link

snev52 commented Aug 5, 2024

I am also interested in a solution. Can you please post details on the fix or submit it? Thank you.

Edit: The code from pull-request #34 worked for me with trac 1.6 on Ubuntu 24.04 with subversion / postgres. (#36 had issues, I think with postgres database)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants