Ticket #7017 (closed defect: fixed)

Opened 3 years ago

Last modified 1 year ago

Can not see table headers - ver 0.12

Reported by: devexchage@gmail.com Assigned to: walnut
Priority: normal Component: ChildTicketsPlugin
Severity: normal Keywords: table header setuptools
Cc: Trac Release: 0.11

Description (Last modified by rjollos)

I have installed plugin for 0.12 version. I have added the following configuration:

[ticket-custom]
parent = text
parent.format = wiki
parent.label = Parent ID
[childtickets]
parent.bug.allow_child_tickets = true
parent.bug.default_child_type = bug
parent.bug.inherit_milestone = false
parent.bug.table_headers = type, priority, owner, summary, milestone

I have ticket type - bug. When I am adding ticket I can fill in Parent ID field with corresponding value. The problem is that I can not see header table in the parent ticket.

Attachments

Error.jpg (78.8 kB) - added by devexchage@gmail.com on 04/21/10 22:23:36.

Change History

04/21/10 22:23:36 changed by devexchage@gmail.com

  • attachment Error.jpg added.

04/21/10 22:45:21 changed by walnut

  • status changed from new to assigned.

I've not had time to look at the plugin under Trac.0.12. I will try and take a look this weekend...

In the meantime, you might want to try itota's SubticketsPlugin plugin - it is tagged with '0.12' so might work better....

Will get back to you when I get chance to take a look.

04/21/10 23:33:38 changed by walnut

I've just taken a look at the jpg you attached. It looks to me as if the plugin itself is not correctly installed, can you check your trac.ini for the following section:

[components]
childtickets.* = enabled
childtickets.childtickets.tracchildticketsmodule = enabled

and that the plugin itself (Tracchildtickets-1.0.1-py2.6.egg) has been copied to the plugins directory of your trac repository.

Also, the [ticket-custom] section of the trac.ini file must have the following settings (ie. the link to the parent ticket comes from the 'parent.format = wiki' option!):

[ticket-custom]
parent = text
parent.format = wiki
parent.label = Parent ID

I have not used trac 0.12 myself yet, but I assume the 'Admin' tab still allows you to load, activate and deactivate plugins - is it correctly activated there?

I have also noticed that I must usually restart apache following the plugin install to get trac to see the changes - perhaps this helps too?

(follow-up: ↓ 6 ) 04/22/10 08:41:18 changed by devexchage@gmail.com

I have used SubticketsPlugin plugin. But I wanted to try your one. It seems that yours provide more required information. The thing is that we are using py2.4. And all other plugins work fine with it. Maybe it can be the problem?

04/23/10 23:17:58 changed by walnut

In the latest revision of the plugin (changeset:7883), I have removed use of ternary operator which was only introduced at Python 2.5. This should make the plugin backwards compatible with Python 2.4.

However, I do not have a running instance of trac 0.12 yet, so I cannot say for certain whether this fixes the issue for trac 0.12.

Please let me know how it works....

04/28/10 11:20:39 changed by anonymous

@ devexchage :

Have you had chance to tet the changes yet? Can you let me know if it works in your environment...

(in reply to: ↑ 3 ) 05/06/10 09:48:45 changed by anonymous

Replying to devexchage@gmail.com:

I have used SubticketsPlugin plugin. But I wanted to try your one. It seems that yours provide more required information. The thing is that we are using py2.4. And all other plugins work fine with it. Maybe it can be the problem?

Hi - does this now work OK with Python 2.4? Are you still getting problems?

(follow-up: ↓ 8 ) 06/24/10 15:04:46 changed by yoheeb@yahoo.com

I have this "same" issue with 0.12. Do you happen to be running python 2.6? that is what gave me the issue. The import aborts looking for python >=2.5 for some reason:

2010-06-24 07:58:39,937 Trac[loader] DEBUG: Skipping "Tracchildtickets 1.0.2": ("DistributionNotFound: Python>=2.5" not found)
2010-06-24 07:58:39,937 Trac[loader] DEBUG: Loading childtickets from ...\python26\lib\site-packages\tracchildtickets-1.0.2-py2.6.egg
2010-06-24 07:58:39,953 Trac[loader] DEBUG: Skipping "childtickets = childtickets": ("DistributionNotFound: Python>=2.5" not found)

I have seen this before, but I forget where/why.

(in reply to: ↑ 7 ) 06/24/10 18:07:38 changed by anonymous

Replying to yoheeb@yahoo.com:

I have this "same" issue with 0.12. Do you happen to be running python 2.6? that is what gave me the issue. The import aborts looking for python >=2.5 for some reason: {{{ 2010-06-24 07:58:39,937 Trac[loader] DEBUG: Skipping "Tracchildtickets 1.0.2": ("DistributionNotFound?: Python>=2.5" not found) 2010-06-24 07:58:39,937 Trac[loader] DEBUG: Loading childtickets from ...\python26\lib\site-packages\tracchildtickets-1.0.2-py2.6.egg 2010-06-24 07:58:39,953 Trac[loader] DEBUG: Skipping "childtickets = childtickets": ("DistributionNotFound?: Python>=2.5" not found) }}} I have seen this before, but I forget where/why.

This is an issue with setuptools 0.6rc11 with the required python>=2.5 option. (for me, might be for you as well)

I believe there is a patch out there/the trunk version of setup tools would fix. I personally was able to resolve this by removing that part from the setup.py file and verify the plugin does work in 0.12 as is (works good too!) to fix:

try upgrading setup tools to the latest version:

easy_install setuptools==dev06 or if you must go directly to the trunk: http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06

finally, you could just modify setup to skip the python version check:

setup.py:

--- setup.py Thu Jun 24 10:46:11 2010
+++ setup_orig.py Fri Apr 23 21:15:20 2010
@@ -12,7 +12,7 @@
     description = 'Provides support for pseudo child-tickets and a visual reference to these within a parent ticket.',
     keywords = 'trac plugins ticket dependency childtickets',
     url = 'http://trac-hacks.org/wiki/ChildTicketsPlugin',
-    install_requires = ['Trac >= 0.11', 'Genshi >= 0.5'],
+    install_requires = ['Trac>=0.11', 'Genshi>=0.5', 'Python>=2.5'],
     entry_points = """
         [trac.plugins]
         childtickets = childtickets

(follow-up: ↓ 17 ) 09/11/10 22:05:36 changed by anonymous

  • status changed from assigned to closed.
  • release changed from 0.12 to 0.11.
  • resolution set to fixed.

As recommended in the last comment, I have replaced the dependency on Python 2.5 with a minimum dependency on Python 2.4 in [8777]. This should allow it to compile with Python 2.4.

(follow-up: ↓ 12 ) 09/24/10 10:30:17 changed by chitan@mail.ru

Hi i have same problem I have trac 0.11.7 and Python 2.5 How can i fix this problem?

My trac.ini

[components]
childtickets.* = enabled
childtickets.childtickets.tracchildticketsmodule = enabled

parent = text
parent.format = wiki
parent.label = Parent ID

[childtickets]

# 'enhancements' : child tickets will typically be bug-fix tickets with the same milestone.
parent.enhancement.allow_child_tickets = true
parent.enhancement.table_headers = type, status, owner, summary
parent.enhancement.default_child_type = bug-fix
parent.enhancement.restrict_child_type = bug-fix, task
parent.enhancement.inherit_milestone = true

# 'bug-report' : child tickets will typically be bug-fix
parent.bug-report.allow_child_tickets = true
parent.bug-report.default_child_type = bug-fix
parent.bug-report.table_headers = type, priority, owner, summary, milestone
parent.bug-report.inherit_milestone = true

# 'issue' : child tickets will typically be task tickets with no default milestone.
parent.issue.allow_child_tickets = true
parent.issue.default_child_type = task
parent.issue.table_headers = type, status, owner, summary, milestone
parent.issue.inherit_milestone = false

# 'bug-fix' : child tickets are not allowed.
parent.bug-fix.allow_child_tickets = true

# 'task' : child tickets are not allowed.
parent.task.allow_child_tickets = true

(follow-up: ↓ 13 ) 09/27/10 10:59:43 changed by anonymous

  • status changed from closed to reopened.
  • resolution deleted.

(in reply to: ↑ 10 ) 09/27/10 15:00:09 changed by walnut

Replying to chitan@mail.ru:

Hi i have same problem I have trac 0.11.7 and Python 2.5 How can i fix this problem? My trac.ini {{{ [components] childtickets.* = enabled childtickets.childtickets.tracchildticketsmodule = enabled parent = text parent.format = wiki parent.label = Parent ID [childtickets] # 'enhancements' : child tickets will typically be bug-fix tickets with the same milestone. parent.enhancement.allow_child_tickets = true parent.enhancement.table_headers = type, status, owner, summary parent.enhancement.default_child_type = bug-fix parent.enhancement.restrict_child_type = bug-fix, task parent.enhancement.inherit_milestone = true # 'bug-report' : child tickets will typically be bug-fix parent.bug-report.allow_child_tickets = true parent.bug-report.default_child_type = bug-fix parent.bug-report.table_headers = type, priority, owner, summary, milestone parent.bug-report.inherit_milestone = true # 'issue' : child tickets will typically be task tickets with no default milestone. parent.issue.allow_child_tickets = true parent.issue.default_child_type = task parent.issue.table_headers = type, status, owner, summary, milestone parent.issue.inherit_milestone = false # 'bug-fix' : child tickets are not allowed. parent.bug-fix.allow_child_tickets = true # 'task' : child tickets are not allowed. parent.task.allow_child_tickets = true }}}

Hi 'chitan@mail.ru'

Your trac.ini file is missing the following section header for the 'ticket-custom' parent ticket number. (See : http://trac.edgewall.org/wiki/TracTicketsCustomFields). It should look like this:

[ticket-custom]
parent = text
parent.format = wiki
parent.label = Parent ID

If that doesn't help, consider the following points....

You also need to ensure that the ticket types listed in the configuration section (parent.<type>.xxx) are also defined for your environment ('Admin'->'Ticket Types'->'Add Ticket Types'). (If you are using the 'default' ticket types, try creating a ticket of type 'enhancement' and see whether the child ticket section appears then...)

If you are still having problems, set the debug level to 'DEBUG' in trac.ini and check the plugin is being loaded. You should see a line that says:

2010-09-27 14:30:42,892 Trac[loader] DEBUG: Adding plugin Tracchildtickets 1.0.3 from .../plugins/Tracchildtickets-1.0.3-py2.6.egg

If you see that it is being loaded and still don't see anything, then send me following info:

  • list of other plugins installed
  • list of ticket types defined in your environment
  • output from the trac log file with 'log_level' set to 'DEBUG'

Finally, have you or anyone else made change to the 'ticket.html' file that defines the ticket itself. This plugin uses a stream filter to modify this on the fly - obviously this won't work if the ticket.html file has been modified somehow.....

Speak soon. Regards Mark

(in reply to: ↑ 11 ) 09/27/10 15:01:55 changed by walnut

Replying to anonymous:

Hi devexchage@gmail.com

Are you still having problems yourself with this plugin or is it working for you now?

If it is still not working, could you also send me output from your trac log file (with log_level set to 'debug')

Thanks

(follow-up: ↓ 15 ) 09/27/10 18:15:47 changed by rjollos

  • description changed.

(in reply to: ↑ 14 ) 09/29/10 22:02:17 changed by walnut

Replying to rjollos:

Hi,

Can you try the following for me.... in the 'trac.ini' file, set the log_level to 'debug' and output to a suitable file:

[logging]
log_file = /tmp/trac.log
log_level = DEBUG
log_type = file

Can you confirm that the plugin is even being loaded, I see the following line in my 'trac.log' file with the above settings:

2010-09-29 21:53:13,348 Trac[env] INFO: -------------------------------- environment startup [Trac 0.12] --------------------------------
2010-09-29 21:53:13,413 Trac[loader] DEBUG: Adding plugin Tracchildtickets 1.0.3 from /xxx/trac/testenv/plugins/Tracchildtickets-1.0.3-py2.6.egg

If you do see this then the plugin is obviously being loaded and the problem lies somewhere else! Could you include a list of other plugins that are installed.

Thanks

09/29/10 22:48:42 changed by anonymous

Just another thought....

I always install the plugins locally in every environment. If you do this, then (I believe) you do not need to specify the plugin in the '[components]' section of 'trac.ini'.

If you have the plugin in a global plugins directory ('[inherit]' section of the 'trac.ini'), then you need to explicitly load the plugin:

[components]
childtickets.* = enabled
childtickets.childtickets.tracchildticketsmodule = enabled

(in reply to: ↑ 9 ; follow-up: ↓ 18 ) 11/01/10 16:47:53 changed by anonymous

Replying to anonymous:

As recommended in the last comment, I have replaced the dependency on Python 2.5 with a minimum dependency on Python 2.4 in [8777]. This should allow it to compile with Python 2.4.

This change did not fix it. I'm not sure why, since it seems fine to me. But, I just tried to install this on py2.4 and got this error:

Trac[loader] DEBUG: Skipping "Tracchildtickets 1.0.5": ("DistributionNotFound: Python>=2.4" not found)

I fixed it by removing the python check altogether as suggested in comment 8

(in reply to: ↑ 17 ) 11/06/10 21:18:56 changed by anonymous

Replying to anonymous:

I fixed it by removing the python check altogether as suggested in comment 8

Do you think the problem was with the setuptools as described in comment 8 ...??

02/12/11 09:22:09 changed by anonymous

  • status changed from reopened to closed.
  • resolution set to fixed.

I see there has been no replies or further comments to this issue for some time now - I assume issues have been resolved - so I shall close the ticket. If this is still a live issue please reopen with further info as requested above (comment:15)

05/31/12 02:48:27 changed by rjollos

  • keywords changed from table header to table header setuptools.

Add/Change #7017 (Can not see table headers - ver 0.12)




Change Properties
Action