You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: