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

AttributeError for zorba_api.py #3

Open
devgc opened this issue Oct 28, 2016 · 0 comments
Open

AttributeError for zorba_api.py #3

devgc opened this issue Oct 28, 2016 · 0 comments

Comments

@devgc
Copy link

devgc commented Oct 28, 2016

I installed Zorba via the installer.

This also requires renaming iconv.dll to libiconv.dll to get zorba.exe to work. As noted here: https://groups.google.com/forum/#!topic/zorba-users/gVILIjduuuE

When in the 'Zorba XQuery Processor 3.0.0\share\python' directory, an import of zorba_api produces the following:

>>> import zorba_api
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "zorba_api.py", line 26, in <module>
    _zorba_api = swig_import_helper()
  File "zorba_api.py", line 22, in swig_import_helper
    _mod = imp.load_module('_zorba_api', fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.

If I relocate zorba_api.py and _zorba_api.pyd to the 'Zorba XQuery Processor 3.0.0\bin' directory I can get further. The next error is:

>>> import zorba_api
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "zorba_api.py", line 474, in <module>
    class IdentTypes(_object):
  File "zorba_api.py", line 480, in IdentTypes
    NAMED_TYPE = _zorba_api.IdentTypes_NAMED_TYPE
AttributeError: 'module' object has no attribute 'IdentTypes_NAMED_TYPE'

Any insights?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant