[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' fro
From: |
tumashu |
Subject: |
Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py |
Date: |
Fri, 14 Jan 2022 09:47:04 +0800 (CST) |
>Check with a fresh DB.
>
>We will include the renaming of the modules for the upgrade script in
>existing databases.
The below code works, good job.
```
-- Rename webdav to health_webdav3_server
update ir_module set name='health_webdav3_server' where name='webdav';
-- Rename webdav to health_webdav3_server
update ir_module set name='health_caldav' where name='calendar';
```
The last error when start service I faced is the below:
```
Cfeng@debian:~ $ ./start_gnuhealth.sh
2022-01-14 01:44:26 [INFO] Starting GNU Health Server version 3.9.0 ...
Traceback (most recent call last):
File "/home/feng/gnuhealth/tryton/server/trytond-6.0.13/bin/./trytond", line
34, in <module>
Pool.start()
File "/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/pool.py",
line 105, in start
register_classes()
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/__init__.py",
line 347, in register_classes
the_module = import_module(module)
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/__init__.py",
line 52, in import_module
module = importlib.import_module(fullname)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/health_reporting/__init__.py",
line 24, in <module>
from .report import *
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/health_reporting/report/__init__.py",
line 4, in <module>
from .epidemics_report import *
File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/health_reporting/report/epidemics_report.py",
line 32, in <module>
from trytond.modules.health.health import convert_date_timezone
ImportError: cannot import name 'convert_date_timezone' from
'trytond.modules.health.health'
(/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/health/health.py)
2022-01-14 01:44:27 [ERROR] Bailing out !
```
>
>Bests
>Luis
>
- [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, tumashu, 2022/01/11
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, Luis Falcon, 2022/01/11
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, tumashu, 2022/01/12
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, Luis Falcon, 2022/01/12
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, tumashu, 2022/01/13
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, Luis Falcon, 2022/01/13
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, Feng Shu, 2022/01/13
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, Luis Falcon, 2022/01/13
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py,
tumashu <=
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, Luis Falcon, 2022/01/14
- Re: [Health-dev] ImportError: cannot import name 'InvalidRecurrence' from 'trytond.modules.calendar.exceptions' (/home/feng/gnuhealth/tryton/server/trytond-6.0.13/trytond/modules/calendar/exceptions.py, Feng Shu, 2022/01/13