Skip to content

In zato servers pyoko raises import error for field #20

Closed
@alirizakeles

Description

Importing field or fields is a little bit confusing. Zato uses pyoko as an extra library, but can not import 'field' while other pyoko modules can be imported properly.

Error output is below:

2015-11-06 12:04:06,565 - ERROR - 23065:Dummy-1 - zato.server.service.store:22 - Could not load source mod_name:[hizmet_nufus_sorgula_kaydet] file_name:[/opt/zato/ulakbus/node-01/work/hot-deploy/current/hizmet_nufus_sorgula_kaydet.py], e:[Traceback (most recent call last):
  File "/opt/zato/2.0.5/zato-server/src/zato/server/service/store.py", line 155, in import_services_from_file
    mod = imp.load_source(mod_name, file_name)
  File "/opt/zato/ulakbus/node-01/work/hot-deploy/current/hizmet_nufus_sorgula_kaydet.py", line 14, in <module>
    from pyoko.exceptions import MultipleObjectsReturned, ObjectDoesNotExist
  File "/opt/zato/2.0.5/zato_extra_paths/pyoko/__init__.py", line 10, in <module>
    from pyoko.model import Model, ListNode, Node, field
  File "/opt/zato/2.0.5/zato_extra_paths/pyoko/model.py", line 15, in <module>
    from pyoko import field
ImportError: cannot import name field

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions