Error is occurring on the command line when trying to upgrade the database, 
after enabling Agilo plug-in in trac.ini (agilo.* = enabled). Trac is 
installed in a virtualenv. After a new project is created, Agilo 
installation requires adding to trac.ini. Agilo's docs state only to add 
"agilo.* = enabled". Adding only this line and running upgrade results in 
the output: "Database is up to date, no upgrade necessary." This is invalid 
because elsewhere it is stated that this command ought to produce updates 
to the database. However, on trac installation for plug-ins, it states to 
add plug-ins under a section titled "[component]". Adding this section to 
trac.ini, then adding "agilo.* = enabled" below this, results in the error 
below:

$ uname -a
> Linux localhost.localdomain 4.14.14-200.fc26.x86_64 #1 SMP Fri Jan 19 
> 13:27:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ trac-admin /home/user/Development/TracEnv/TracProject/ upgrade
> The upgrade failed. Please fix the issue and try again.
> AttributeError: 'Environment' object has no attribute 'get_db_cnx'

 

On Tuesday, February 20, 2018 at 1:22:39 AM UTC-5, RjOllos wrote:
>
> Let's start over. Where did you see the error "AttributeError: 
> 'Environment' object has no attribute 'get_db_cnx'"? If you saw it on page 
> while navigating Trac, please send a screen capture.
>
> - Ryan
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to