Skip to content

Compilation error? #3

@kerazarek

Description

@kerazarek

I attempted to install NSAT on my computer (python installation: anaconda, version 3.6, on Mac OS 10.13), it appeared to install correctly (using install.sh) but I get errors when I attempt to run the test files. Here is an example of the output from one such error:

$ python tests/python/test_adapting_neuron.py

/Users/zarek/.local/lib/python3.6/site-packages/pyNCSre/experimentTools.py:21: UserWarning: Cannot import dill, falling back to pickle. Several pyNCS objects cannot be pickled
warnings.warn('Cannot import dill, falling back to pickle. Several pyNCS objects cannot be pickled')
Begin test_adapting_neuron:main()
Begin test_adapting_neuron:setup()
Begin nsat_writer:NSATWriter.write()
End nsat_writer:NSATWriter.write() previous write_config, running time: 0.002358 seconds
End nsat_writer:NSATWriter.write() pickling, running time: 0.001535 seconds
End test_adapting_neuron:setup()
Begin test_adapting_neuron:run()
Running C NSAT!
/Users/zarek/Downloads/NSAT-master
Traceback (most recent call last):
File "tests/python/test_adapting_neuron.py", line 127, in
run(fnames)
File "tests/python/test_adapting_neuron.py", line 104, in run
nsat.run_c_nsat(fnames)
File "/Users/zarek/Downloads/NSAT-master/pyNSATlib/NSATlib.py", line 72, in run_c_nsat
_nsat = cdll.LoadLibrary(find_nsat_library())
File "/Users/zarek/anaconda/lib/python3.6/ctypes/init.py", line 426, in LoadLibrary
return self._dlltype(name)
File "/Users/zarek/anaconda/lib/python3.6/ctypes/init.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(../../lib/libnsat.so, 6): image not found

As far as I can tell the file .../NSAT-master/lib/libnsat.so does exist, but I am not sure if this file was compiled correctly.

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