rkern / line_profiler

(OLD REPO) Line-by-line profiling for Python - Current repo ->
https://github.com/pyutils/line_profiler
Other
3.61k stars 254 forks source link

'line_profiler' is a package and cannot be directly executed #176

Closed donglixp closed 4 years ago

donglixp commented 4 years ago

Command: python -m line_profiler test.py.lprof

Error messages:

/data/anaconda/envs/p36/bin/python: No module named line_profiler.__main__; 'line_profiler' is a package and cannot be directly executed
rkern commented 4 years ago

Please direct this to the new home: https://github.com/pyutils/line_profiler

That transformation into a package happened there.

timbmg commented 4 years ago

Facing the same and wanted to create the issue on the new repo. But I think you'd need to allow issues on that fork @rkern

rkern commented 4 years ago

I'm not related to that fork.

jakevdp commented 4 years ago

If anyone comes across this, the issue seems to be with the 3.0 release on January 6. If you pip install line_profiler~=2.0 it should work as advertised.

I'd raise the issue on the new repo, but it doesn't appear to be accepting issues.

rkern commented 4 years ago

@Erotemic Can you allow issues on the new fork so these issues can be reported appropriately? Thank you.

Erotemic commented 4 years ago

Didn't realize forks didn't have issues enabled by default. I enabled it.

@rkern I also invited you to the pyutils organization in case you want to continue to be involved with the package.

Erotemic commented 4 years ago

@donglixp @jakevdp @timbmg This issue should be resolved in the latest 3.0.1 release, please try it out and let me know if there are any issues. The pyutils fork can now accept issues, so please post them there.