14-05-2020, 20:03
Bonjour genglert,
J'ai installé la dernière version 2.1.4 de Crème CRM et il reste un petit soucis :
Cela vient du fichier 'creme_crm-2.1/creme/crudity/fetchers/pop.py' où il manque la conversion en entiers de la variable message_number lors de la suppression des e-mails.
Avant :
Après modification :
Et ça remarche !
Il me reste juste cette erreur que je ne sais pas interpréter :
J'ai installé la dernière version 2.1.4 de Crème CRM et il reste un petit soucis :
Code :
[2020-05-14 19:30:44] ERROR - creme.creme_core.creme_jobs.base : b'-ERR invalid sequence number: "b\\\'1\\\'"'
Traceback (most recent call last):
File "/srv/www/creme_crm-2.1/creme/creme_core/creme_jobs/base.py", line 112, in execute
self._execute(job)
File "/srv/www/creme_crm-2.1/creme/crudity/creme_jobs.py", line 52, in _execute
count = len(registry.crudity_registry.fetch(user))
File "/srv/www/creme_crm-2.1/creme/crudity/registry.py", line 364, in fetch
for data in fetcher_multiplex.fetch():
File "/srv/www/creme_crm-2.1/creme/crudity/registry.py", line 68, in fetch
data.extend(fetcher.fetch())
File "/srv/www/creme_crm-2.1/creme/crudity/fetchers/pop.py", line 145, in fetch
client.dele(message_number)
File "/usr/lib/python3.7/poplib.py", line 256, in dele
return self._shortcmd('DELE %s' % which)
File "/usr/lib/python3.7/poplib.py", line 176, in _shortcmd
return self._getresp()
File "/usr/lib/python3.7/poplib.py", line 152, in _getresp
raise error_proto(resp)
poplib.error_proto: b'-ERR invalid sequence number: "b\\\'1\\\'"'
/usr/lib/python3.7/socket.py:660: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.0.0.18', 33126), raddr=('212.227.15.157', 110)>
self._sock = None
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Cela vient du fichier 'creme_crm-2.1/creme/crudity/fetchers/pop.py' où il manque la conversion en entiers de la variable message_number lors de la suppression des e-mails.
Avant :
Code :
if delete:
# We delete the mail from the server when treated
client.dele(message_number)
Après modification :
Code :
if delete:
# We delete the mail from the server when treated
client.dele(int(message_number))
Et ça remarche !
Il me reste juste cette erreur que je ne sais pas interpréter :
Code :
/srv/www/Envs/creme_2_1/lib/python3.7/site-packages/django/db/models/fields/__init__.py:1427: RuntimeWarning: DateTimeField
EntityEmail.reception_date received a naive datetime (2020-05-14 19:27:16) while time zone support is active.
RuntimeWarning)
Crème CRM 2.4.2 sur Debian GNU/Linux 11 Bullseye avec Apache2 + WSGI