zorba-processor / zorba

Zorba - the NoSQL processor
http://zorba.io
Apache License 2.0
42 stars 16 forks source link

AttributeError for zorba_api.py #3

Open devgc opened 7 years ago

devgc commented 7 years ago

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?