You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing hypernetx in a clean virtual environment fails due to a missing package: decorator.
Step to reproduce (after initializing a new empty virtual environment):
pip install hypernetx
giving an error like this:
>>> import hypernetx as hnx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/hnx-version/venv/lib/python3.8/site-packages/hypernetx/__init__.py", line 7, in <module>
from hypernetx.classes import *
File "/tmp/hnx-version/venv/lib/python3.8/site-packages/hypernetx/classes/__init__.py", line 2, in <module>
from .hypergraph import Hypergraph
File "/tmp/hnx-version/venv/lib/python3.8/site-packages/hypernetx/classes/hypergraph.py", line 13, in <module>
from hypernetx.classes.staticentity import StaticEntity, StaticEntitySet
File "/tmp/hnx-version/venv/lib/python3.8/site-packages/hypernetx/classes/staticentity.py", line 10, in <module>
from hypernetx.utils import (
File "/tmp/hnx-version/venv/lib/python3.8/site-packages/hypernetx/utils/__init__.py", line 8, in <module>
from .decorators import not_implemented_for
File "/tmp/hnx-version/venv/lib/python3.8/site-packages/hypernetx/utils/decorators.py", line 4, in <module>
from decorator import decorator
ModuleNotFoundError: No module named 'decorator'
Of course, installing the decorator package manually fixes the issue and hypernetx imports fine. I think the decorator package should just be added to the install_requires entry in setup.cfg and setup.py since this package is required to even load the package at all.
Tested using Python versions 3.8 and 3.9, using hypernetx 1.2.2 (on Ubuntu).
The text was updated successfully, but these errors were encountered:
Installing hypernetx in a clean virtual environment fails due to a missing package: decorator.
Step to reproduce (after initializing a new empty virtual environment):
giving an error like this:
Of course, installing the decorator package manually fixes the issue and hypernetx imports fine. I think the decorator package should just be added to the
install_requires
entry in setup.cfg and setup.py since this package is required to even load the package at all.Tested using Python versions 3.8 and 3.9, using hypernetx 1.2.2 (on Ubuntu).
The text was updated successfully, but these errors were encountered: