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

Import error on module hypernetx.utils.toys #55

Closed
RemiG3 opened this issue Jun 26, 2021 · 2 comments
Closed

Import error on module hypernetx.utils.toys #55

RemiG3 opened this issue Jun 26, 2021 · 2 comments

Comments

@RemiG3
Copy link

RemiG3 commented Jun 26, 2021

Hello,
I have the following error when I try to import hypernetx on Colab (with your tutorials) and also on my conda env:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-b7c66bb90caa> in <module>()
      3 import matplotlib.pyplot as plt
      4 import networkx as nx
----> 5 import hypernetx as hnx
      6 

4 frames
/usr/local/lib/python3.7/dist-packages/hypernetx/__init__.py in <module>()
      5 )
      6 from hypernetx.read_write import to_pickle, load_from_pickle
----> 7 from hypernetx.classes import *
      8 from hypernetx.reports import *
      9 from hypernetx.drawing import *

/usr/local/lib/python3.7/dist-packages/hypernetx/classes/__init__.py in <module>()
      1 from .entity import Entity, EntitySet
----> 2 from .hypergraph import Hypergraph
      3 from .staticentity import StaticEntity, StaticEntitySet

/usr/local/lib/python3.7/dist-packages/hypernetx/classes/hypergraph.py in <module>()
     11 from collections import OrderedDict, defaultdict
     12 from hypernetx.classes.entity import Entity, EntitySet
---> 13 from hypernetx.classes.staticentity import StaticEntity, StaticEntitySet
     14 from hypernetx.exception import HyperNetXError
     15 from hypernetx.utils.decorators import not_implemented_for

/usr/local/lib/python3.7/dist-packages/hypernetx/classes/staticentity.py in <module>()
      8 from hypernetx.exception import HyperNetXError
      9 from hypernetx.classes.entity import Entity, EntitySet
---> 10 from hypernetx.utils import HNXCount, DefaultOrderedDict, remove_row_duplicates
     11 from scipy.sparse import coo_matrix, csr_matrix, issparse
     12 import itertools as it

/usr/local/lib/python3.7/dist-packages/hypernetx/utils/__init__.py in <module>()
      2 from .decorators import not_implemented_for
      3 # from .toys import HarryPotter, LesMis, lesmis_hypergraph_from_df, book_tour, TransmissionProblem
----> 4 from .toys import *

ModuleNotFoundError: No module named 'hypernetx.utils.toys'

I'm doing something wrong?

@brendapraggastis
Copy link
Collaborator

Thank you for creating the issue. It seems to only effect colab. We are trying to fix it now.

@brendapraggastis
Copy link
Collaborator

The tutorials are now working. We updated the toy data to pull csv files directly from Github.
see commit cbf2520

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

2 participants