Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

models/backends not found error #20

Closed
Jojo-00 opened this issue Apr 6, 2021 · 3 comments · Fixed by #21
Closed

models/backends not found error #20

Jojo-00 opened this issue Apr 6, 2021 · 3 comments · Fixed by #21
Assignees
Labels

Comments

@Jojo-00
Copy link

Jojo-00 commented Apr 6, 2021

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
Copy link
Member

mdenker commented Apr 14, 2021

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 mdenker added the bug label Apr 14, 2021
@mdenker mdenker linked a pull request Apr 14, 2021 that will close this issue
@mdenker
Copy link
Member

mdenker commented Apr 15, 2021

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

@Jojo-00
Copy link
Author

Jojo-00 commented Apr 23, 2021

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

@Jojo-00 Jojo-00 closed this as completed Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants