New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #19218 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

trac

Reported by: takeshi@… Owned by: dluke@…
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

bsddb.diff (1.2 KB) - added by takeshi@… 5 years ago.
hashlib.diff (991 bytes) - added by takeshi@… 5 years ago.
sqlite3.diff (1.9 KB) - added by takeshi@… 5 years ago.
trac.diff (2.2 KB) - added by takeshi@… 5 years ago.
subversion-bindings.diff (2.4 KB) - added by takeshi@… 5 years ago.

Change History

Changed 5 years ago by takeshi@…

Changed 5 years ago by takeshi@…

Changed 5 years ago by takeshi@…

comment:1 Changed 5 years ago by dluke@…

  • Status changed from new to assigned
  • Owner changed from macports-tickets@… to dluke@…

comment:2 Changed 5 years ago by blb@…

  • Port set to trac subversion-python26bindings

You shouldn't need the bsddb, hashlib, or sqlite3 modules for python26 (they are integrated into it).

Changed 5 years ago by takeshi@…

comment:3 Changed 5 years ago by takeshi@…

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 5 years ago by 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 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 5 years ago by takeshi@…

comment:5 in reply to: ↑ 4 Changed 5 years ago by dluke@…

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 5 years ago by dluke@…

  • Status changed from assigned to closed
  • Resolution set to fixed

The trac port has been updated to use python26 in r49378

comment:7 Changed 5 years ago by takeshi@…

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 5 years ago by dluke@…

Are you using freebsd? I don't see this problem with trac on Mac OS X 10.5.6

comment:9 Changed 5 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 5 years ago by takeshi@…

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 5 years ago by dluke@…

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.

comment:12 Changed 5 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.