Modify

Opened 2 years ago

Closed 2 years ago

#10064 closed defect (fixed)

Plug-in Does Not Install

Reported by: andy.flynavy@… Owned by: walnut
Priority: high Component: ChildTicketsPlugin
Severity: blocker Keywords: setuptools
Cc: rjollos Trac Release: 0.12

Description

Using Trac 0.12.3, Python 2.7 served via Apache on a PostgreSQL back-end. Edited trac.ini as per plugin instructions. When I install the python egg, the plugin does not show up on the admin panel. The child tickets section does not show up on any of my existing tickets. No errors noted in the Trac log file set to log at INFO level. Ensured the python egg is physically located in the Trac project's 'plugins' directory

Attachments (0)

Change History (11)

comment:1 follow-up: Changed 2 years ago by czarnymb

Same for me...
Using Trac 0.12.3, Python 2.6 served by Apache on MySQL.

Some ideas ?

comment:2 in reply to: ↑ 1 ; follow-up: Changed 2 years ago by anonymous

It seems to be a casting issue specific with PostgreSQL and perhaps MySQL. I found this post on the issue:

https://github.com/itota/trac-subtickets-plugin/issues/16

I made the fix as per the post and it seemed to fix my initial error, however, as I clicked through the ticket details I got additional (similar) errors.

Replying to czarnymb:

Same for me...
Using Trac 0.12.3, Python 2.6 served by Apache on MySQL.

Some ideas ?

comment:3 Changed 2 years ago by walnut

Hi guys

What version of setuptools are you using... In ticket #7017, there was a problem restrictions in the setup.py file and setuptools 0.6rc11.

comment:4 Changed 2 years ago by rjollos

  • Cc rjollos added

comment:5 in reply to: ↑ 2 Changed 2 years ago by walnut

Replying to anonymous:

It seems to be a casting issue specific with PostgreSQL and perhaps MySQL. I found this post on the issue:

https://github.com/itota/trac-subtickets-plugin/issues/16

I made the fix as per the post and it seemed to fix my initial error, however, as I clicked through the ticket details I got additional (similar) errors.

Replying to czarnymb:

Same for me...
Using Trac 0.12.3, Python 2.6 served by Apache on MySQL.

Some ideas ?

This issue was raied (and hopefully fixed!) in #9971.

Could you guys please set logging to debug level and see what the output is (id the childticketsplugin even getting loaded?)

Thanks

comment:6 follow-up: Changed 2 years ago by czarnymb

I've updated setuptools from 0.6c11 to 0.6c12dev-r88846 by

easy_install setuptools==dev06

Then I've tried to install ChildTicketsPlugin and got

error: setup script exited with error: pyconfiig.h: No such file or directory

My solution to this problem was editing the setup.py file

-     install_requires = ['Trac>=0.12', 'Genshi>=0.5', 'Python>=2.4'],
+     install_requires = ['Trac>=0.12', 'Genshi>=0.5'],

and it works perfect.

comment:7 Changed 2 years ago by rjollos

  • Keywords setuptools added

comment:8 in reply to: ↑ 6 Changed 2 years ago by rjollos

Replying to czarnymb:

My solution to this problem was editing the setup.py file ...

See also #9589, #9793 and #9800. I've seen the issue around t-h.o in other tickets as well, which is why I added the setuptools tag.

comment:9 follow-up: Changed 2 years ago by walnut

Hi Andy

Does modifying the setup.py files as detailed above fix your issues here?

comment:10 in reply to: ↑ 9 Changed 2 years ago by anonymous

Replying to walnut:

Hi Andy

Does modifying the setup.py files as detailed above fix your issues here?

Unfortunately, no. The behavior I get now is that the plugin is not even recognized by the admin tool at all. The egg is in the project's plugin directory but it is not on the list of plugin nor is the functionality available on the ticket details.

comment:11 Changed 2 years ago by anonymous

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

Disregard my last post. I missed earlier thread on upgrading setup tools to 0.6c12dev-r88846 as related to the modification of setup.py. Doing this and modifying setup.py as suggested seems to have fixed this issue for me. Much appreciated.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from walnut. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.