Open ghost opened 6 years ago
This is seems to be an issue with the precompiled .c files being used instead of running cython over .pyx. Here is a workaround:
git clone https://github.com/rkern/line_profiler.git
find line_profiler -name '*.pyx' -exec cython {} \;
cd line_profiler && pip install . --user
I encountered exactly the same problem. The solution works perfectly. Thank you!
+1 for the fix, could you fix this issue. thank you
Pandas and others had the same issue pandas-dev/pandas#21785. Could you please make a new release with the latest Cython ?
The issue has been here for months but no patch yet, is someone going to put it on pypi?
Also had this issue, also fixed by @tazzaoui 's comment. Thanks.
Same issue here. Thanks for the workaround.
+1
What if I don't have it?
For me, a direct install from github was also working:
pip install git+https://github.com/rkern/line_profiler
When Cython
is installed, this should work, otherwise, the following may cause problems:
I was using Ubuntu installed on windows and also needed to install gcc (via sudo apt install gcc) before the pip install git+.
Unable to install with python3.7.