Skip to content

Vim testing fails on numpy import #74

@tsmanner

Description

@tsmanner

Refactor to define unit test in setup caused numpy import issues through vim in python 3.x.
python setup.py test in test_vimscript.

Error detected while processing /home/tsmanner/vimcryption/plugin/vimcryption.vim:
line   32:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/tsmanner/vimcryption/plugin/vimcryption.py", line 8, in <module>
    from encryptionengine.engine import PassThrough
  File "/home/tsmanner/vimcryption/encryptionengine/__init__.py", line 3, in <module>
    from .aes128engine import AES128Engine
  File "/home/tsmanner/vimcryption/encryptionengine/aes128engine.py", line 5, in <module>
    import numpy as np
  File "/home/tsmanner/vimcryption/.eggs/numpy-1.14.2-py3.4-linux-x86_64.egg/numpy/__init__.py", line 142, in <module>
    from . import add_newdocs
  File "/home/tsmanner/vimcryption/.eggs/numpy-1.14.2-py3.4-linux-x86_64.egg/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/home/tsmanner/vimcryption/.eggs/numpy-1.14.2-py3.4-linux-x86_64.egg/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/home/tsmanner/vimcryption/.eggs/numpy-1.14.2-py3.4-linux-x86_64.egg/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/home/tsmanner/vimcryption/.eggs/numpy-1.14.2-py3.4-linux-x86_64.egg/numpy/core/__init__.py", line 26, in <module>
    raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.
Original error was: cannot import name multiarray
Error detected while processing function LoadVimcryption:
line   12:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'vimcryption' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions