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
Hi
I find a import problems about /opt/rucio/lib/rucio/tests/test_lifetime.py
This test will send request to trigger lib/rucio/web/rest/lifetime_exception.py
but it seems a circular import occurs in this .py ?
(.venv) [root@rucio-test03 rucio]# python -i lib/rucio/web/rest/lifetime_exception.py
Traceback (most recent call last):
File "lib/rucio/web/rest/lifetime_exception.py", line 17, in <module>
from rucio.api.lifetime_exception import list_exceptions, add_exception, update_exception
File "/opt/rucio/lib/rucio/api/lifetime_exception.py", line 14, in <module>
from rucio.core import lifetime_exception
File "/opt/rucio/lib/rucio/core/lifetime_exception.py", line 22, in <module>
import rucio.common.policy
File "/opt/rucio/lib/rucio/common/policy.py", line 23, in <module>
import rucio.core.did
File "/opt/rucio/lib/rucio/core/did.py", line 35, in <module>
import rucio.core.rule
File "/opt/rucio/lib/rucio/core/rule.py", line 32, in <module>
import rucio.core.lock # import get_replica_locks, get_files_and_replica_locks_of_dataset
File "/opt/rucio/lib/rucio/core/lock.py", line 27, in <module>
from rucio.core.lifetime_exception import define_eol
ImportError: cannot import name define_eol
In python shell:
>>> import rucio.core.lifetime_exception
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/rucio/lib/rucio/core/lifetime_exception.py", line 22, in <module>
import rucio.common.policy
File "/opt/rucio/lib/rucio/common/policy.py", line 23, in <module>
import rucio.core.did
File "/opt/rucio/lib/rucio/core/did.py", line 35, in <module>
import rucio.core.rule
File "/opt/rucio/lib/rucio/core/rule.py", line 32, in <module>
import rucio.core.lock # import get_replica_locks, get_files_and_replica_locks_of_dataset
File "/opt/rucio/lib/rucio/core/lock.py", line 27, in <module>
from rucio.core.lifetime_exception import define_eol
ImportError: cannot import name define_eol
Hi
I find a import problems about /opt/rucio/lib/rucio/tests/test_lifetime.py
This test will send request to trigger lib/rucio/web/rest/lifetime_exception.py
but it seems a circular import occurs in this .py ?
In python shell:
Best RegardEdward Wu
ASGC
Migrated from JIRA RUCIO-2835
The text was updated successfully, but these errors were encountered: