Skip to content

Exception when loading DLL #127

@ellinorcrux

Description

@ellinorcrux

We upgraded Python, but now we're getting a different Exception:

    self._instream = FrameInStreamSession(self._interface_name, self._database_n
ame, self._cluster_name)
  File "C:\Python27\lib\site-packages\nixnet\session.py", line 86, in __init__
    constants.CreateSessionMode.FRAME_IN_STREAM)
  File "C:\Python27\lib\site-packages\nixnet\_session\base.py", line 59, in __in
it__
    self._handle = _funcs.nx_create_session(database_name, cluster_name, list, i
nterface_name, mode)
  File "C:\Python27\lib\site-packages\nixnet\_funcs.py", line 32, in nx_create_s
ession
    ctypes.pointer(session_ref_ctypes),
  File "C:\Python27\lib\site-packages\nixnet\_cfuncs.py", line 37, in nx_create_
session
    cfunc = self.cdll.nxCreateSession
  File "C:\Python27\lib\site-packages\nixnet\_cfuncs.py", line 26, in cdll
    self._cdll = _lib.import_lib()
  File "C:\Python27\lib\site-packages\nixnet\_lib.py", line 56, in _import_win_l
ib
    cdll = ctypes.cdll.LoadLibrary(lib_name)
  File "C:\Python27\lib\ctypes\__init__.py", line 440, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 362, in __init__
    self._handle = _dlopen(self._name, mode)
TypeError: LoadLibrary() argument 1 must be string, not unicode
  • OS: Windows 7
  • Python version: Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59)
  • NI-XNET version: Driver version 16, nixnet (0.1.0.dev2)

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