Opened 4 years ago

Closed 4 years ago

Plug-in Does Not Install

Reported by: Owned by: andy.flynavy@… walnut high ChildTicketsPlugin blocker setuptools rjollos 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

comment:1 follow-up: ↓ 2 Changed 4 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: ↓ 5 Changed 4 years ago by anonymous

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

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.

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

Some ideas ?

comment:3 Changed 4 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 4 years ago by rjollos

• Cc rjollos added; anonymous removed

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

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

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.

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: ↓ 8 Changed 4 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:8 in reply to: ↑ 6 Changed 4 years ago by rjollos

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: ↓ 10 Changed 4 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 4 years ago by anonymous

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 4 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.