Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed installation: Failed building wheel for Pandana #89

Closed
rafapereirabr opened this issue Aug 9, 2017 · 5 comments
Closed

Failed installation: Failed building wheel for Pandana #89

rafapereirabr opened this issue Aug 9, 2017 · 5 comments

Comments

@rafapereirabr
Copy link

Description of the bug

I'm trying to install pandana but I keep getting an error. I've followed the instructions in the project website. I have Visual C++ 2017 and 2015 installed in my machine. I also had no problem in installing urbansim

Environment

  • Operating system: Windows 10 64bit

  • Python version: 2.7.13

  • Pandana version: 0.4.0

Paste the code that reproduces the issue here:

C:\Anaconda>conda config --add channels udst
C:\Anaconda>conda config --add channels conda-forge
C:\Anaconda>conda install urbansim
C:\Anaconda>conda install pandana

Code output:

This is the error I get if I try to install pandana using conda install

C:\Anaconda>conda install pandana

Fetching package metadata .................
Solving package specifications: .

Package plan for installation in environment C:\Anaconda:

The following NEW packages will be INSTALLED:

    click:           6.7-py27_0    conda-forge
    click-plugins:   1.0.3-py27_0  conda-forge
    cligj:           0.4.0-py27_0  conda-forge
    curl:            7.49.1-vc9_2  conda-forge [vc9]
    descartes:       1.1.0-py27_0  conda-forge
    expat:           2.1.0-vc9_3   conda-forge [vc9]
    fiona:           1.7.8-py27_1  conda-forge
    freexl:          1.0.2-vc9_2   conda-forge [vc9]
    geopandas:       0.2.1-py27_4  conda-forge
    hdf4:            4.2.12-vc9_0  conda-forge [vc9]
    kealib:          1.4.7-vc9_2   conda-forge [vc9]
    krb5:            1.14.2-vc9_0  conda-forge [vc9]
    libgdal:         2.1.4-vc9_2   conda-forge [vc9]
    libiconv:        1.14-vc9_4    conda-forge [vc9]
    libnetcdf:       4.4.1.1-vc9_5 conda-forge [vc9]
    libpq:           9.6.3-vc9_0   conda-forge [vc9]
    libspatialindex: 1.8.5-vc9_1   conda-forge [vc9]
    libspatialite:   4.3.0a-vc9_15 conda-forge [vc9]
    libtiff:         4.0.6-vc9_7   conda-forge [vc9]
    libxml2:         2.9.4-vc9_4   conda-forge [vc9]
    munch:           2.2.0-py27_0  conda-forge
    openjpeg:        2.1.2-vc9_3   conda-forge [vc9]
    osmnet:          0.1.4-py27_0  conda-forge
    proj4:           4.9.3-vc9_4   conda-forge [vc9]
    pysal:           1.13.0-py27_0 conda-forge
    rtree:           0.8.3-py27_0  conda-forge
    sqlite:          3.13.0-vc9_1  conda-forge [vc9]
    vs2015_runtime:  14.0.25420-0  conda-forge
    xerces-c:        3.1.4-vc9_3   conda-forge [vc9]
    xz:              5.2.2-0       conda-forge

The following packages will be UPDATED:

    pandana:         0.1.2-py27_0  synthicity  --> 0.3.0-py27_0 udst

Proceed ([y]/n)? y

Paste the error message (if applicable):

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-console-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-file-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-file-l2-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-handle-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-heap-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-libraryloader-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-localization-l1-2-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-memory-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-processenvironment-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-processthreads-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-processthreads-l1-1-1.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-rtlsupport-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-synch-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-synch-l1-2-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-sysinfo-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-core-timezone-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-conio-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-convert-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-environment-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-filesystem-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-heap-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-locale-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-math-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-multibyte-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-private-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-process-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-runtime-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-stdio-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-string-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-time-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/api-ms-win-crt-utility-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/concrt140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/msvcp140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/ucrtbase.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/vccorlib140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/vcomp140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'Library/bin/vcruntime140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-console-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-datetime-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-errorhandling-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-file-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-file-l1-2-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-file-l2-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-handle-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-heap-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-libraryloader-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-localization-l1-2-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-memory-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-processenvironment-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-processthreads-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-processthreads-l1-1-1.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-rtlsupport-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-synch-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-synch-l1-2-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-core-sysinfo-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-conio-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-convert-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-environment-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-filesystem-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-heap-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-locale-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-math-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-multibyte-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-private-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-process-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-runtime-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-stdio-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-string-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-time-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'api-ms-win-crt-utility-l1-1-0.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'concrt140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'msvcp140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'ucrtbase.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'vccorlib140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'vcomp140.dll'
specified in the package manifest cannot be found.

