-
Notifications
You must be signed in to change notification settings - Fork 10
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
ModuleNotFoundError: No module named 'src' #7
Comments
I way is to execute script from this project root |
Second way is to set PYTHONPATH
please modify path-to-seranet-directory properly according to your environment. |
Is it the same for train.py? |
Yes, it is same for train.py.
|
D:\SeRanet-master>python src/train.py -a seranet_v1 -g 0 I get the above error. |
I see you are using windows.
|
() D:\SeRanet-master>set PYTHONPATH=D:\SeRanet-master () D:\SeRanet-master>python src/train.py -a seranet_v1 -g 0 I get the above error. |
Well,,, in that case how about adding the following code in top of
|
I changed train.py. |
oh i see... that's wired. |
Running using anaconda command line is used. |
I only tried with normal windows command line. Anyway, the problem should be in PYTHONPATH setting. So If you are using anaconda command line, could you refer this to set correct configuration? |
I am facing the same issue but I don't know how to fix it... my error is PS C:\Users\asdf\Documents\D.S\END-TO-END-PROJECTS\Test> & C:/python/python.exe c:/Users/asdf/Documents/D.S/END-TO-END-PROJECTS/Test/src/exception2.py I have a folder named test in which src and in src there is logger and exception but i'm not able to import logger from src |
Did u solve this error?? I need help |
I used another approach for this
…On Sun, May 26, 2024 at 12:05 PM Kshitija Chilbule ***@***.***> wrote:
I am facing the same issue but I don't know how to fix it... my error is
PS C:\Users\asdf\Documents\D.S\END-TO-END-PROJECTS\Test> &
C:/python/python.exe
c:/Users/asdf/Documents/D.S/END-TO-END-PROJECTS/Test/src/exception2.py
Traceback (most recent call last): File
"c:\Users\asdf\Documents\D.S\END-TO-END-PROJECTS\Test\src\exception2.py",
line 2, in from src.logger import logging ModuleNotFoundError: No module
named 'src' PS C:\Users\asdf\Documents\D.S\END-TO-END-PROJECTS\Test>
I have a folder named test in which src and in src there is logger and
exception but i'm not able to import logger from src
Did u solve this error?? I need help
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWDDN5AEEAIXEOENUH47YWLZEF7DHAVCNFSM4GKEJP22U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJTGIYDQOBWG4ZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I want to do network learning.
・Create data / Training_images
・Place my data set in Training_images
・Run python src / train.py -a seranet_v1 -g 0
I attempted learning by the above procedure.
However, I got an error.
ModuleNotFoundError: No module named 'src'
I studied variously and tried changing it myself, but I could not solve it
The text was updated successfully, but these errors were encountered: