Traccustomfield for Trac 1.6.1

20 views
Skip to first unread message

Venu Pillai

unread,
Mar 9, 2026, 4:08:03 AM (4 days ago) Mar 9
to Trac Users
In WebUI, Trac-admin-customerfield trying to add a new/modify custom field.
I am getting error.
Error:TypeError: sequence item 0: expected str instance, bytes found

Python Traceback
Trac

1.6.1.dev0

Babel

2.13.1

Docutils

0.20.1

Jinja2

3.1.6

Python
3.12.12 (main, Jan 16 2026, 00:00:00) [GCC 14.3.1 20250617 (Red Hat 14.3.1-2)]

setuptools

69.0.3

SQLite

3.46.1

jQuery

3.6.3

jQuery UI

1.13.0

jQuery Timepicker

1.6.3

Jun Omae

unread,
Mar 9, 2026, 6:52:34 AM (4 days ago) Mar 9
to trac-...@googlegroups.com
Hi,

On Mon, Mar 9, 2026 at 5:08 PM Venu Pillai <vpill...@gmail.com> wrote:
>
> In WebUI, Trac-admin-customerfield trying to add a new/modify custom field.
> I am getting error.
> Error:TypeError: sequence item 0: expected str instance, bytes found
>
> Python Traceback
> Most recent call last:
>
> File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 610 , in dispatch_request
> File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 302 , in dispatch
> File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 248 , in dispatch
> File "/usr/local/lib/python3.12/site-packages/trac/admin/web_ui.py", line 104 , in process_request
> File "/usr/local/lib/python3.12/site-packages/customfieldadmin/admin.py", line 73 , in render_admin_panel
> File "/usr/local/lib/python3.12/site-packages/customfieldadmin/api.py", line 162 , in update_custom_field
> File "/usr/local/lib/python3.12/site-packages/customfieldadmin/api.py", line 130 , in create_custom_field

Thanks for the reporting the issue.

I confirmed that's reproduced when adding a select or radio custom
field. I just filed it in https://trac-hacks.org/ticket/14396 and
fixed it.

Please checkout and upgrade to the latest version from the following URL:

https://trac-hacks.org/svn/customfieldadminplugin/1.2/

--
Jun Omae <jun...@gmail.com> (大前 潤)

Venu Pillai

unread,
Mar 9, 2026, 7:43:37 AM (4 days ago) Mar 9
to Trac Users
Thanks , 
It is working now

Venu Pillai

unread,
Mar 12, 2026, 11:43:52 PM (3 hours ago) Mar 12
to Trac Users
After installing the above modified TracCustomFieldAdmin Plugin, When  i click on new Ticket and save it give error "

Trac detected an internal error:TypeError: Object of type bytes is not JSON serializable

This is probably a local installation issue.

Found a bug in Trac?

If you think this should work and you can reproduce the problem, you should consider creating a bug report.

Note that the following plugins seem to be involved: MultipleWorkflowPlugin, TracAccountManager, TracCustomFieldAdmin, TracIniAdmin, TracLDAPAuth, TracPermRedirect, TracTicketFieldsLayoutPlugin, TracXMLRPC, WebhookNotificationPlugin Please report this issue to the plugin maintainer.

Before you do that, though, please first try searching for similar issues , as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac or its plugins, please try the mailing list instead of creating a ticket.

Python Traceback
Most recent call last:File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 610, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 302, in dispatch raise e File "/usr/local/lib/python3.12/site-packages/trac/web/main.py", line 248, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python3.12/site-packages/trac/ticket/web_ui.py", line 162, in process_request return self._process_newticket_request(req) File "/usr/local/lib/python3.12/site-packages/trac/ticket/web_ui.py", line 513, in _process_newticket_request self._do_create(req, ticket, action) File "/usr/local/lib/python3.12/site-packages/trac/ticket/web_ui.py", line 1334, in _do_create ticket.insert() File "/usr/local/lib/python3.12/site-packages/trac/ticket/model.py", line 323, in insert listener.ticket_created(self) File "/usr/local/lib/python3.12/site-packages/webhook_notification/__init__.py", line 144, in ticket_created self.notify('ticket', 'created', values) File "/usr/local/lib/python3.12/site-packages/webhook_notification/__init__.py", line 112, in notify data_body = json.dumps(data).encode("utf-8") File "/usr/lib64/python3.12/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib64/python3.12/json/encoder.py", line 200, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib64/python3.12/json/encoder.py", line 258, in iterencode return _iterencode(o, 0) File "/usr/lib64/python3.12/json/encoder.py", line 180, in default raise TypeError(f'Object of type {o.__class__.__name__} '

Venu Pillai

unread,
Mar 12, 2026, 11:54:45 PM (3 hours ago) Mar 12
to Trac Users
Please ignore the above message,The issue is resolved by removing the webhook notification plugin
Regards
venu

Reply all
Reply to author
Forward
0 new messages