Closed gracecarrillo closed 4 years ago
UPDATE. Here's what I did and it fixed the problem:
First, since I am using Collaboratory, I just re-started my session for pandana to uninstall.
I then upgraded Cython:
import sys
!{sys.executable} -m pip install --upgrade cython
# Output:
Collecting cython
Downloading https://files.pythonhosted.org/packages/45/f2/a7101b3457561e57f5abcd6f5ac13190054fecd7370f58f36fe2d6574742/Cython-0.29.13-cp36-cp36m-manylinux1_x86_64.whl (2.1MB)
|████████████████████████████████| 2.1MB 1.9MB/s eta 0:00:01
Installing collected packages: cython
Successfully installed cython-0.29.13
Only then, I installed pandana:
!{sys.executable} -m pip install pandana
And is now working just fine.
So it seems this post (github.com/cython/cython/issues/1953#issuecomment-398128940) makes sense. The cython implemented package was built with the incorrect Cython version to begin with. Had to uninstall, then upgrade Cython and only then, install pandana.
Hi @gracecarrillo,
Thanks for posting the solution for this! We haven't done any testing with installation in JupyterLab before, but it seems like we should.
It's possible that requiring a specific version of Cython in the Pandana setup code would help with this -- i'll look into it.
Sam
Hi,
I've installed pandana from git:
!{sys.executable} -m pip install git+git://github.com/udst/pandana.git
on my jupyterlab:
/home/jupyterlab/conda/envs/python/lib/python3.6/site-packages (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana) (7.0)
I'm running this code :
I'm following this Geoff Boeing's tutorial: andana-accessibility-demo-full.ipynb
When I run the code I get the following error:
The
reduce_cython
error appears a few times when I search in Google but I haven't been able to find something that solves my issue. So far, I've tried updating cython and numpy, which appears to have worked for other people when facing a related issue:Unfortunately this didn't solve the error for me.
Hope anyone can shed some light?
Thanks so much for your help!