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

Importing hypernetx freezes while loading HIF JSON Schema #168

Open
colltoaction opened this issue Jan 28, 2025 · 0 comments
Open

Importing hypernetx freezes while loading HIF JSON Schema #168

colltoaction opened this issue Jan 28, 2025 · 0 comments

Comments

@colltoaction
Copy link

Describe the bug
Importing hypernetx freezes while loading HIF JSON Schema. I'm not sure why it freezes but in any case I think loading the schema from the internet at this point is not intended behavior.

resp = requests.get(schema_url)

Additional context
Stack trace:

Cell In[3], line 1
----> 1 import hypernetx as hnx

File python3.12/site-packages/hypernetx/__init__.py:6
      1 from hypernetx.exception import (
      2     HyperNetXException,
      3     HyperNetXError,
      4     HyperNetXNotImplementedError,
      5 )
----> 6 from hypernetx.hif import to_hif, from_hif
      7 from hypernetx.classes import *
      8 from hypernetx.reports import *

File python3.12/site-packages/hypernetx/hif.py:13
     10 from .exception import HyperNetXError
     12 schema_url = "https://raw.githubusercontent.com/pszufe/HIF-standard/main/schemas/hif_schema_v0.1.0.json"
---> 13 resp = requests.get(schema_url)
     14 schema = json.loads(resp.text)
     15 validator = fastjsonschema.compile(schema)
...
---> 73 sock.connect(sa)
     74 # Break explicitly a reference cycle
     75 err = None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant