INM-6 / networkunit

A SciUnit library for validation testing of spiking neural network models.
BSD 3-Clause "New" or "Revised" License
15 stars 6 forks source link

models/backends not found error #20

Closed Jojo-00 closed 3 years ago

Jojo-00 commented 3 years ago

I installed networkunit with pip and tried to import the modules in my python-script. When I try to start the program the following error message occurs:

Traceback (most recent call last): File ".\nu_test.py", line 3, in from networkunit import tests, scores, models File "C:\Users\Admin\anaconda3\lib\site-packages\networkunit__init.py", line 9, in
from . import tests, models, capabilities, scores, plots File "C:\Users\Admin\anaconda3\lib\site-packages\networkunit\models\
init__.py", line 17, in exec("from {} import {}".format(modname, module_name)) File "", line 1, in File "C:\Users\Admin\anaconda3\lib\site-packages\networkunit\models\model_loaded_data.py", line 2, in from .backends import available_backends ModuleNotFoundError: No module named 'networkunit.models.backends'

mdenker commented 3 years ago

Sorry for the late reply, this issue slipped our attention. Thank you for reporting this bug.

Indeed, the backend folder was missing from the setup.py script, such that the pip-installed version led to the import error. Should be fixed by #21 and we will create a hotfix release 0.1.2 shortly.

As a fast workaround, cloning the library without installing via pip should work.

mdenker commented 3 years ago

The release 0.1.2, available from pypi using pip install --upgrade networkunit should fix this issue.

Jojo-00 commented 3 years ago

Thank you for the quick bug-fix. The installation with pip has now worked.