Hey All,
I'm trying to create a python script which can be called from a BP program (use PyCallFunction or the like) which will log to fluentd.
I have something which works on the first run of the BP program, but crashes on the second call.
To replicate you don't need the BP program, the following will do, from TCL
```
PYTHON
from fluent.sender import FluentSender
sender.emit('uv', { 'level': 'info', 'message': "hello"})
sender.emit('uv', { 'level': 'info', 'message': "world!"})
quit()
PYTHON
from fluent.sender import FluentSender
sender.emit('uv', { 'level': 'info', 'message': "hello"})
```
The error is
```
File "/home/u2dev/lib64/python3.11/site-packages/msgpack/__init__.py", line 36, in packb
return Packer(**kwargs).pack(o)
^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
```
It looks like on the second go round msgpack can't import Packer for a .so file.
I've tried setting REINIT.PYTHON OFF, but no luck.
This is on UV 11.4.1 and my python requirements.txt file is contains
fluent-logger==0.11.1
msgpack==1.1.0
I'm hoping one of the bright sparks here can help.
Thanks
Gary
------------------------------
Gary Miller
Helix Collective
------------------------------