CondaVerificationError: The package for vs2015_runtime located at C:\Anaconda\pkgs\vs2015_runtime-14.0.25420-0
appears to be corrupted. The path 'vcruntime140.dll'
specified in the package manifest cannot be found.

Code output:

This is the error I get if I try to install pandana using pip install

C:\Anaconda>pip install -U pandana

Collecting pandana
  Using cached pandana-0.4.0.1.zip
Requirement already up-to-date: matplotlib>=1.3.1 in c:\anaconda\lib\site-packages (from pandana)
Requirement already up-to-date: numpy>=1.8.0 in c:\anaconda\lib\site-packages (from pandana)
Requirement already up-to-date: pandas>=0.17.0 in c:\anaconda\lib\site-packages (from pandana)
Requirement already up-to-date: requests>=2.0 in c:\anaconda\lib\site-packages (from pandana)
Requirement already up-to-date: tables>=3.1.0 in c:\anaconda\lib\site-packages (from pandana)
Requirement already up-to-date: osmnet>=0.1.2 in c:\anaconda\lib\site-packages (from pandana)
Requirement already up-to-date: cython>=0.25.2 in c:\anaconda\lib\site-packages (from pandana)
Requirement already up-to-date: scikit-learn>=0.18.1 in c:\anaconda\lib\site-packages (from pandana)
Requirement already up-to-date: six>=1.10 in c:\anaconda\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already up-to-date: python-dateutil in c:\anaconda\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already up-to-date: functools32 in c:\anaconda\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already up-to-date: pytz in c:\anaconda\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already up-to-date: cycler>=0.10 in c:\anaconda\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already up-to-date: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 in c:\anaconda\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in c:\anaconda\lib\site-packages (from requests>=2.0->pandana)
Requirement already up-to-date: idna<2.6,>=2.5 in c:\anaconda\lib\site-packages (from requests>=2.0->pandana)
Requirement already up-to-date: urllib3<1.23,>=1.21.1 in c:\anaconda\lib\site-packages (from requests>=2.0->pandana)
Requirement already up-to-date: certifi>=2017.4.17 in c:\anaconda\lib\site-packages (from requests>=2.0->pandana)
Requirement already up-to-date: numexpr>=2.5.2 in c:\anaconda\lib\site-packages (from tables>=3.1.0->pandana)
Requirement already up-to-date: Shapely>=1.5 in c:\anaconda\lib\site-packages (from osmnet>=0.1.2->pandana)
Requirement already up-to-date: geopandas>=0.2.1 in c:\anaconda\lib\site-packages (from osmnet>=0.1.2->pandana)
Collecting descartes (from geopandas>=0.2.1->osmnet>=0.1.2->pandana)
  Using cached descartes-1.1.0-py2-none-any.whl
