Custom Field Admin Plugin Install

90 views
Skip to first unread message

lcollier

unread,
Feb 8, 2012, 9:03:37 AM2/8/12
to Trac Users
Hello,

I am attempting to install the custom field admin plugin (http://trac-
hacks.org/wiki/CustomFieldAdminPlugin) and am running into some
problems.

Here are the commands and error messages I am getting:

[user@host /]$ cd /opt/trac/
[user@host trac]$ easy_install -U -Z http://trac-hacks.org/svn/customfieldadminplugin/0.11
Downloading http://trac-hacks.org/svn/customfieldadminplugin/0.11
Doing subversion checkout from http://trac-hacks.org/svn/customfieldadminplugin/0.11
to /tmp/easy_install-gYs2Cb/0.11
Processing 0.11
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-gYs2Cb/0.11/
egg-dist-tmp-u7el-j
Traceback (most recent call last):
File "/usr/bin/easy_install", line 7, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 1712, in main
with_ei_usage(lambda:
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 1700, in with_ei_usage
return f()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 1716, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib64/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib64/python2.4/distutils/dist.py", line 946, in
run_commands
self.run_command(cmd)
File "/usr/lib64/python2.4/distutils/dist.py", line 966, in
run_command
cmd_obj.run()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 422, in easy_install
return self.install_item(None, download, tmpdir, deps, True)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 476, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/command/easy_install.py", line 919, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/sandbox.py", line 61, in run_setup
DirectorySandbox(setup_dir).run(
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/sandbox.py", line 105, in run
return func()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
setuptools/sandbox.py", line 64, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 5, in ?
ImportError: No module named dist

I contacted the plugins author and he pointed me to this group. Any
help is appreciated!

osimons

unread,
Feb 9, 2012, 5:15:12 AM2/9/12
to Trac Users


On Feb 8, 3:03 pm, lcollier <lacoll...@herffjones.com> wrote:
> Hello,
>
> I am attempting to install the custom field admin plugin (http://trac-
> hacks.org/wiki/CustomFieldAdminPlugin) and am running into some
> problems.
>
> Here are the commands and error messages I am getting:
>
> [snip]
>
>   File "setup.py", line 5, in ?
> ImportError: No module named dist
>
> I contacted the plugins author and he pointed me to this group.  Any
> help is appreciated!

Actually, this is the error you contacted me about:

error: SandboxViolation: chmod('/home/username/.python-eggs/
Genshi-0.5.1-py2.4-linux-x86_64.egg-tmp/genshi/tmp33DikT.$extract',
493) {}

Anyway, the new error message is much more useful and I could
reproduce it myself with Python 2.4 and Trac 0.11.x. I've added a fix
to the repository, so please try to install again and let me know how
that works out.


:::simon

https://www.coderesort.com
http://trac-hacks.org/wiki/osimons

lcollier

unread,
Feb 9, 2012, 9:21:43 AM2/9/12
to Trac Users
It looks like I hadn't cd'd into /opt/trac when I contacted you.
Sorry for the confusion.

I was able to run the easy_install:
to /tmp/easy_install-pard2T/0.11
Processing 0.11
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-pard2T/0.11/
egg-dist-tmp-ajeI-S
zip_safe flag not set; analyzing archive contents...
Adding TracCustomFieldAdmin 0.2.8-r11265 to easy-install.pth file
Installed /usr/lib/python2.4/site-packages/
TracCustomFieldAdmin-0.2.8_r11265-py2.4.egg
Processing dependencies for TracCustomFieldAdmin==0.2.8-r11265
Finished processing dependencies for TracCustomFieldAdmin==0.2.8-
r11265

After restarting the apache, I clicked on Admin, then custom fields.
I then receive this error:

Trac detected an internal error:
TemplateNotFound: Template "customfieldadmin.html" not found

Python Traceback

Most recent call last:
File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/web/
main.py", line 444, in _dispatch_request
File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/web/
main.py", line 226, in dispatch
File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/web/
chrome.py", line 730, in render_template
File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/web/
chrome.py", line 704, in load_template
File "/usr/lib/python2.4/site-packages/Genshi-0.5.1-py2.4-linux-
x86_64.egg/genshi/template/loader.py", line 237, in load

System Information:

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/
535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11

Trac: 0.11.5
Python: 2.4.3 (#1, Jul 16 2009, 06:20:46) [GCC 4.1.2 20080704 (Red Hat
4.1.2-44)]
setuptools: 0.6c11
SQLite: 3.3.6
pysqlite: 1.1.7
Genshi: 0.5.1
CustomFieldAdmin: 0.2.8-r11265
Subversion: 1.5.1 (r32289)
RPC: 1.1.0-r9171
jQuery: 1.2.6


If you prefer I add a ticket in the bug tracker, just let me know.

Thank you.

lcollier

unread,
Feb 9, 2012, 11:40:06 AM2/9/12
to Trac Users
Update:
I updated the trac.ini file and it is working. Duh!

There is however two links for 'Custom Fields' in the admin. (See
http://imagebin.org/198071)

On Feb 9, 9:21 am, lcollier <lacoll...@herffjones.com> wrote:
> It looks like I hadn't cd'd into /opt/trac when I contacted you.
> Sorry for the confusion.
>
> I was able to run the easy_install:
>
> [user@host trac]$ easy_install -U -Zhttp://trac-hacks.org/svn/customfieldadminplugin/0.11
> Downloadinghttp://trac-hacks.org/svn/customfieldadminplugin/0.11
> Doing subversion checkout fromhttp://trac-hacks.org/svn/customfieldadminplugin/0.11

osimons

unread,
Feb 9, 2012, 11:49:59 AM2/9/12
to Trac Users
On Feb 9, 5:40 pm, lcollier <lacoll...@herffjones.com> wrote:
> Update:
> I updated the trac.ini file and it is working.  Duh!

Goodie.

> There is however two links for 'Custom Fields' in the admin.  (Seehttp://imagebin.org/198071)

Not so good of course, but it is not a problem with the plugin itself.
Turn on Trac debug logging and see if anything shows up.

Generally, Red Hat 4.1 with Python 2.4.3 is just plain old. There will
be no one that develops Trac or plugins that will test against such an
ancient setup... On your own for that, I'm afraid.


:::simon

lcollier

unread,
Feb 9, 2012, 11:51:47 AM2/9/12
to Trac Users
Ha! No problem, I figured as much. Thanks for the help.
Reply all
Reply to author
Forward
0 new messages