Python Can';无法连接到Tryton服务器

Python Can';无法连接到Tryton服务器,python,linux,centos7,tryton,Python,Linux,Centos7,Tryton,我正在Centos7上工作,我的虚拟机上有isntalle GNU Health和tryton,但我无法通过端口8000连接到服务器。 我尝试了nmap-PN-p8000 localhost命令: Starting Nmap 6.40 ( http://nmap.org ) at 2020-09-03 15:23 CET Nmap scan report for localhost (127.0.0.1) Host is up (0.000068s latency). Other address

我正在Centos7上工作,我的虚拟机上有isntalle GNU Health和tryton,但我无法通过端口8000连接到服务器。 我尝试了nmap-PN-p8000 localhost命令:

Starting Nmap 6.40 ( http://nmap.org ) at 2020-09-03 15:23 CET
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000068s latency).
Other addresses for localhost (not scanned): 127.0.0.1
PORT     STATE  SERVICE
8000/tcp closed http-alt

Nmap done: 1 IP address (1 host up) scanned in 0.26 seconds
我的trytond.conf文件如下所示:

[database]
uri = postgresql://localhost:5432
path = /home/gnuhealth/attach

[web]
listen = localhost:8000

[webdav]
listen = *:8080
ssl_webdav = False

[jsonrpc]
listen=*:8000
我还尝试了netsat命令:netstat-tupan | grep8000。但是没有输出!! 当我运行cdexe,然后./trytond--verbose以验证服务器是否正在运行时,is向我显示此错误消息:

7610 140256688604992 [2020-09-03 14:41:29,020] INFO trytond.config using /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf as configuration files
7610 140256688604992 [2020-09-03 14:41:29,615] INFO trytond.modules ir:registering classes
7610 140256688604992 [2020-09-03 14:41:29,615] INFO trytond.modules res:registering classes
7610 140256688604992 [2020-09-03 14:41:29,615] INFO trytond.modules country:registering classes
7610 140256688604992 [2020-09-03 14:41:29,616] INFO trytond.modules currency:registering classes
7610 140256688604992 [2020-09-03 14:41:29,618] INFO trytond.modules tests:registering classes
7610 140256688604992 [2020-09-03 14:41:29,618] INFO trytond.modules webdav:registering classes
7610 140256688604992 [2020-09-03 14:41:29,619] INFO trytond.modules calendar:registering classes
7610 140256688604992 [2020-09-03 14:41:29,683] INFO trytond.modules party:registering classes
7610 140256688604992 [2020-09-03 14:41:29,692] INFO trytond.modules company:registering classes
7610 140256688604992 [2020-09-03 14:41:29,731] INFO trytond.modules account:registering classes
7610 140256688604992 [2020-09-03 14:41:29,756] INFO trytond.modules product:registering classes
7610 140256688604992 [2020-09-03 14:41:29,760] INFO trytond.modules account_product:registering classes
7610 140256688604992 [2020-09-03 14:41:29,763] INFO trytond.modules health:registering classes
7610 140256688604992 [2020-09-03 14:41:29,797] INFO trytond.modules stock:registering classes
7610 140256688604992 [2020-09-03 14:41:29,821] INFO trytond.modules account_invoice:registering classes
7610 140256688604992 [2020-09-03 14:41:29,839] INFO trytond.modules health_archives:registering classes
7610 140256688604992 [2020-09-03 14:41:29,844] INFO trytond.modules health_calendar:registering classes
7610 140256688604992 [2020-09-03 14:41:29,849] INFO trytond.modules health_contact_tracing:registering classes
7610 140256688604992 [2020-09-03 14:41:29,851] INFO trytond.modules health_crypto:registering classes
7610 140256688604992 [2020-09-03 14:41:29,854] INFO trytond.modules health_ems:registering classes
7610 140256688604992 [2020-09-03 14:41:29,859] INFO trytond.modules health_federation:registering classes
7610 140256688604992 [2020-09-03 14:41:29,952] INFO trytond.modules health_genetics:registering classes
7610 140256688604992 [2020-09-03 14:41:29,954] INFO trytond.modules health_gyneco:registering classes
7610 140256688604992 [2020-09-03 14:41:29,958] INFO trytond.modules health_icd10:registering classes
7610 140256688604992 [2020-09-03 14:41:29,959] INFO trytond.modules health_icd10pcs:registering classes
7610 140256688604992 [2020-09-03 14:41:29,960] INFO trytond.modules health_icd9procs:registering classes
7610 140256688604992 [2020-09-03 14:41:29,960] INFO trytond.modules health_icpm:registering classes
7610 140256688604992 [2020-09-03 14:41:29,961] INFO trytond.modules health_imaging:registering classes
7610 140256688604992 [2020-09-03 14:41:29,963] INFO trytond.modules health_iss:registering classes
7610 140256688604992 [2020-09-03 14:41:29,965] INFO trytond.modules health_lab:registering classes
7610 140256688604992 [2020-09-03 14:41:29,969] INFO trytond.modules health_lifestyle:registering classes
7610 140256688604992 [2020-09-03 14:41:29,971] INFO trytond.modules health_ophthalmology:registering classes
7610 140256688604992 [2020-09-03 14:41:29,973] INFO trytond.modules health_pediatrics:registering classes
7610 140256688604992 [2020-09-03 14:41:29,975] INFO trytond.modules health_reporting:registering classes
7610 140256688604992 [2020-09-03 14:41:30,597] WARNING py.warnings /home/gnuhealth/.local/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3.py:40: DeprecationWarning: Gdk.Cursor.new is deprecated
  cursors.MOVE:          Gdk.Cursor.new(Gdk.CursorType.FLEUR),


