Open zefciu opened 6 years ago
I can confirm this issue and many others out there seem to have been fixed, e.g. https://github.com/numpy/numpy/issues/10500
also confirming that PyPi installation fails but
pip install Cython git+https://github.com/rkern/line_profiler.git
succeeds
@rkern, would be nice to rebuild the existing sources with a recent Cython version and deploy it as a fix release to pypi. Also see the test fix in #129.
Same issue here. Cannot install line_profiler for python 3.7.
Same issue.
is cython required for line profiler? seems memory profiler is fine w/o afaik. Context: using in jupyter notebook/ipython environment (Mac OS Mojave)
Note: Doesn't seem ipython is even compatible w/ 3.7 yet. How are you guys using lineprofiler?
Update: pip3 install line_profiler
returns this error (Is this related to Cython or solely from lineprofiler?):
sudo pip3 install Cython git+https://github.com/rkern/line_profiler.git
returns this error:
This still happens
A bad solution, I know, but I've published a package lp37
on PyPI to solve this issue.
Please do a release on pypi pretty please
Sorry folks, new baby has been limiting my time. Going to try to get these major fixes in but no guarantees on timing.
I have met this question tonight and cried until now, but it resolved by:
pip install cython
then
sudo pip3 install Cython git+https://github.com/rkern/line_profiler.git
lets have a look
pip install line_profiler
Requirement already satisfied: line_profiler in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (2.1.1) Requirement already satisfied: IPython>=0.13 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from line_profiler) (7.2.0) Requirement already satisfied: appnope; sys_platform == "darwin" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (0.1.0) Requirement already satisfied: jedi>=0.10 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (0.13.1) Requirement already satisfied: pickleshare in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (0.7.4) Requirement already satisfied: pexpect; sys_platform != "win32" in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (4.6.0) Requirement already satisfied: traitlets>=4.2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (4.3.2) Requirement already satisfied: setuptools>=18.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (40.6.2) Requirement already satisfied: pygments in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (2.2.0) Requirement already satisfied: backcall in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (0.1.0) Requirement already satisfied: decorator in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (4.3.0) Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from IPython>=0.13->line_profiler) (2.0.7) Requirement already satisfied: parso>=0.3.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from jedi>=0.10->IPython>=0.13->line_profiler) (0.3.1) Requirement already satisfied: ptyprocess>=0.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pexpect; sys_platform != "win32"->IPython>=0.13->line_profiler) (0.6.0) Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from traitlets>=4.2->IPython>=0.13->line_profiler) (1.11.0) Requirement already satisfied: ipython-genutils in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from traitlets>=4.2->IPython>=0.13->line_profiler) (0.2.0) Requirement already satisfied: wcwidth in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from prompt-toolkit<2.1.0,>=2.0.0->IPython>=0.13->line_profiler) (0.1.7)
thx @beaugunderson @ChanForPres
I can confirm, from fc29 and python3.7.2, I did:
$ pip3 install --user Cython git+https://github.com/rkern/line_profiler.git
And that works flawlessly so far.
While it is possible to install line_profiler from source, installing it from PyPI fails. Probably a separate distribution for this version should be created. Message from pip: