ChicagoHAI / active-example-selection

Active Example Selection for In-Context Learning (EMNLP'22)
MIT License
46 stars 2 forks source link

Error still remain #2

Closed Tizzzzy closed 3 months ago

Tizzzzy commented 3 months ago

Hi, After I pull the latest version, the error still remains:

Traceback (most recent call last):
  File "/research/cbim/medical/lh599/research/ruijiang/Dong/demonstration_selection/active-example-selection/src/rl/main.py", line 9, in <module>
    from rl import AGENTS, ENVIRONMENTS
  File "/research/cbim/medical/lh599/research/ruijiang/miniconda/envs/active-example-selection/lib/python3.9/site-packages/rl/__init__.py", line 1, in <module>
    from rl.agents import DQNAgent, RandomAgent
  File "/research/cbim/medical/lh599/research/ruijiang/miniconda/envs/active-example-selection/lib/python3.9/site-packages/rl/agents/__init__.py", line 1, in <module>
    from rl.agents.dqn_agent import DQNAgent
  File "/research/cbim/medical/lh599/research/ruijiang/miniconda/envs/active-example-selection/lib/python3.9/site-packages/rl/agents/dqn_agent.py", line 15, in <module>
    from rl import BaseEnvironment
ImportError: cannot import name 'BaseEnvironment' from partially initialized module 'rl' (most likely due to a circular import) (/research/cbim/medical/lh599/research/ruijiang/miniconda/envs/active-example-selection/lib/python3.9/site-packages/rl/__init__.py)
y0mingzhang commented 3 months ago

Looks like you did not reinstall the package