Collecting pyproj (from geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Collecting fiona (from geopandas>=0.2.1->osmnet>=0.1.2->pandana)
  Using cached Fiona-1.7.8.tar.gz
Collecting cligj (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
  Using cached cligj-0.4.0-py2-none-any.whl
Collecting click-plugins (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Collecting munch (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Requirement already up-to-date: enum34 in c:\anaconda\lib\site-packages (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Collecting click>=4.0 (from cligj->fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
  Using cached click-6.7-py2.py3-none-any.whl
Building wheels for collected packages: pandana, fiona
  Running setup.py bdist_wheel for pandana ... error
  Complete output from command c:\anaconda\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\rafa\\appdata\\local\\temp\\pip-build-gkovnp\\pandana\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\rafa\appdata\local\temp\tmpeszrqkpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-2.7
  creating build\lib.win-amd64-2.7\pandana
  copying pandana\network.py -> build\lib.win-amd64-2.7\pandana
  copying pandana\testing.py -> build\lib.win-amd64-2.7\pandana
  copying pandana\utils.py -> build\lib.win-amd64-2.7\pandana
  copying pandana\__init__.py -> build\lib.win-amd64-2.7\pandana
  creating build\lib.win-amd64-2.7\pandana\loaders
  copying pandana\loaders\osm.py -> build\lib.win-amd64-2.7\pandana\loaders
  copying pandana\loaders\pandash5.py -> build\lib.win-amd64-2.7\pandana\loaders
  copying pandana\loaders\__init__.py -> build\lib.win-amd64-2.7\pandana\loaders
  running build_ext
  skipping 'src\cyaccess.cpp' Cython extension (up-to-date)
  building 'pandana.cyaccess' extension
  creating build\temp.win-amd64-2.7
  creating build\temp.win-amd64-2.7\Release
  creating build\temp.win-amd64-2.7\Release\src
  creating build\temp.win-amd64-2.7\Release\src\contraction_hierarchies
  creating build\temp.win-amd64-2.7\Release\src\contraction_hierarchies\src
  C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I. -Ic:\anaconda\include -Ic:\anaconda\PC -Ic:\anaconda\lib\site-packages\numpy\core\include /Tpsrc/accessibility.cpp /Fobuild\temp.win-amd64-2.7\Release\src/accessibility.obj /w /openmp
  cl : Command line warning D9025 : overriding '/W3' with '/w'
  accessibility.cpp
  C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
  c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\src\accessibility.h(60) : error C2059: syntax error : '{'
  c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\src\accessibility.h(60) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\src\accessibility.h(73) : error C2059: syntax error : '{'
  c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\src\accessibility.h(73) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  src/accessibility.cpp(125) : error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>'
          with
          [
              _Kty=std::string,
              _Ty=MTC::accessibility::Accessibility::accessibility_vars_t
          ]
  src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
  src/accessibility.cpp(213) : error C2228: left of '.begin' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
  src/accessibility.cpp(213) : error C2228: left of '.end' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(214) : error C2065: 'aggregations' : undeclared identifier
  src/accessibility.cpp(214) : error C2228: left of '.end' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
  src/accessibility.cpp(215) : error C2228: left of '.begin' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
  src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
  src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
          type is ''unknown-type''
  error: command 'C:\\Users\\rafa\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for pandana
  Running setup.py clean for pandana
  Running setup.py bdist_wheel for fiona ... error
  Complete output from command c:\anaconda\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\rafa\\appdata\\local\\temp\\pip-build-gkovnp\\fiona\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\rafa\appdata\local\temp\tmpp7nvv9pip-wheel- --python-tag cp27:
  c:\anaconda\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'metadata_version'
    warnings.warn(msg)
  c:\anaconda\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'requires_python'
    warnings.warn(msg)
  c:\anaconda\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'requires_external'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-2.7
  creating build\lib.win-amd64-2.7\fiona
  copying .\fiona\collection.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\compat.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\crs.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\drvsupport.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\errors.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\inspector.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\rfc3339.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\tool.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\transform.py -> build\lib.win-amd64-2.7\fiona
  copying .\fiona\__init__.py -> build\lib.win-amd64-2.7\fiona
  creating build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\bounds.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\calc.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\cat.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\collect.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\distrib.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\dump.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\env.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\filter.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\helpers.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\info.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\insp.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\load.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\ls.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\main.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\options.py -> build\lib.win-amd64-2.7\fiona\fio
  copying .\fiona\fio\__init__.py -> build\lib.win-amd64-2.7\fiona\fio
  running build_ext
  building 'fiona._transform' extension
  creating build\temp.win-amd64-2.7
  creating build\temp.win-amd64-2.7\Release
  creating build\temp.win-amd64-2.7\Release\fiona
  C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\anaconda\include -Ic:\anaconda\PC /Tpfiona/_transform.cpp /Fobuild\temp.win-amd64-2.7\Release\fiona/_transform.obj
  _transform.cpp
  fiona/_transform.cpp(469) : fatal error C1083: Cannot open include file: 'cpl_conv.h': No such file or directory
  error: command 'C:\\Users\\rafa\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for fiona
  Running setup.py clean for fiona
Failed to build pandana fiona
Installing collected packages: pandana, descartes, pyproj, click, cligj, click-plugins, munch, fiona
  Running setup.py install for pandana ... error
    Complete output from command c:\anaconda\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\rafa\\appdata\\local\\temp\\pip-build-gkovnp\\pandana\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\rafa\appdata\local\temp\pip-rycrsq-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\pandana
    copying pandana\network.py -> build\lib.win-amd64-2.7\pandana
    copying pandana\testing.py -> build\lib.win-amd64-2.7\pandana
    copying pandana\utils.py -> build\lib.win-amd64-2.7\pandana
    copying pandana\__init__.py -> build\lib.win-amd64-2.7\pandana
    creating build\lib.win-amd64-2.7\pandana\loaders
    copying pandana\loaders\osm.py -> build\lib.win-amd64-2.7\pandana\loaders
    copying pandana\loaders\pandash5.py -> build\lib.win-amd64-2.7\pandana\loaders
    copying pandana\loaders\__init__.py -> build\lib.win-amd64-2.7\pandana\loaders
    running build_ext
    skipping 'src\cyaccess.cpp' Cython extension (up-to-date)
    building 'pandana.cyaccess' extension
    creating build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release
    creating build\temp.win-amd64-2.7\Release\src
    creating build\temp.win-amd64-2.7\Release\src\contraction_hierarchies
    creating build\temp.win-amd64-2.7\Release\src\contraction_hierarchies\src
    C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I. -Ic:\anaconda\include -Ic:\anaconda\PC -Ic:\anaconda\lib\site-packages\numpy\core\include /Tpsrc/accessibility.cpp /Fobuild\temp.win-amd64-2.7\Release\src/accessibility.obj /w /openmp
    cl : Command line warning D9025 : overriding '/W3' with '/w'
    accessibility.cpp
    C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
    c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\src\accessibility.h(60) : error C2059: syntax error : '{'
    c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\src\accessibility.h(60) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\src\accessibility.h(73) : error C2059: syntax error : '{'
    c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\src\accessibility.h(73) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    src/accessibility.cpp(125) : error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>'
            with
            [
                _Kty=std::string,
                _Ty=MTC::accessibility::Accessibility::accessibility_vars_t
            ]
    src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
    src/accessibility.cpp(213) : error C2228: left of '.begin' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
    src/accessibility.cpp(213) : error C2228: left of '.end' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(214) : error C2065: 'aggregations' : undeclared identifier
    src/accessibility.cpp(214) : error C2228: left of '.end' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
    src/accessibility.cpp(215) : error C2228: left of '.begin' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
    src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
    src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
            type is ''unknown-type''
    error: command 'C:\\Users\\rafa\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

    ----------------------------------------

Error message

Command "c:\anaconda\python.exe -u -c "import setuptools, tokenize;file='c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\rafa\appdata\local\temp\pip-rycrsq-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\rafa\appdata\local\temp\pip-build-gkovnp\pandana\

Finally, yhis is the error I get if I try to install pandana using easy_install

C:\Anaconda>easy_install pandana

Searching for pandana
Reading https://pypi.python.org/simple/pandana/
Downloading https://pypi.python.org/packages/e3/a2/8285f08ef1dd7f1fd8d2110661b3978291d62b5afa27b61d9e0d2830d055/pandana-0.4.0.1.zip#md5=0658f2e1ef5ef8ddcf6650b03df8f8f2
Best match: pandana 0.4.0.1
Processing pandana-0.4.0.1.zip
Writing c:\users\rafa\appdata\local\temp\easy_install-twmkyv\pandana-0.4.0\setup.cfg
Running pandana-0.4.0\setup.py -q bdist_egg --dist-dir c:\users\rafa\appdata\local\temp\easy_install-twmkyv\pandana-0.4.0\egg-dist-tmp-ghztiu
cl : Command line warning D9025 : overriding '/W3' with '/w'
accessibility.cpp
C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
c:\users\rafa\appdata\local\temp\easy_install-twmkyv\pandana-0.4.0\src\accessibility.h(60) : error C2059: syntax error : '{'
c:\users\rafa\appdata\local\temp\easy_install-twmkyv\pandana-0.4.0\src\accessibility.h(60) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
c:\users\rafa\appdata\local\temp\easy_install-twmkyv\pandana-0.4.0\src\accessibility.h(73) : error C2059: syntax error : '{'
c:\users\rafa\appdata\local\temp\easy_install-twmkyv\pandana-0.4.0\src\accessibility.h(73) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
src/accessibility.cpp(125) : error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>'
        with
        [
            _Kty=std::string,
            _Ty=MTC::accessibility::Accessibility::accessibility_vars_t
        ]
src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
src/accessibility.cpp(213) : error C2228: left of '.begin' must have class/struct/union
        type is ''unknown-type''
src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
src/accessibility.cpp(213) : error C2228: left of '.end' must have class/struct/union
        type is ''unknown-type''
src/accessibility.cpp(214) : error C2065: 'aggregations' : undeclared identifier
src/accessibility.cpp(214) : error C2228: left of '.end' must have class/struct/union
        type is ''unknown-type''
src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
src/accessibility.cpp(215) : error C2228: left of '.begin' must have class/struct/union
        type is ''unknown-type''
src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
        type is ''unknown-type''
src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
        type is ''unknown-type''
error: Setup script exited with error: command 

###errror

'C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2

@sablanchard
Copy link
Collaborator

Hi @rafapereirabr, it looks like the build errors may be due to the windows installation of spatial package dependencies required for osmnet such as fiona and gdal. I would suggest to install osmnet first before pandana and install the wheels for your version of windows for fiona and gdal if you have not already done so following these instructions: https://udst.github.io/osmnet/installation.html. Additionally, if you wish to have the latest version of pandana for windows with python 2.7, use pip install pandana instead of conda install pandana as the build for python 2.7 for windows on conda is only up to 0.3.0 right now.

Please let us know if you solve the issue and any steps you took to fix if they differ from these instructions.

@rafapereirabr
Copy link
Author

rafapereirabr commented Feb 7, 2018

Hi Sam. Thanks for your help.

I've followed your recommendation and I've installed fiona and gdal wheels first, then osmnet and only then I tried to install pandana.

I pasted the full error report below, and this line seems to give a clue Running setup.py bdist_wheel for pandana ... error.

(C:\Users\rafa\AppData\Local\conda\conda\envs\my_root) C:\Users\rafa\Downloads>pip install pandana
Collecting pandana
  Using cached pandana-0.4.0.1.zip
Requirement already satisfied: matplotlib>=1.3.1 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from pandana)
Requirement already satisfied: numpy>=1.8.0 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from pandana)
Requirement already satisfied: pandas>=0.17.0 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from pandana)
Requirement already satisfied: requests>=2.0 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from pandana)
Requirement already satisfied: tables>=3.1.0 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from pandana)
Requirement already satisfied: osmnet>=0.1.2 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from pandana)
Requirement already satisfied: cython>=0.25.2 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from pandana)
Requirement already satisfied: scikit-learn>=0.18.1 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from pandana)
Requirement already satisfied: python-dateutil>=2.0 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already satisfied: backports.functools-lru-cache in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already satisfied: cycler>=0.10 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already satisfied: six>=1.10 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already satisfied: pytz in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from matplotlib>=1.3.1->pandana)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from requests>=2.0->pandana)
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from requests>=2.0->pandana)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from requests>=2.0->pandana)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from requests>=2.0->pandana)
Requirement already satisfied: numexpr>=2.5.2 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from tables>=3.1.0->pandana)
Requirement already satisfied: geopandas>=0.2.1 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from osmnet>=0.1.2->pandana)
Requirement already satisfied: Shapely>=1.5 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from osmnet>=0.1.2->pandana)
Requirement already satisfied: fiona in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Requirement already satisfied: descartes in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Requirement already satisfied: pyproj in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Requirement already satisfied: click-plugins in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Requirement already satisfied: munch in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Requirement already satisfied: enum34 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Requirement already satisfied: cligj in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Requirement already satisfied: click>=3.0 in c:\users\rafa\appdata\local\conda\conda\envs\my_root\lib\site-packages (from click-plugins->fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana)
Building wheels for collected packages: pandana
  Running setup.py bdist_wheel for pandana ... error
  Complete output from command C:\Users\rafa\AppData\Local\conda\conda\envs\my_root\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\rafa\\appdata\\local\\temp\\pip-build-2d6cr7\\pandana\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\rafa\appdata\local\temp\tmpsk42kjpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-2.7
  creating build\lib.win-amd64-2.7\pandana
  copying pandana\network.py -> build\lib.win-amd64-2.7\pandana
  copying pandana\testing.py -> build\lib.win-amd64-2.7\pandana
  copying pandana\utils.py -> build\lib.win-amd64-2.7\pandana
  copying pandana\__init__.py -> build\lib.win-amd64-2.7\pandana
  creating build\lib.win-amd64-2.7\pandana\loaders
  copying pandana\loaders\osm.py -> build\lib.win-amd64-2.7\pandana\loaders
  copying pandana\loaders\pandash5.py -> build\lib.win-amd64-2.7\pandana\loaders
  copying pandana\loaders\__init__.py -> build\lib.win-amd64-2.7\pandana\loaders
  running build_ext
  skipping 'src\cyaccess.cpp' Cython extension (up-to-date)
  building 'pandana.cyaccess' extension
  creating build\temp.win-amd64-2.7
  creating build\temp.win-amd64-2.7\Release
  creating build\temp.win-amd64-2.7\Release\src
  creating build\temp.win-amd64-2.7\Release\src\contraction_hierarchies
  creating build\temp.win-amd64-2.7\Release\src\contraction_hierarchies\src
  C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I. -IC:\Users\rafa\AppData\Local\conda\conda\envs\my_root\include -IC:\Users\rafa\AppData\Local\conda\conda\envs\my_root\PC -IC:\Users\rafa\AppData\Local\conda\conda\envs\my_root\lib\site-packages\numpy\core\include /Tpsrc/accessibility.cpp /Fobuild\temp.win-amd64-2.7\Release\src/accessibility.obj /w /openmp
  cl : Command line warning D9025 : overriding '/W3' with '/w'
  accessibility.cpp
  C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
  c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\src\accessibility.h(60) : error C2059: syntax error : '{'
  c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\src\accessibility.h(60) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\src\accessibility.h(73) : error C2059: syntax error : '{'
  c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\src\accessibility.h(73) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  src/accessibility.cpp(125) : error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>'
          with
          [
              _Kty=std::string,
              _Ty=MTC::accessibility::Accessibility::accessibility_vars_t
          ]
  src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
  src/accessibility.cpp(213) : error C2228: left of '.begin' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
  src/accessibility.cpp(213) : error C2228: left of '.end' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(214) : error C2065: 'aggregations' : undeclared identifier
  src/accessibility.cpp(214) : error C2228: left of '.end' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
  src/accessibility.cpp(215) : error C2228: left of '.begin' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
  src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
          type is ''unknown-type''
  src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
  src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
          type is ''unknown-type''
  error: command 'C:\\Users\\rafa\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for pandana
  Running setup.py clean for pandana
Failed to build pandana
Installing collected packages: pandana
  Running setup.py install for pandana ... error
    Complete output from command C:\Users\rafa\AppData\Local\conda\conda\envs\my_root\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\rafa\\appdata\\local\\temp\\pip-build-2d6cr7\\pandana\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\rafa\appdata\local\temp\pip-7ptrkh-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\pandana
    copying pandana\network.py -> build\lib.win-amd64-2.7\pandana
    copying pandana\testing.py -> build\lib.win-amd64-2.7\pandana
    copying pandana\utils.py -> build\lib.win-amd64-2.7\pandana
    copying pandana\__init__.py -> build\lib.win-amd64-2.7\pandana
    creating build\lib.win-amd64-2.7\pandana\loaders
    copying pandana\loaders\osm.py -> build\lib.win-amd64-2.7\pandana\loaders
    copying pandana\loaders\pandash5.py -> build\lib.win-amd64-2.7\pandana\loaders
    copying pandana\loaders\__init__.py -> build\lib.win-amd64-2.7\pandana\loaders
    running build_ext
    skipping 'src\cyaccess.cpp' Cython extension (up-to-date)
    building 'pandana.cyaccess' extension
    creating build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release
    creating build\temp.win-amd64-2.7\Release\src
    creating build\temp.win-amd64-2.7\Release\src\contraction_hierarchies
    creating build\temp.win-amd64-2.7\Release\src\contraction_hierarchies\src
    C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I. -IC:\Users\rafa\AppData\Local\conda\conda\envs\my_root\include -IC:\Users\rafa\AppData\Local\conda\conda\envs\my_root\PC -IC:\Users\rafa\AppData\Local\conda\conda\envs\my_root\lib\site-packages\numpy\core\include /Tpsrc/accessibility.cpp /Fobuild\temp.win-amd64-2.7\Release\src/accessibility.obj /w /openmp
    cl : Command line warning D9025 : overriding '/W3' with '/w'
    accessibility.cpp
    C:\Users\rafa\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
    c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\src\accessibility.h(60) : error C2059: syntax error : '{'
    c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\src\accessibility.h(60) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\src\accessibility.h(73) : error C2059: syntax error : '{'
    c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\src\accessibility.h(73) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    src/accessibility.cpp(125) : error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>'
            with
            [
                _Kty=std::string,
                _Ty=MTC::accessibility::Accessibility::accessibility_vars_t
            ]
    src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
    src/accessibility.cpp(213) : error C2228: left of '.begin' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(213) : error C2065: 'aggregations' : undeclared identifier
    src/accessibility.cpp(213) : error C2228: left of '.end' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(214) : error C2065: 'aggregations' : undeclared identifier
    src/accessibility.cpp(214) : error C2228: left of '.end' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
    src/accessibility.cpp(215) : error C2228: left of '.begin' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
    src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
            type is ''unknown-type''
    src/accessibility.cpp(215) : error C2065: 'decays' : undeclared identifier
    src/accessibility.cpp(215) : error C2228: left of '.end' must have class/struct/union
            type is ''unknown-type''
    error: command 'C:\\Users\\rafa\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "C:\Users\rafa\AppData\Local\conda\conda\envs\my_root\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\rafa\\appdata\\local\\temp\\pip-build-2d6cr7\\pandana\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\rafa\appdata\local\temp\pip-7ptrkh-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\rafa\appdata\local\temp\pip-build-2d6cr7\pandana\

@sablanchard
Copy link
Collaborator

@rafapereirabr looking at this line src/accessibility.cpp(125) : error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>' it seems you are using a compiler that does not support the at() method that was added in c++11. You will need to use a compiler that supports that standard to compile the code. Please let us know if you are able to fix the issue.

@rafapereirabr
Copy link
Author

I have installed Microsoft Visual C++ Redistributable for Visual Studio 2017, restarted my pc and tried installing pandana but I still get the same error. Would have any recommendation on how can I get around this issue?

@sablanchard
Copy link
Collaborator

@rafapereirabr version 0.4.1 was released to conda last week and should fix this issue. Install via: conda install -c udst pandana=0.4.1. Will close this for now but please test and let us know and we can reopen if it has not been fixed. See related issue #95 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants