Skip to content

fastjsonschema missing from dependencies in pyproject.toml #173

Description

@davenovelli-pnnl

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:

  1. Create a new python environment and install hypernetx with: pip install hypernetx==2.4.0
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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