k4ntz / NUDGE

Logic Reinforcement Learning
MIT License
15 stars 6 forks source link

ModuleNotFoundError: No module named 'nsfr.common' #7

Closed Tianming40 closed 4 months ago

Tianming40 commented 9 months ago

Traceback (most recent call last): File "train.py", line 18, in from nudge.agents.logic_agent import LogicPPO File "/mnt/d/UNI/NUDGE/nudge/agents/logic_agent.py", line 10, in from nsfr.common import get_nsfr_model ModuleNotFoundError: No module named 'nsfr.common'

Tianming40 commented 9 months ago

Unter dem NSFR-Ordner befindet sich immer noch ein Ordner namens nsfr, der Importprobleme verursacht?

k4ntz commented 9 months ago

Hi there, have you installed the nsfr module using: pip install -e . from the nsfr folder ?

Tianming40 commented 9 months ago

hi, Thank you for your reply. I just tried Quickstart in the README. The installation in requirement.txt was successful, but when I run train.py, it prompts that nfsr cannot be found. When I try pip install -e . in the NAGUE folder, the following error will occur.

Obtaining file:///mnt/d/UNI/NUDGE
ERROR: file:///mnt/d/UNI/NUDGE does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

Best regards, Ming

k4ntz commented 9 months ago

You need to install from the nsfr project. You need to do: cd nsfr before pip install -e .

Tianming40 commented 9 months ago

It works now, thank you very much 👍