Hello everybody,
my productive Tryton is running locally in a VENV, still at Tryton version v7.0. Basic system is ubuntu, which I recently upgraded from v24 to v26; with this came upgrades
* postgres 16 → 18
* python 3.12 → 3.14
I re-created a new VENV. As system-wide pip install is no longer supported, I installed python libraries by using apt.
Tryton is working, but when I try to import a CAMT052 bank statement, I get this error message:
Fault: conversion from NoneType to Decimal is not supported
My guess is that I’m still missing a python library, but could not find it by comparing install lists. Any hint will be appreciated.
EG
ced
(Cédric Krier)
June 4, 2026, 7:09am
2
The series 7.0 does not support Python 3.14, the highest version supported is Python 3.12.
pokoli
(Sergi Almacellas Abellana)
June 5, 2026, 12:50pm
3
Python 3.14 is supported by Tryton 8.0 series, so the saffer path is to upgrade also your trytond version to 8.0 series.
ced
(Cédric Krier)
June 5, 2026, 2:07pm
4
Eulengesicht:
Fault: conversion from NoneType to Decimal is not supported
My guess is that I’m still missing a python library, but could not find it by comparing install lists.
But it is probably not a dependency issue but it is hard to say without the full traceback.
Meanwhile I succeeded in updating to v8.0. But the problem remains:
318010 124448594187968 [2026-06-30 16:37:31,828] ERROR trytond.protocols.dispatcher account.statement.import.execute(4761, {'start': {'company': 1, 'file_': <30799 bytes>, 'file_format': 'camt_052_001', 'id': -3}}, 'import_', {...}) from admin@127.0.0.1/80-prod/rpc/ in 27 ms
Traceback (most recent call last):
File "/home/wd/TRYTON/80-prod/lib/python3.14/site-packages/trytond/protocols/dispatcher.py", line 237, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
~~~~^^^^^^^^^^^^^^^^^^^^^
File "/home/wd/TRYTON/80-prod/lib/python3.14/site-packages/trytond/wizard/wizard.py", line 349, in execute
result = wizard._execute(state_name)
File "/home/wd/TRYTON/80-prod/lib/python3.14/site-packages/trytond/wizard/wizard.py", line 388, in _execute
do_result = do(action)
File "/home/wd/TRYTON/80-prod/lib/python3.14/site-packages/trytond/modules/account_statement/statement.py", line 1284, in do_import_
statements = list(getattr(self, 'parse_%s' % self.start.file_format)())
File "/home/wd/TRYTON/80-prod/lib/python3.14/site-packages/trytond/modules/account_statement_sepa/account.py", line 43, in parse_camt
origins.extend(self.camt_origin(camt_statement, entry))
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wd/TRYTON/80-prod/lib/python3.14/site-packages/trytond/modules/account_statement_sepa/account.py", line 151, in camt_origin
origin.amount = self._camt_amount(entry, detail)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/wd/TRYTON/80-prod/lib/python3.14/site-packages/trytond/modules/account_statement_sepa/account.py", line 77, in _camt_amount
amount = Decimal(detail.findtext('./{*}AmtDtls/{*}TxAmt/{*}Amt'))
TypeError: conversion from NoneType to Decimal is not supported
318010 124448594187968 [2026-06-30 16:37:31,830] INFO trytond.wsgi <JSONRequest 1@127.0.0.1 'http://localhost:8000/80-prod/rpc/' [POST] wizard.account.statement.import.execute> in 35 ms
318010 124448594187968 [2026-06-30 16:37:31,830] INFO werkzeug 127.0.0.1 - - [30/Jun/2026 16:37:31] "POST /80-prod/rpc/ HTTP/1.1" 200 -
This is the message appearing: TypeError: conversion from NoneType to Decimal is not supported.
Still not 100% sure if I’m missing a module, so below is my module list.
EG
´´´
$ pip list
Package Version
appdirs 1.4.4
aptdaemon 2.0.2
argon2-cffi 25.1.0
argon2-cffi-bindings 25.1.0
attrs 25.4.0
autocommand 2.2.2
bcc 0.35.0
bcrypt 5.0.0
beautifulsoup4 4.14.3
blinker 1.9.0
Brlapi 0.8.6
Brotli 1.2.0
CacheControl 0.14.3
certifi 2026.1.4
cffi 2.0.0
chardet 5.2.0
charset-normalizer 3.4.4
click 8.1.8
compizconfig-python 0.9.14.2
contourpy 1.3.3
cryptography 46.0.5
cssselect 1.4.0
cupshelpers 1.0
cycler 0.12.1
dasbus 1.7
dbus-python 1.4.0
decorator 5.2.1
defer 1.0.6
defusedxml 0.7.1
distlib 0.4.0
distro 1.9.0
distro-info 1.15
entrypoints 0.4
evdev 1.9.3
fasteners 0.19
filelock 3.20.3
fonttools 4.61.1
freetype-py 2.5.1
Genshi 0.7.10
gf_account_de_skr04 8.0.1
gpg 2.0.0
html5lib-modern 1.2
httplib2 0.22.0
idna 3.11
importlib_metadata 8.7.1
inflect 7.5.0
jaraco.context 6.0.1
jaraco.functools 4.1.0
jaraco.text 4.0.0
kiwisolver 1.4.10rc0
language-selector 0.1
launchpadlib 2.1.0
lazr.restfulclient 0.14.6
lazr.uri 1.0.6
libpass 1.9.3
linkify-it-py 2.0.3
lockfile 0.12.2
louis 3.36.0
lxml 6.0.2
lz4 4.4.5+dfsg
macaroonbakery 1.3.4
Mako 1.3.10.dev0
markdown-it-py 3.0.0
MarkupSafe 3.0.3
matplotlib 3.10.7+dfsg1
mdurl 0.1.2
mercurial 7.2
monotonic 1.6
more-itertools 10.8.0
mpmath 1.3.0
msgpack 1.1.2
netaddr 1.3.0
netifaces 0.11.0
ntpsec 1.2.3
numpy 2.3.5
oauthlib 3.3.1
olefile 0.47
packaging 26.0
PAM 0.4.2
passlib 1.7.4
pbr 7.0.3
pexpect 4.9.0
phonenumbers 8.12.57
pillow 12.1.1
pip 26.1.2
platformdirs 4.9.4
ply 3.11
polib 1.2.0
pooch 1.9.0
proteus 8.0.0
protobuf 4.21.12
psutil 7.1.0
psycopg 3.3.2
psycopg-c 3.3.2
psycopg-pool 3.3.1.dev1
psycopg2 2.9.11
ptyprocess 0.7.0
pwdlib 0.3.0
pyasyncore 1.0.2
pycairo 1.27.0
pycountry 24.6.1
pycparser 3.0
pycups 2.0.4
Pygments 2.19.2
PyGObject 3.56.2
pyicu 2.16.1
pyinotify 0.9.6
PyJWT 2.10.1
pymacaroons 0.13.0
PyNaCl 1.5.0
pynput 1.8.1
pyparsing 3.3.2
PyPDF2 2.12.1
PyQt5 5.15.11
PyQt5_sip 12.17.2
pyRFC3339 2.0.1
PySocks 1.7.1
python-apt 3.1.0+ubuntu1
python-dateutil 2.9.0
python-debian 1.0.1+ubuntu2
python-magic 0.4.27
python-sql 1.8.1
python-stdnum 2.2
python-xlib 0.33
pythondialog 3.5.3
pytz 2025.2
pyxdg 0.28
PyYAML 6.0.3
qrcode 8.2
RapidFuzz 3.12.2
regex 2025.9.18
relatorio 0.11.1
reportlab 4.4.10
requests 2.32.5
requests-unixsocket2 1.0.1
rich 13.9.4
rlPyCairo 0.3.0
ruamel.yaml 0.18.10
ruamel.yaml.clib 0.2.15
scipy 1.16.3
scour 0.38.2
selinux 3.9
setproctitle 1.3.7
setuptools 78.1.1
simpleeval 1.0.3
simplejson 3.20.2
six 1.17.0
soupsieve 2.8.3
stevedore 5.7.0
sympy 1.14.0
systemd-python 235
thefuzz 0.22.1
tinycss2 1.5.1
tornado 6.5.4
tqdm 4.67.3
tryton 8.0.5
trytoncommunity_sort_invoice_grouping 7.0.1
trytond 8.0.5
trytond_account 8.0.1
trytond_account_asset 8.0.0
trytond_account_invoice 8.0.0
trytond_account_invoice_correction 8.0.0
trytond_account_invoice_line_standalone 8.0.0
trytond_account_invoice_stock 8.0.0
trytond_account_payment 8.0.1
trytond_account_payment_sepa 8.0.1
trytond_account_payment_sepa_cfonb 8.0.0
trytond_account_product 8.0.1
trytond_account_rule 8.0.0
trytond_account_statement 8.0.0
trytond_account_statement_rule 8.0.0
trytond_account_statement_sepa 8.0.0
trytond_account_stock_continental 8.0.0
trytond_bank 8.0.0
trytond_carrier 8.0.0
trytond_commission 8.0.0
trytond_company 8.0.0
trytond_company_work_time 8.0.0
trytond_country 8.0.0
trytond_currency 8.0.0
trytond_customs 8.0.0
trytond_dashboard 8.0.0
trytond_party 8.0.0
trytond_product 8.0.0
trytond_product_kit 8.0.1
trytond_product_measurements 8.0.0
trytond_product_price_list 8.0.0
trytond_project 8.0.2
trytond_project_invoice 8.0.0
trytond_project_revenue 8.0.0
trytond_purchase 8.0.0
trytond_purchase_amendment 8.0.1
trytond_purchase_history 8.0.0
trytond_purchase_request 8.0.0
trytond_purchase_secondary_unit 8.0.0
trytond_sale 8.0.1
trytond_sale_amendment 8.0.1
trytond_sale_history 8.0.0
trytond_sale_invoice_grouping 8.0.0
trytond_sale_price_list 8.0.0
trytond_sale_secondary_unit 8.0.0
trytond_sale_shipment_cost 8.0.0
trytond_sale_shipment_grouping 8.0.0
trytond_sale_stock_quantity 8.0.0
trytond_sale_supply 8.0.0
trytond_sale_supply_drop_shipment 8.0.0
trytond_stock 8.0.1
trytond_stock_consignment 8.0.0
trytond_stock_forecast 8.0.0
trytond_stock_secondary_unit 8.0.0
trytond_stock_shipment_cost 8.0.0
trytond_stock_shipment_measurements 8.0.0
trytond_stock_split 8.0.0
trytond_stock_supply 8.0.0
trytond_timesheet 8.0.0
trytond_timesheet_cost 8.0.0
trytond_web_shop 8.0.0
trytond_web_user 8.0.0
typeguard 4.4.4
typing_extensions 4.15.0
ubuntu-drivers-common 0.0.0
ubuntu-pro-client 8001
uc-micro-py 1.0.3
ufoLib2 0.18.1
ufw 0.36.2
unattended-upgrades 0.1
unicodedata2 16.0.0
urllib3 2.6.3
usb-creator 0.3.16
virtualenv 20.36.1
virtualenv-clone 0.5.7
virtualenvwrapper 4.8.4
wadllib 2.0.0
webencodings 0.5.1
Werkzeug 3.1.8
wheel 0.46.3
wrapt 2.1.1
xdg 5
xkit 0.0.0
xlrd 2.0.2
zipp 3.23.0
zopfli 0.4.1
I tried to check it at demo8.0.tryton.org. But there, I cannot select any statement format; without such, the import does not proceed.
EG
edbo
July 4, 2026, 10:13am
7
The error tells me there is something weird in your statement file. It seems the module cannot find any amount related to a specific entry.
It would be nice if you could isolate that particular entry, anonymize it and post the details so we can try to reproduce it.
Also what about the same statement, but then in camt053 format? Does that import correctly?
Hm. WITHOUT having loaded a statement xml, it looks like this in my local v8.0:
and like that at the demo:
None of views changes when an xml is uploaded.
For that reason, i’m not convinced of your theory:
NB: It’s just an ordinary CAMT52 statement from a German Genossenschaftsbank. I think, Tryton should be able to handle it - and did so in the past.
EG
edbo
July 4, 2026, 9:13pm
9