[TRAC] Installation

Problems with packages? Post here, using [tags] of the package name.

[TRAC] Installation

Postby apowell656 » Thu Mar 13, 2014 3:12 pm

I have followed the guides from https://wiki.archlinux.org/index.php/Trac and http://trac.edgewall.org/wiki/TracInstall (using http://trac.edgewall.org/wiki/MySqlDb for getting the right connection etc.).

Issues required packages are not available, I am assuming they are outdated, and when I have used what is workable from the Arch guide I receive the following error:

$this->bbcode_second_pass_code('', 'Creating and Initializing Project
Initenv for '/mnt/rpo/trac/projects' failed.
Failed to create environment.
Cannot load Python bindings for MySQL
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/trac/admin/console.py", line 456, in do_initenv
options=options)
File "/usr/lib/python2.7/site-packages/trac/core.py", line 124, in __call__
self.__init__(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/trac/env.py", line 281, in __init__
self.create(options)
File "/usr/lib/python2.7/site-packages/trac/env.py", line 584, in create
DatabaseManager(self).init_db()
File "/usr/lib/python2.7/site-packages/trac/db/api.py", line 248, in init_db
connector, args = self.get_connector()
File "/usr/lib/python2.7/site-packages/trac/db/api.py", line 312, in get_connector
raise TracError(connector.error)
TracError: Cannot load Python bindings for MySQL')

Has anyone successfully installed trac and if so what steps did you take.

Thanks in advance.

Andre
apowell656
 
Posts: 41
Joined: Fri Jan 25, 2013 1:24 am

Re: [TRAC] Installation

Postby WarheadsSE » Thu Mar 13, 2014 3:17 pm

Is that Python2?

mysql-python installed?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [TRAC] Installation

Postby apowell656 » Thu Mar 13, 2014 3:29 pm

Thanks "mysql-python installed?" worked.
apowell656
 
Posts: 41
Joined: Fri Jan 25, 2013 1:24 am

Re: [TRAC] Installation

Postby WarheadsSE » Thu Mar 13, 2014 3:42 pm

Solution apparently is
$this->bbcode_second_pass_code('', '
pacman -S mysql-python
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [TRAC] Installation

Postby apowell656 » Thu Mar 13, 2014 4:39 pm

That is correct:

$this->bbcode_second_pass_code('', 'pacman -S trac subversion python2-psycopg2 mysql-python')

I still have a few more steps to go to make this work the way that I need it to:

- Configure authentication
- Set the configuration to allow for multiple projects according to note http://trac-hacks.org/wiki/SimpleMultiProjectPlugin
- Setup for use with git
- Starting up correctly on system boot up

I plan on documenting the results just in case anyone else needs help.
apowell656
 
Posts: 41
Joined: Fri Jan 25, 2013 1:24 am

Re: [TRAC] Installation

Postby apowell656 » Thu Mar 13, 2014 8:07 pm

Ok I installed mod_wsgi2 to run with Python2, but now I cannot start Apache. I followed the steps from https://wiki.archlinux.org/index.php/mod_wsgi and can only get Apache to start without the module being loaded. There is nothing on Google suggesting a fix. Looks like I am back to square one.

Andre
apowell656
 
Posts: 41
Joined: Fri Jan 25, 2013 1:24 am

Re: [TRAC] Installation

Postby WarheadsSE » Thu Mar 13, 2014 8:26 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Packages

Who is online

Users browsing this forum: Google [Bot] and 3 guests