Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: Project root directory not found. Indicators: ['.project-root'] #9

Open
dxxxmmm opened this issue Mar 28, 2024 · 1 comment

Comments

@dxxxmmm
Copy link

dxxxmmm commented Mar 28, 2024

Hello,autherHello Author, could you please tell me why there is an error here?
Here are track:
Traceback (most recent call last):
File "/home/d/Pycode/manner/manner/train.py", line 11, in
pyrootutils.setup_root(file, indicator=".project-root", pythonpath=True)
File "/home/d/anaconda3/envs/manner_env/lib/python3.9/site-packages/pyrootutils/pyrootutils.py", line 151, in setup_root
path = find_root(search_from, indicator)
File "/home/d/anaconda3/envs/manner_env/lib/python3.9/site-packages/pyrootutils/pyrootutils.py", line 73, in find_root
raise FileNotFoundError(f"Project root directory not found. Indicators: {indicator}")
FileNotFoundError: Project root directory not found. Indicators: ['.project-root']

@DL909
Copy link

DL909 commented Sep 16, 2024

I got this answer from another issue in other project. And for now it works well.
just create a empty file named '.project-root' in your working directory(I mean, the directory where your terminal stay.)
you can simply create it use touch:
touch .project-root
hope it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants