I try to analyze my module but when i launch kernprof, I have the following error:
ValueError: Attempted relative import in non-package
I try several method to launch kernprof:
kernprof -l -v mymodule.__main__
the error is:
IOError: [Errno 2] No such file or directory: mymodule.__main__
kernprof -l -v mymodule/__main__.py
the error is:
ValueError: Attempted relative import in non-package
Normally i use the following command to launch my script:
python -m mymodule.__main__
Hi,
I try to analyze my module but when i launch kernprof, I have the following error:
ValueError: Attempted relative import in non-package
I try several method to launch kernprof:kernprof -l -v mymodule.__main__
the error is:IOError: [Errno 2] No such file or directory: mymodule.__main__
kernprof -l -v mymodule/__main__.py
the error is:ValueError: Attempted relative import in non-package
Normally i use the following command to launch my script:
python -m mymodule.__main__
Thank you very much