hydrogeoscience / pygtide

A Python module and wrapper for ETERNA PREDICT to compute gravitational tides on Earth
Mozilla Public License 2.0
50 stars 19 forks source link

Circular Import Error #17

Closed wg1562 closed 3 years ago

wg1562 commented 4 years ago

I'm trying with Python v3.8.1 (Windows 10) and I'm getting a "circular import" error (see below).

I then tried with Anaconda with v3.6 and got the same "missing DLL" error as described in other issues. Any ideas to solve this?


python test.py
Traceback (most recent call last):
 File "test.py", line 2, in <module>
    import pygtide
  File "C:\Shared Software\pygtide-master\pygtide\__init__.py", line 1, in <module>
    from .pygtide import pygtide
  File "C:\Shared Software\pygtide-master\pygtide\pygtide.py", line 96, in <module>
    from etpred import etpred
  File "C:\Shared Software\pygtide-master\etpred\__init__.py", line 1, in <module>
    from . import etpred
ImportError: cannot import name 'etpred' from partially initialized module 'etpred' (most likely due to a circular import) (C:\pygtide-master\etpred\__init__.py)```
hydrogeoscience commented 3 years ago

Please see the new update.