(trytond:7610): Gdk-CRITICAL **: 14:41:30.598: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
7610 140256688604992 [2020-09-03 14:41:30,605] INFO trytond.modules health_socioeconomics:registering classes
7610 140256688604992 [2020-09-03 14:41:30,607] INFO trytond.modules health_surgery:registering classes
7610 140256688604992 [2020-09-03 14:41:30,611] INFO trytond.modules health_who_essential_medicines:registering classes
7610 140256688604992 [2020-09-03 14:41:30,612] INFO trytond.modules stock_lot:registering classes
7610 140256688604992 [2020-09-03 14:41:30,614] INFO trytond.modules account_invoice_stock:registering classes
7610 140256688604992 [2020-09-03 14:41:30,615] INFO trytond.modules health_crypto_lab:registering classes
7610 140256688604992 [2020-09-03 14:41:30,616] INFO trytond.modules health_disability:registering classes
7610 140256688604992 [2020-09-03 14:41:30,619] INFO trytond.modules health_genetics_uniprot:registering classes
7610 140256688604992 [2020-09-03 14:41:30,620] INFO trytond.modules health_history:registering classes
7610 140256688604992 [2020-09-03 14:41:30,621] INFO trytond.modules health_inpatient:registering classes
7610 140256688604992 [2020-09-03 14:41:30,626] INFO trytond.modules health_mdg6:registering classes
7610 140256688604992 [2020-09-03 14:41:30,627] INFO trytond.modules health_ntd:registering classes
7610 140256688604992 [2020-09-03 14:41:30,627] INFO trytond.modules health_orthanc:registering classes
7610 140256688604992 [2020-09-03 14:41:30,682] INFO trytond.modules health_pediatrics_growth_charts:registering classes
7610 140256688604992 [2020-09-03 14:41:30,683] INFO trytond.modules health_qrcodes:registering classes
7610 140256688604992 [2020-09-03 14:41:30,699] INFO trytond.modules health_services:registering classes
7610 140256688604992 [2020-09-03 14:41:30,702] INFO trytond.modules health_inpatient_calendar:registering classes
7610 140256688604992 [2020-09-03 14:41:30,703] INFO trytond.modules health_insurance:registering classes
7610 140256688604992 [2020-09-03 14:41:30,706] INFO trytond.modules health_ntd_chagas:registering classes
7610 140256688604992 [2020-09-03 14:41:30,707] INFO trytond.modules health_ntd_dengue:registering classes
7610 140256688604992 [2020-09-03 14:41:30,709] INFO trytond.modules health_nursing:registering classes
7610 140256688604992 [2020-09-03 14:41:30,711] INFO trytond.modules health_pediatrics_growth_charts_who:registering classes
7610 140256688604992 [2020-09-03 14:41:30,713] INFO trytond.modules health_profile:registering classes
7610 140256688604992 [2020-09-03 14:41:30,714] INFO trytond.modules health_services_lab:registering classes
7610 140256688604992 [2020-09-03 14:41:30,715] INFO trytond.modules purchase:registering classes
7610 140256688604992 [2020-09-03 14:41:30,724] INFO trytond.modules sale:registering classes
Traceback (most recent call last):
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.25/trytond/modules/__init__.py", line 53, in import_module
    module = importlib.import_module(fullname)
  File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'trytond.modules.sale'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./trytond", line 29, in <module>
    Pool.start()
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.25/trytond/pool.py", line 102, in start
    register_classes()
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.25/trytond/modules/__init__.py", line 331, in register_classes
    the_module = import_module(module)
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.25/trytond/modules/__init__.py", line 77, in import_module
    module = spec.loader.load_module()
  File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 823, in load_module
  File "<frozen importlib._bootstrap_external>", line 682, in load_module
  File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.6/site-packages/trytond/modules/sale/__init__.py", line 5, in <module>
    from . import sale
  File "/usr/local/lib/python3.6/site-packages/trytond/modules/sale/sale.py", line 8, in <module>
    from trytond.i18n import gettext
