Skip to content

error run NormaliseNVPX.py #7

@atanasj

Description

@atanasj

Hi,

I seem to be getting an error when trying to to convert form .nvpx to .norm. See below:

| => python2 NormaliseNVPX.py /Users/atanas/OneDrive\ -\ University\ of\ Wollongong/PhD/PR_qual/unzip/2019_05_29-qual-conv-error-test\ copy.nvpx /Users/atanas/OneDrive\ -\ University\ of\ Wollongong/PhD/PR_qual/unzip/sqlite:///filename.db
Started database server on port 62267
Traceback (most recent call last):
  File "NormaliseNVPX.py", line 149, in <module>
    NVivo.Normalise(args)
  File "/Users/atanas/OneDrive - University of Wollongong/PhD/PR_qual/unzip/nvivotools/NVivo.py", line 206, in Normalise
    nvivoAnnotation    = Table('Annotation',    nvivomd, autoload=True)
  File "<string>", line 2, in __new__
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/deprecations.py", line 130, in warned
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 496, in __new__
    metadata._remove_table(name, schema)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
    compat.reraise(exc_type, exc_value, exc_tb)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 491, in __new__
    table._init(name, metadata, *args, **kw)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 585, in _init
    resolve_fks=resolve_fks,
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 626, in _autoload
    _extend_on=_extend_on,
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2146, in run_callable
    with self._contextual_connect() as conn:
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2226, in _contextual_connect
    self._wrap_pool_connect(self.pool.connect, None),
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2266, in _wrap_pool_connect
    e, dialect, self
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1536, in _handle_dbapi_exception_noconnection
    util.raise_from_cause(sqlalchemy_exception, exc_info)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2262, in _wrap_pool_connect
    return fn()
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 363, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 760, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 492, in checkout
    rec = pool._do_get()
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/impl.py", line 139, in _do_get
    self._dec_overflow()
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
    compat.reraise(exc_type, exc_value, exc_tb)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/impl.py", line 136, in _do_get
    return self._create_connection()
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 308, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 437, in __init__
    self.__connect(first_connect_check=True)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 639, in __connect
    connection = pool._invoke_creator(self)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 451, in connect
    return self.dbapi.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/site-packages/sqlanydb.py", line 522, in connect
    return Connection(args, kwargs)
  File "/usr/local/lib/python2.7/site-packages/sqlanydb.py", line 538, in __init__
    parent = Connection.cls_parent = Root("PYTHON")
  File "/usr/local/lib/python2.7/site-packages/sqlanydb.py", line 464, in __init__
    'libdbcapi_r.dylib')
  File "/usr/local/lib/python2.7/site-packages/sqlanydb.py", line 456, in load_library
    raise InterfaceError("Could not load dbcapi.  Tried: " + ','.join(map(str, names)))
sqlalchemy.exc.InterfaceError: (sqlanydb.InterfaceError) (u'Could not load dbcapi.  Tried: None,dbcapi.dll,libdbcapi_r.so,libdbcapi_r.dylib', 0)
(Background on this error at: http://sqlalche.me/e/rvf5)

Is there something I'm doing wrong? My system info is:

ProductName:	Mac OS X
ProductVersion:	10.14.5
BuildVersion:	18F132

My python2 version is Python 2.7.16

List of python2 libraries

| => pip2 list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Package                            Version
---------------------------------- --------
appnope                            0.1.0
argh                               0.26.2
autopep8                           1.4.4
backports-abc                      0.5
backports.functools-lru-cache      1.5
backports.shutil-get-terminal-size 1.0.0
certifi                            2019.3.9
chardet                            3.0.4
configparser                       3.7.4
contextlib2                        0.5.5
dateutils                          0.6.6
decorator                          4.4.0
docopt                             0.6.2
enum34                             1.1.6
fpdf                               1.7.2
future                             0.17.1
futures                            3.2.0
idna                               2.8
importlib-metadata                 0.15
ipykernel                          4.10.0
ipython                            5.8.0
ipython-genutils                   0.2.0
jedi                               0.13.3
jupyter-client                     5.2.4
jupyter-core                       4.4.0
List                               1.3.0
lxml                               4.3.3
mccabe                             0.6.1
numpy                              1.16.4
opencv-python                      4.1.0.25
pandoc-fignos                      1.4.2
pandoc-tablenos                    1.4.2
pandoc-xnos                        1.2.0
pandocfilters                      1.4.2
parso                              0.4.0
pathlib2                           2.3.3
pathtools                          0.1.2
pdfminer                           20140328
pexpect                            4.7.0
pickleshare                        0.7.5
Pillow                             6.0.0
pip                                19.1.1
pipupgrade                         1.5.0
pluggy                             0.12.0
prompt-toolkit                     2.0.9
psutil                             5.6.2
ptyprocess                         0.6.0
pycodestyle                        2.5.0
pydocstyle                         3.0.0
pyflakes                           2.1.1
Pygments                           2.4.2
PyMuPDF                            1.14.16
python-dateutil                    2.8.0
python-jsonrpc-server              0.1.2
python-language-server             0.26.1
pytz                               2019.1
PyYAML                             5.1
pyzmq                              18.0.1
requests                           2.22.0
rope                               0.14.0
scandir                            1.10.0
scipy                              1.2.1
select-backport                    0.2
setuptools                         41.0.1
simplegeneric                      0.8.1
singledispatch                     3.4.0.3
six                                1.12.0
snowballstemmer                    1.2.1
SQLAlchemy                         1.3.4
sqlalchemy-sqlany                  1.0.3
sqlanydb                           1.0.10
tornado                            5.1.1
traitlets                          4.3.2
urllib3                            1.25.3
watchdog                           0.9.0
wcwidth                            0.1.7
wheel                              0.33.4
yapf                               0.27.0
zipp                               0.5.1

I'm not sure what of the above is relevant, but just though I'd include everything. Let me know if you need more info. Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions