You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.10.5 (main, May 1 2023, 20:40:12) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license"for more information.
>>> from nebula_carina.ngql.schema.space import create_space
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "hoge/.venv/lib/python3.10/site-packages/nebula_carina/ngql/schema/space.py", line 1, in<module>
from nebula_carina.ngql.connection.connection import run_ngql, LocalSession
File "hoge/nebula-hoge/.venv/lib/python3.10/site-packages/nebula_carina/ngql/connection/connection.py", line 107, in<module>
from nebula_carina.ngql.schema.space import create_space, show_spaces # noqa
ImportError: cannot import name 'create_space' from partially initialized module 'nebula_carina.ngql.schema.space' (most likely due to a circular import) (hoge/nebula-hoge/.venv/lib/python3.10/site-packages/nebula_carina/ngql/schema/space.py)
The text was updated successfully, but these errors were encountered:
Hi.
The sample code in the README didn't work.
It's because a circular import.
It is imported in: https://github.com/nebula-contrib/nebula-carina/blob/main/nebula_carina/ngql/connection/connection.py#L107, which is also used in nebula_carina.ngql.schema.space.
Here is error messages:
The text was updated successfully, but these errors were encountered: