datactive / bigbang

Scientific analysis of collaborative communities
http://datactive.github.io/bigbang/
MIT License
148 stars 52 forks source link

ImportError after pip installing bigbang-py #577

Closed MridulS closed 1 year ago

MridulS commented 1 year ago

Related to https://github.com/datactive/bigbang/issues/576

To reproduce first create a clean new environment

$ mamba create -n bbtest python=3.9

Install bigbang-py from PyPI

$ python -m pip install bigbang-py

Try importing bigbang with python

$ python -c 'import bigbang'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/ms/mambaforge/envs/bbtest/lib/python3.9/site-packages/bigbang/__init__.py", line 1, in <module>
    from . import ingress
ImportError: cannot import name 'ingress' from partially initialized module 'bigbang' (most likely due to a circular import) (/Users/ms/mambaforge/envs/bbtest/lib/python3.9/site-packages/bigbang/__init__.py)