Installation help

Showing 1-16 of 16 messages
Installation help Nathan Stone 6/6/12 10:14 PM

I’ve been trying for some time to get agilo working on my server.  I have trac 0.12.3 running on centos 5, but when I install the agilo egg, the only things that show up as installed under the “plugin” section of trac are “AgiloLinks” and “AgiloHelpModule”. 

 

I’ve tried many different ways to get this to work.  I started out with the simplest trac install using the default python 2.4.3 and the agilo pro egg for python 2.4.  I also tried installing from source, installing python26 and installing from both source and egg.  I’ve tried every possible variation of installing trac and agilo I can think of, but every time I only have the two components available.

 

It seems like there must be something I’m missing.  If you have any ideas, I’d really appreciate the help!

 

Thanks!

Nate

Re: [Agilo for Trac] Installation help Stefano Rago 6/12/12 12:28 AM
Hi Nathan,
Can you please provide the [components] section of your trac.ini file?

Cheers

Stefano Rago
RE: [Agilo for Trac] Installation help Nathan Stone 6/12/12 8:52 AM

Hi Stefano,

 

[components]

agilo.* = enabled

 

Thanks!

 

From: ag...@googlegroups.com [mailto:ag...@googlegroups.com] On Behalf Of Stefano Rago
Sent: Tuesday, June 12, 2012 1:29 AM
To: ag...@googlegroups.com
Subject: Re: [Agilo for Trac] Installation help

--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum
 
You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.
 
To post to this group, send email to ag...@googlegroups.com
To unsubscribe from this group, send an email to
agilo+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/agilo

Re: [Agilo for Trac] Installation help Stefano Rago 6/13/12 1:36 AM
Hi Nathan,

On Jun 12, 2012, at 5:52 PM, Nathan Stone wrote:

Hi Stefano,
 
[components]
agilo.* = enabled
 
Thanks!


Do you see any error in the log files of your environment?

Cheers

Stefano Rago
Re: Installation help SteveRC1 6/14/12 1:24 PM
I used pip install from the extracted local copy of the source and it works great.  I had the same kind of issues working with the egg with python 2.4 on centos5

gzip -d agilo_source.tar.gz 
tar -xf agilo_source.tar
pip install agilo-0.9.8/
Unpacking ./agilo-0.9.8
 Running setup.py egg_info for package from file:///root/agilo-0.9.8
Requirement already satisfied (use --upgrade to upgrade): trac>=0.11,<0.13dev in /usr/lib/python2.4/site-packages (from agilo==0.9.8)
Requirement already satisfied (use --upgrade to upgrade): genshi>=0.5.1 in /usr/lib/python2.4/site-packages (from agilo==0.9.8)
Requirement already satisfied (use --upgrade to upgrade): simplejson in /usr/lib/python2.4/site-packages/simplejson-2.3.2-py2.4-linux-i686.egg (from agilo==0.9.8)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in /usr/lib/python2.4/site-packages (from trac>=0.11,<0.13dev->agilo==0.9.8)
Installing collected packages: agilo
 Running setup.py install for agilo
changing mode of build/scripts-2.4/agilo_svn_hook_commit.py from 644 to 755
changing mode of build/scripts-2.4/agilo_sqlite2pg.py from 644 to 755
changing mode of build/scripts-2.4/create_agilo_project.py from 644 to 755
changing mode of /usr/bin/agilo_svn_hook_commit.py to 755
changing mode of /usr/bin/create_agilo_project.py to 755
changing mode of /usr/bin/agilo_sqlite2pg.py to 755
Successfully installed agilo
Cleaning up...

HTH,

Steve
Re: [Agilo for Trac] Installation help Stefano Rago 8/17/12 1:22 AM
Hi Bernardo,

On Aug 13, 2012, at 10:12 PM, Bernardo Costa wrote:

I am also having problems with agilo open source and trac. But my platform is slightly different. I use trac version 0.11.5-1 in a centos 5.8 box. The simplejson version is 2.0.9-8.el5, which is available on the base centos repository. My agilo instalation was smooth: python setup.py clean && python setup.py build && python setup.py bdist_egg && sudo easy_install agilo-0.9.8-py2.4.egg.

Inside trac.ini I have these components enabled:
[components]
agiletrac.api.agiletracsystem = enabled
agiletrac.env.agiletracsetup = enabled
agiletrac.workflow.agileticketworkflow = enabled

But when I run trac-admin ... upgrade I have the following message:
Database is up to date, no upgrade necessary.

This is strange for me. Looking at trac url it seems nothing is changed.




Please make sure that agilo in in the python path when executing trac-admin.
You can make a quick test with this command
python -c "import agilo; print agilo"

Cheers

Stefano Rago
Re: Installation help Bernardo Costa 8/17/12 6:01 AM
Hi Stefano ! It looks like agilo plugin is correctly installed in python 2.4 (a centos 5.8 box). Isn't it the expected output ?

$ python -c "import agilo; print agilo"
<module 'agilo' from '/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/__init__.pyc'>
Re: [Agilo for Trac] Installation help Stefano Rago 8/20/12 1:49 AM
Hi Bernardo,

yes, this is the expected output.
What's the output of this command instead?

cat $(which trac-admin)

Cheers

Stefano

--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum
 
You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.
 
To post to this group, send email to ag...@googlegroups.com
To unsubscribe from this group, send an email to
agilo+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/agilo


Re: [Agilo for Trac] Installation help Bernardo Costa 8/20/12 4:45 AM
Here it is.

$ cat $(which trac-admin)
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Trac==0.11.5','console_scripts','trac-admin'
__requires__ = 'Trac==0.11.5'
import sys
from pkg_resources import load_entry_point

sys.exit(
   load_entry_point('Trac==0.11.5', 'console_scripts', 'trac-admin')()
)
Re: [Agilo for Trac] Installation help Stefano Rago 9/6/12 1:03 AM
Hi Bernardo,

On Aug 20, 2012, at 1:45 PM, Bernardo Costa wrote:

Here it is.

$ cat $(which trac-admin)
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Trac==0.11.5','console_scripts','trac-admin'
__requires__ = 'Trac==0.11.5'
import sys
from pkg_resources import load_entry_point

sys.exit(
   load_entry_point('Trac==0.11.5', 'console_scripts', 'trac-admin')()
)


Have you been able to fix the issue?
If not, can you please try to add this line to your trac-admin.sh 

import agilo; print agilo

right before the line

sys.exit(

and report the output?


Cheers



Stefano Rago
Re: [Agilo for Trac] Installation help Bernardo Costa 9/6/12 5:12 AM
This is the output I got from the console when I try to make an
upgrade of a agilo enabled project. It looks like a problem on
creating a table.

<module 'agilo' from
'/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/__init__.pyc'>
Traceback (most recent call last):
  File "/tmp/sdb1/trac-admin", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
1314, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
133, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib64/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
1154, in do_upgrade
    self.__env.upgrade(backup=do_backup)
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 457, in upgrade
    participant.upgrade_environment(db)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/db/plugin_env_setup.py",
line 77, in upgrade_environment
    return self.environment_created()
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/init.py",
line 142, in environment_created
    initialize_config(self.env, __CONFIG_PROPERTIES__)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/config.py",
line 724, in initialize_config
    config = AgiloConfig(env)
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 111, in maybe_init
    init(self)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/config.py",
line 439, in __init__
    self.reload(init=True)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/config.py",
line 674, in reload
    self.notify_other_components_of_config_change()
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/config.py",
line 630, in notify_other_components_of_config_change
    for listener in self.config_change_listeners:
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 70, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 207, in __getitem__
    component = cls(self)
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 111, in maybe_init
    init(self)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/permissions.py",
line 59, in __init__
    self.config_reloaded()
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/permissions.py",
line 67, in config_reloaded
    self.get_actions_for_custom_types()
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/permissions.py",
line 71, in get_actions_for_custom_types
    plain_name = str('CREATE_' + typename.upper())
UnicodeEncodeError: 'ascii' codec can't encode characters in position
12-13: ordinal not in range(128)

After getting this error, I thought the problem might be related to
having two python instructions in the same line. So I splited "import
agilo; print agilo" in two lines and then tried to do the upgrade
again. Now the error message is another but still something elated to
database structure. See the attached sql file to see how the database
schema is now. I am using postgresql as database.

<module 'agilo' from
'/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/__init__.pyc'>
Traceback (most recent call last):
  File "/tmp/sdb1/trac-admin", line 8, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
1314, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
133, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib64/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.4/site-packages/trac/admin/console.py", line
1154, in do_upgrade
    self.__env.upgrade(backup=do_backup)
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 457, in upgrade
    participant.upgrade_environment(db)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/db/plugin_env_setup.py",
line 77, in upgrade_environment
    return self.environment_created()
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/init.py",
line 124, in environment_created
    create_table(self.env, table)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/db.py",
line 143, in create_table
    cursor.execute(statement)
  File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 60, in execute
    return self.cursor.execute(sql)
  File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 60, in execute
    return self.cursor.execute(sql)
psycopg2.ProgrammingError: relation "agilo_link" already exists
Re: [Agilo for Trac] Installation help Stefano Rago 9/25/12 7:32 AM
Hi Bernardo,

can you please try what's suggested on this thread and see if that fixes your problem?

https://groups.google.com/d/topic/agilo/txxMFrhInkg/discussion
Cheers

Stefano
> <tracdb.sql>

Re: [Agilo for Trac] Installation help Bernardo Costa 9/28/12 5:48 AM
Hi Stefano, at first my simplesjon version is
python-simplejson-2.0.9-8.el5 but my trac version is
trac-0.11.5-1.el5.rf. Anyway, I tried the upgrade to
trac-0.12-2.el5.rf and when I did this, all my trac projects started
asking for an upgrade. In the project, I have agilo configured I tried
to do the upgrade but it fails with this error message:

# trac-admin . upgrade
ProgrammingError: relation "agilo_link" already exists

Re: [Agilo for Trac] Installation help Stefano Rago 10/1/12 12:45 AM
Hi Bernardo,

On Sep 28, 2012, at 2:48 PM, Bernardo Costa <bernard...@gmail.com> wrote:

Hi Stefano, at first my simplesjon version is
python-simplejson-2.0.9-8.el5 but my trac version is
trac-0.11.5-1.el5.rf. Anyway, I tried the upgrade to
trac-0.12-2.el5.rf and when I did this, all my trac projects started
asking for an upgrade. In the project, I have agilo configured I tried
to do the upgrade but it fails with this error message:

# trac-admin . upgrade
ProgrammingError: relation "agilo_link" already exists


This is probably because the previous upgrade failed and now that project's database is in an inconsistent state.
Do you have a backup of that database prior to the agilo installation?
If so, please restore it and try repeating the upgrade.

Cheers

Stefano Rago

Re: [Agilo for Trac] Installation help Bernardo Costa 10/4/12 7:10 AM
Hi Stefano, well, I reset the environment now with trac-0.12.2 and the
same simplesjon (python-simplejson-2.0.9-8.el5) getting back the prior
version of the database. So I had to do a trac upgrade. It failed with
a unicodeencodeerror (?). Don't know what to say/write.

$ sudo -u apache trac-admin help
trac-admin - The Trac Administration Console 0.12

Usage: trac-admin </path/to/projenv> [command [subcommand] [option ...]]

Invoking trac-admin without command starts interactive mode.

help     Show documentation
initenv  Create and initialize a new environment

$ sudo -u apache trac-admin . upgrade
UnicodeEncodeError: 'ascii' codec can't encode characters in position
12-13: ordinal not in range(128)

$ echo $?
2

$ echo $LANG
pt_BR.utf8

Accessing trac url of this project gives me the same error:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 377,
in send_error
    'text/html')
  File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line
725, in render_template
    req.chrome[type_].append(
  File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 195,
in __getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line
488, in prepare_request
    for contributor in self.navigation_contributors:
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 70, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 207, in __getitem__
    component = cls(self)
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 111, in maybe_init
    init(self)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/ticket/web_ui.py",
line 63, in __init__
    if AgiloConfig(self.env).is_agilo_enabled:
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 111, in maybe_init
    init(self)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/config.py",
line 439, in __init__
    self.reload(init=True)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/utils/config.py",
line 662, in reload
    fields = AgiloTicketSystem(self.env).get_ticket_fields(new_aliases=self.ticket_configuration.aliases_per_trac_type_name)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/ticket/api.py",
line 344, in get_ticket_fields
    return self._get_ticket_fields_with_deep_copy(t_type)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.8-py2.4.egg/agilo/ticket/api.py",
line 369, in _get_ticket_fields_with_deep_copy
    self._fields[ticket_type] = \
  File "/usr/lib/python2.4/site-packages/trac/ticket/api.py", line
246, in _get_ticket_fields
    options = [val.name for val in cls.select(self.env, db=db)]
  File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line
862, in select
    version.time = time and datetime.fromtimestamp(int(time), utc) or None
ValueError: year is out of range
Re: [Agilo for Trac] Installation help Stefano Rago 10/8/12 12:39 AM
Hi Bernardo,

what if you create a new environment from scratch? Does that work?

Cheers

Stefano