Pyroms import _iso error

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
bangdt
Posts: 30
Joined: Sun Mar 10, 2019 2:34 pm
Location: University of Tsukuba

Pyroms import _iso error

#1 Unread post by bangdt »

Hi everyone.
I have installed pyroms as readme file (python3.8 )
I successfully run all the tests or examples in /pyroms/external directories for all libraries testing (and have copied all the libs to pyroms folder including libcsa.a; libgridgen.a; libgridgen.so; libgu.a; libgu.so; libnn.a and scrip.cpython-38-x86_64-linux-gnu.so and checked that all these lib are in sys.path like attached image).

then when I import pyroms and got an error:

Code: Select all

Python 3.8.1 | packaged by conda-forge | (default, Jan 29 2020, 14:55:04) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license()" for more information.
>>> import pyroms
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pyroms
  File "/home/bangdt/apps/miniconda3/envs/pr3/lib/python3.8/site-packages/ocean/pyroms/pyroms/pyroms/__init__.py", line 19, in <module>
    from . import tools
  File "/home/bangdt/apps/miniconda3/envs/pr3/lib/python3.8/site-packages/ocean/pyroms/pyroms/pyroms/tools.py", line 4, in <module>
    from . import _iso
ImportError: cannot import name '_iso' from partially initialized module 'pyroms' (most likely due to a circular import) (/home/bangdt/apps/miniconda3/envs/pr3/lib/python3.8/site-packages/ocean/pyroms/pyroms/pyroms/__init__.py)
>>> 
Please help me :oops:
path.png
path.png (27.14 KiB) Viewed 4801 times

Post Reply