ModuleNotFoundError: No module named 'trytond.i18n'
7610 140256688604992[2020-09-03 14:41:29020]使用/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf作为配置文件提供trytond.config信息
7610 140256688604992[2020-09-03 14:41:29615]信息trytond.modules ir:注册类
7610 140256688604992[2020-09-03 14:41:29615]INFO trytond.modules res:注册类
7610 140256688604992[2020-09-03 14:41:29615]INFO trytond.modules国家/地区:注册课程
7610 140256688604992[2020-09-03 14:41:29616]INFO trytond.modules货币:注册类
7610 140256688604992[2020-09-03 14:41:29618]INFO trytond.modules测试:注册类
7610 140256688604992[2020-09-03 14:41:29618]INFO trytond.modules webdav:注册课程
7610 140256688604992[2020-09-03 14:41:29619]INFO trytond.modules日历:注册课程
7610 140256688604992[2020-09-03 14:41:29683]INFO trytond.modules参与方:注册课程
7610 140256688604992[2020-09-03 14:41:29692]INFO trytond.modules公司:注册课程
7610 140256688604992[2020-09-03 14:41:29731]信息trytond.modules帐户:注册课程
7610 140256688604992[2020-09-03 14:41:29756]INFO trytond.modules产品:注册类
7610 140256688604992[2020-09-03 14:41:29760]信息trytond.modules帐户\u产品:注册类
7610 140256688604992[2020-09-03 14:41:29763]INFO trytond.modules运行状况:注册类
7610 140256688604992[2020-09-03 14:41:29797]INFO trytond.modules股票:注册类
7610 140256688604992[2020-09-03 14:41:29821]信息trytond.modules帐户\u发票:注册类
7610 140256688604992[2020-09-03 14:41:29839]INFO trytond.modules健康档案:注册课程
7610 140256688604992[2020-09-03 14:41:29844]INFO trytond.modules health\u日历:注册课程
7610 140256688604992[2020-09-03 14:41:29849]INFO trytond.modules health\u contact\u tracing:注册课程
7610 140256688604992[2020-09-03 14:41:29851]INFO trytond.modules health\u crypto:注册类
7610 140256688604992[2020-09-03 14:41:29854]INFO trytond.modules health\u ems:注册课程
7610 140256688604992[2020-09-03 14:41:29859]INFO trytond.modules health_联合会:注册课程
7610 140256688604992[2020-09-03 14:41:29952]INFO trytond.modules health\u genetics:注册课程
7610 140256688604992[2020-09-03 14:41:29954]INFO trytond.modules health_gyneco:注册课程
7610 140256688604992[2020-09-03 14:41:29958]INFO trytond.modules health_icd10:注册课程
7610 140256688604992[2020-09-03 14:41:29959]INFO trytond.modules health_icd10pcs:注册课程
7610 140256688604992[2020-09-03 14:41:29960]INFO trytond.modules health\u icd9procs:注册类
7610 140256688604992[2020-09-03 14:41:29960]INFO trytond.modules health\u icpm:注册课程
7610 140256688604992[2020-09-03 14:41:29961]INFO trytond.modules health_imaging:注册课程
7610 140256688604992[2020-09-03 14:41:29963]INFO trytond.modules health_iss:注册课程
7610 140256688604992[2020-09-03 14:41:29965]INFO trytond.modules health_实验室:注册课程
7610 140256688604992[2020-09-03 14:41:29969]INFO trytond.modules health\u生活方式:注册课程
7610 140256688604992[2020-09-03 14:41:29971]信息训练结束。模块健康\眼科学:注册课程
7610 140256688604992[2020-09-03 14:41:29973]INFO trytond.modules health\u儿科:注册课程
7610 140256688604992[2020-09-03 14:41:29975]INFO trytond.modules health\u报告:注册课程
7610 140256688604992[2020-09-03 14:41:30597]WARNING py.warnings/home/gnuhealth/.local/lib/python3.6/site packages/matplotlib/backends/backend_gtk3.py:40:不推荐警告:Gdk.Cursor.new不推荐使用
cursors.MOVE:Gdk.Cursor.new(Gdk.CursorType.FLEUR),
(trytond:7610):Gdk CRITICAL**:14:41:30.598:用于显示的Gdk\U游标\U新建\U:断言“Gdk\U是\U显示(显示)”失败
7610 140256688604992[2020-09-03 14:41:30605]INFO trytond.modules health\u socialeconomics:注册课程
7610 140256688604992[2020-09-03 14:41:30607]信息训练结束模块健康外科:注册课程
7610 140256688604992[2020-09-03 14:41:30611]信息尝试结束。模块健康、世卫组织基本药物:注册课程
7610 140256688604992[2020-09-03 14:41:30612]信息尝试结束。模块库存批次:注册类别
7610 140256688604992[2020-09-03 14:41:30614]INFO trytond.modules account\u invoice\u stock:注册类
7610 140256688604992[2020-09-03 14:41:30615]INFO trytond.modules health\u crypto\u lab:注册类
7610 140256688604992[2020-09-03 14:41:30616]信息尝试结束模块健康\残疾:注册课程
7610 140256688604992[2020-09-03 14:41:30619]信息尝试结束。模块健康\u遗传学\u统一保护:注册课程
7610 140256688604992[2020-09-03 14:41:30620]INFO trytond.modules health_history:注册课程
7610 140256688604992[2020-09-03 14:41:30621]INFO trytond.modules health_住院患者:注册课程
7610 140256688604992[2020-09-03 14:41:30626]信息尝试结束模块运行状况\u mdg6:注册课程
7610 140256688604992[2020-09-03 14:41:30627]信息尝试结束模块运行状况:注册课程
7610 140256688604992[2020-09-03 14:41:30627]信息尝试结束模块运行状况:注册课程
7610 140256688604992[2020-09-03 14:41:30682]信息尝试结束。模块健康\儿科\成长\图表:注册课程
7610 140256688604992 [2020-09-03 14:41:30,683]