Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In zato servers pyoko raises import error for field #20

Closed
alirizakeles opened this issue Nov 6, 2015 · 0 comments
Closed

In zato servers pyoko raises import error for field #20

alirizakeles opened this issue Nov 6, 2015 · 0 comments
Assignees
Labels

Comments

@alirizakeles
Copy link
Contributor

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
evrenesat pushed a commit to zetaops/zengine that referenced this issue Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants