Describe the bug
fastjsonschema is imported in hif.py, but is not present in the environment generated by installing HyperNetX (this includes using uv or poetry to install from pyproject.toml, or installing from PyPI with pip)
To Reproduce
Steps to reproduce the behavior:
- Create a new python environment and install
hypernetx with: pip install hypernetx==2.4.0
- Attempt to import:
python -c "import hypernetx as hnx; print('Success!')"
Error Output
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/test-env/lib/python3.11/site-packages/hypernetx/__init__.py", line 6, in <module>
from hypernetx.hif import to_hif, from_hif
File "/private/tmp/test-env/lib/python3.11/site-packages/hypernetx/hif.py", line 7, in <module>
import fastjsonschema
ModuleNotFoundError: No module named 'fastjsonschema'
Environment (please complete the following information):
- OS: macOS, Debian via official python-3.13-slim Docker image
- Python Versions tested: 3.11, 3.13
Additional context
I think adding fastjsonschema to the [tool.poetry.dependencies] section in pyproject.toml should solve this issue
Describe the bug
fastjsonschemais imported inhif.py, but is not present in the environment generated by installing HyperNetX (this includes usinguvorpoetryto install from pyproject.toml, or installing from PyPI with pip)To Reproduce
Steps to reproduce the behavior:
hypernetxwith:pip install hypernetx==2.4.0python -c "import hypernetx as hnx; print('Success!')"Error Output
Environment (please complete the following information):
Additional context
I think adding
fastjsonschemato the[tool.poetry.dependencies]section inpyproject.tomlshould solve this issue