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

Some questions about ”# to add current directory to python path run“ #6

Open
VicZlq opened this issue Sep 20, 2020 · 5 comments
Open

Comments

@VicZlq
Copy link

VicZlq commented Sep 20, 2020

Hello, I am very interested in your work! But I had some problems when I reappeared. In # to add current directory to python path run, I found my path_to_env, but after adding it,
”echo $PWD > </home/anaconda3/envs/pt/lib/python3.7/site-packages/simsg.pth“
While I was training, the problem of "Modulenotfounderror: no module named' scripts. train'" still appeared. Has anyone ever encountered the same problem? How should it be solved?
Looking forward to hearing from you very much

@he-dhamo
Copy link
Owner

he-dhamo commented Sep 21, 2020

Hi there,

You should remove the "<" around the python path. It was just there to indicate that you set your own path_to_env. Try this:
echo $PWD > /home/anaconda3/envs/pt/lib/python3.7/site-packages/simsg.pth

@VicZlq
Copy link
Author

VicZlq commented Sep 21, 2020

Thank you very much for your reply!
I followed your prompt to add the current directory to the python path to run, but now the problem seems to have not been solved:
from scripts.train import argument_parser
ModuleNotFoundError: No module named 'scripts.train'
Do you know what went wrong?

@VicZlq
Copy link
Author

VicZlq commented Sep 21, 2020

Hello, I checked simsg.pth again just now. It is really under the correct path, and it contains the path information "/home/zlq/simsg", which corresponds to the path content under my file. But now the problem has not been solved.

@he-dhamo
Copy link
Owner

I see.. are you sure that you are using python 3.7 in your environment, like the path indicates?

@VicZlq
Copy link
Author

VicZlq commented Sep 23, 2020

Hello! I just checked the environment configuration, using python3.7.7 version

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