line_profiler icon indicating copy to clipboard operation
line_profiler copied to clipboard

Compile error on OS X

Open timkofu opened this issue 6 years ago • 6 comments

pip install line_profiler does not compile on OS X.

Here is the log http://sprunge.us/Uxh1G8

timkofu avatar Apr 01 '19 10:04 timkofu

same +1

hylarucoder avatar Apr 10 '19 10:04 hylarucoder

@timkofu

I tried this and solved

pip install Cython git+https://github.com/rkern/line_profiler.git

hylarucoder avatar Apr 10 '19 10:04 hylarucoder

@twocucao worked for me too. So the fix is in master https://github.com/rkern/line_profiler/commit/df8dfc88049effeac5fb77830bc9456052ea5c33

Will leave the issue open in case @caethan wants to close it after making a release with the bugfix.

timkofu avatar Apr 10 '19 11:04 timkofu

maybe its a Cython Problem? @timkofu

hylarucoder avatar Apr 10 '19 11:04 hylarucoder

@twocucao I'm basing my conclusion on; in both cases the cython version is 0.29.6, but the line_profiler on pypi is 2.1.2, and the one installed directly from the github repo is actually older at 2.1.1 So being that line_profiler has the new version with the error and the older one without, that's where the problem is.

timkofu avatar Apr 10 '19 12:04 timkofu

@timkofu

I guess maybe there is something different from installation from githuburl or pypi. because

pip3 install line_profiler==2.1.1

not working too

Actually, I use Poetry to build my package, when i install from github url, it's fine. But When I install my built package which would install line_profiler again , the error comes again.

And I decide not to build line_profiler into mypackage.

hylarucoder avatar Apr 11 '19 01:04 hylarucoder