#19218 closed enhancement (fixed)
trac
Reported by: | tenomoto (Takeshi Enomoto) | Owned by: | danielluke (Daniel J. Luke) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | ||
Port: | trac subversion-python26bindings |
Description
trac with python25 has an enconding problem (X-MAC-JAPANESE), which has been fixed with python26 and later. So I modified Portfiles to make trac work with python26.
Attachments (5)
Change History (17)
Changed 16 years ago by tenomoto (Takeshi Enomoto)
Attachment: | bsddb.diff added |
---|
Changed 16 years ago by tenomoto (Takeshi Enomoto)
Attachment: | hashlib.diff added |
---|
Changed 16 years ago by tenomoto (Takeshi Enomoto)
Attachment: | sqlite3.diff added |
---|
comment:1 Changed 16 years ago by danielluke (Daniel J. Luke)
Owner: | changed from macports-tickets@… to dluke@… |
---|---|
Status: | new → assigned |
comment:2 Changed 16 years ago by blb@…
Port: | trac subversion-python26bindings added |
---|
Changed 16 years ago by tenomoto (Takeshi Enomoto)
comment:3 Changed 16 years ago by tenomoto (Takeshi Enomoto)
I was able to run trac successfully without these modules. I wrote a python26 variant to be unsuccessful. I was unable to use if {[variant_isset python26]} with PortGroup.
comment:4 follow-up: 5 Changed 16 years ago by tenomoto (Takeshi Enomoto)
In fact trac does not work with subversion. Perhaps svn-python.pth should be installed at ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages rather than ${prefix}/local/lib/python2.6/site-packages?
Now trac finds the subversion bindings but aborts with the following message:
Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
Changed 16 years ago by tenomoto (Takeshi Enomoto)
Attachment: | subversion-bindings.diff added |
---|
comment:5 Changed 16 years ago by danielluke (Daniel J. Luke)
Replying to takeshi@…:
In fact trac does not work with subversion. Perhaps svn-python.pth should be installed at ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
The port needs to be updated to ask python25 where to put the .pth file (since macports allows the framework path to be configurable).
rather than ${prefix}/local/lib/python2.6/site-packages?
Now trac finds the subversion bindings but aborts with the following message:
Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
I believe this is because of #19223
comment:6 Changed 16 years ago by danielluke (Daniel J. Luke)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The trac port has been updated to use python26 in r49378
comment:7 Changed 16 years ago by tenomoto (Takeshi Enomoto)
Thank you. Now I am able to run tracd. Now I get the following message.
Can't synchronize with the repository (Couldn't open Subversion repository /Library/WebServer/repository: SubversionException: ("Couldn't perform atomic initialization", 200029))
This problem is reported at Trac's trac and set wontfix. Cf. Trac
comment:8 Changed 16 years ago by danielluke (Daniel J. Luke)
Are you using freebsd? I don't see this problem with trac on Mac OS X 10.5.6
comment:9 Changed 16 years ago by blb@…
What action led to that message? My quick bit of testing with trac seems to be okay;
$ port installed python26 subversion subversion-python26bindings trac The following ports are currently installed: python26 @2.6.1_2 (active) subversion @1.6.0_1+mod_dav_svn+tools (active) subversion-python26bindings @1.6.0_0 (active) trac @0.11.4_1+postgres (active)
comment:10 Changed 16 years ago by tenomoto (Takeshi Enomoto)
I am running Mac OS X 10.5.6 on a MacBook. I was using subverion and trac w/o variants. I tested subversion +mod_dav_svn+tools with trac but I have a problem with tracd so the mod_dav_svn should not affect anythin. Since I get error message of Sqlite so I should test postgres. I have ever used sqlite and mysql but postgres. I have to learn postgres first.
comment:11 Changed 16 years ago by danielluke (Daniel J. Luke)
I tested tracd with sqlite on 10.5.6 and didn't see that error message. I'm not sure what steps are needed to replicate the problem.
The bug you linked to seemed to indicate that subversion 1.6.1 should fix the problem, and 1.6.1 was just released (I hopefully will have the ports updated later today), so maybe that will fix it for you.
You shouldn't need the bsddb, hashlib, or sqlite3 modules for python26 (they are integrated into it).