gboeing / osmnx

OSMnx is a Python package to easily download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap.
https://osmnx.readthedocs.io
MIT License
4.88k stars 827 forks source link

overpass_request Exception: Server returned no JSON data. #24

Closed jtsitron closed 7 years ago

jtsitron commented 7 years ago

Trying to follow your examples/tutorials and each time I run any "graphfrom*" method I get an exception:

Exception: Server returned no JSON data.
<Response [404]> Not Found
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;} 
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;} 
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
 </fieldset></div>
</div>
</body>
</html>

I'm in Windows 7, installed osmnx via

conda install -c conda-forge osmnx

and pretty sure I have necessary dependencies.

Please let me know if I can add further details about my setup.

Thanks so much in advance!

gboeing commented 7 years ago

Huh. Would you mind trying it again? I'm wondering if the Overpass API was temporarily down, because everything seems to be working fine now. I just tested it -- server responded as expected, without a hitch.

jtsitron commented 7 years ago

Thanks for the quick reply!!

Yeah - that's what I was thinking too, but the problem seems to be on my side. Just tried again, same error.

gboeing commented 7 years ago

Do you have it installed in a virtual env? If so can you post the full environment package list?

jtsitron commented 7 years ago

this is in my conda env:

_license                  1.1                      py27_1
_nb_ext_conf              0.3.0                    py27_0
affine                    2.0.0.post1               <pip>
alabaster                 0.7.9                    py27_0
anaconda                  custom                   py27_0
anaconda-clean            1.0.0                    py27_0
anaconda-client           1.5.1                    py27_0
anaconda-navigator        1.2.3                    py27_0
argcomplete               1.0.0                    py27_1
astroid                   1.4.7                    py27_0
astropy                   1.2.1               np111py27_0
babel                     2.3.4                    py27_0
backports                 1.0                      py27_0
backports-abc             0.5                       <pip>
backports.shutil_which    3.5.1                     <pip>
backports_abc             0.4                      py27_0
beautifulsoup4            4.5.1                    py27_0
bitarray                  0.8.1                    py27_1
blaze                     0.10.1                   py27_0
bokeh                     0.12.3                   py27_1
boto                      2.42.0                   py27_0
bottleneck                1.1.0               np111py27_0
bzip2                     1.0.6                     vc9_3  [vc9]
cdecimal                  2.3                      py27_2
certifi                   2016.9.26                 <pip>
cffi                      1.7.0                    py27_0
chest                     0.2.3                    py27_0
click                     6.6                      py27_0
click-plugins             1.0.3                    py27_0    conda
cligj                     0.4.0                    py27_0    conda
cloudpickle               0.2.1                    py27_0
clyent                    1.2.2                    py27_0
colorama                  0.3.7                    py27_0
comtypes                  1.1.2                    py27_0
conda                     4.2.13                   py27_0    conda
conda-build               2.0.2                    py27_0
conda-env                 2.6.0                         0    conda
configobj                 5.0.6                    py27_0
configparser              3.5.0                    py27_0
console_shortcut          0.1.1                    py27_1
contextlib2               0.5.3                    py27_0
cryptography              1.5                      py27_0
curl                      7.49.0                    vc9_0  [vc9]
cycler                    0.10.0                   py27_0
cython                    0.24.1                   py27_0
cytoolz                   0.8.0                    py27_0
dask                      0.11.0                   py27_0
datashader                0.4.0                    py27_0    bokeh
datashape                 0.5.2                    py27_0
decorator                 4.0.10                   py27_0
descartes                 1.0.2                    py27_0    conda
dill                      0.2.5                    py27_0
docutils                  0.12                     py27_2
entrypoints               0.2.2                    py27_0
enum34                    1.1.6                    py27_0
et_xmlfile                1.0.1                    py27_0
expat                     2.1.0                     vc9_2  [vc9]
fastcache                 1.0.2                    py27_1
filelock                  2.0.6                    py27_0
fiona                     1.7.1               np111py27_1    conda
flask                     0.11.1                   py27_0
flask-cors                2.1.2                    py27_0
folium                    0.2.1                     <pip>
freetype                  2.5.5                     vc9_1  [vc9]
freexl                    1.0.2                     vc9_1  [vc9]
funcsigs                  1.0.2                    py27_0
functools32               3.2.3.2                  py27_0
future                    0.16.0                    <pip>
futures                   3.0.5                    py27_0
gdal                      2.1.2           np111py27_vc9_5  [vc9]
geojson                   1.3.3                     <pip>
geopandas                 0.2.1                    py27_3    conda
geopy                     1.11.0                    <pip>
geopy                     1.11.0                   py27_0    conda
geos                      3.5.1                     vc9_1  [vc9]
get_terminal_size         1.0.0                    py27_0
gevent                    1.1.2                    py27_0
greenlet                  0.4.10                   py27_0
grin                      1.2.1                    py27_3
h5py                      2.6.0               np111py27_7    conda
hdf4                      4.2.12                    vc9_0  [vc9]
hdf5                      1.8.17                    vc9_8  [vc9]
heapdict                  1.0.0                    py27_1
icu                       57.1                      vc9_0  [vc9]
idna                      2.1                      py27_0
imagesize                 0.7.1                    py27_0
ipaddress                 1.0.16                   py27_0
ipykernel                 4.5.0                    py27_0
ipython                   5.1.0                    py27_0
ipython_genutils          0.1.0                    py27_0
ipywidgets                5.2.2                    py27_0
itsdangerous              0.24                     py27_0
jdcal                     1.2                      py27_1
jedi                      0.9.0                    py27_1
jinja2                    2.8                      py27_1
jpeg                      9b                        vc9_0  [vc9]
jsonschema                2.5.1                    py27_0
jupyter                   1.0.0                    py27_3
jupyter-core              4.2.1                     <pip>
jupyter_client            4.4.0                    py27_0
jupyter_console           5.0.0                    py27_0
jupyter_core              4.2.0                    py27_0
kealib                    1.4.6                     vc9_3  [vc9]
lazy-object-proxy         1.2.1                    py27_0
libiconv                  1.14                      vc9_4  [vc9]
libnetcdf                 4.4.1.1                   vc9_2  [vc9]
libpng                    1.6.26                    vc9_0  [vc9]
libpq                     9.5.4                     vc9_3  [vc9]
libspatialindex           1.8.5                     vc9_1  [vc9]
libspatialite             4.3.0a                   vc9_13  [vc9]
libtiff                   4.0.6                     vc9_7  [vc9]
libxml2                   2.9.3                     vc9_9  [vc9]
llvmlite                  0.13.0                   py27_0
locket                    0.2.0                    py27_1
lxml                      3.6.4                    py27_0
m2w64-bwidget             1.9.10                        2
m2w64-bzip2               1.0.6                         6
m2w64-c-ares              1.11.0                        2
m2w64-ca-certificates     20150426                    103
m2w64-curl                7.48.0                        2
m2w64-expat               2.1.1                         2
m2w64-fftw                3.3.4                         6
m2w64-flac                1.3.1                         3
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gettext             0.19.7                        2
m2w64-gmp                 6.1.0                         2
m2w64-gnutls              3.4.11                        2
m2w64-gsl                 2.1                           2
m2w64-jansson             2.7                           3
m2w64-libffi              3.2.1                         4
m2w64-libiconv            1.14                          6
m2w64-libidn              1.32                          4
m2w64-libjpeg-turbo       1.4.2                         3
m2w64-libmetalink         0.1.3                         2
m2w64-libogg              1.3.2                         3
m2w64-libpng              1.6.21                        2
m2w64-libsndfile          1.0.26                        2
m2w64-libssh2             1.7.0                         2
m2w64-libsystre           1.0.1                         3
m2w64-libtasn1            4.7                           2
m2w64-libtiff             4.0.6                         2
m2w64-libtre-git          122.c2f5d13                   5
m2w64-libvorbis           1.3.5                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
m2w64-libxml2             2.9.3                         3
m2w64-mpfr                3.1.4                         4
m2w64-nettle              3.1.1                         4
m2w64-nghttp2             1.9.2                         2
m2w64-nlopt               2.4.2                         3
m2w64-openssl             1.0.2.g                       2
m2w64-p11-kit             0.23.2                        2
m2w64-pcre                8.38                          2
m2w64-rtmpdump-git        499.a107cef                   4
m2w64-speex               1.2rc2                        3
m2w64-speexdsp            1.2rc3                        3
m2w64-tcl                 8.6.5                         3
m2w64-tk                  8.6.5                         3
m2w64-tktable             2.10                          5
m2w64-wineditline         2.101                         5
m2w64-xz                  5.2.2                         2
m2w64-zlib                1.2.8                        10
markupsafe                0.23                     py27_2
matplotlib                1.5.1               np111py27_0
menuinst                  1.4.1                    py27_0
Metafone                  0.5                       <pip>
mistune                   0.7.3                    py27_0
mkl                       11.3.3                        1
mkl-service               1.1.2                    py27_2
mplleaflet                0.0.5                     <pip>
mpmath                    0.19                     py27_1
msys2-conda-epoch         20160418                      1
multipledispatch          0.4.8                    py27_0
munch                     2.0.4                    py27_0    conda
mysql-python              1.2.5                    py27_0
nb_anacondacloud          1.2.0                    py27_0
nb_conda                  2.0.0                    py27_0
nb_conda_kernels          2.0.0                    py27_0
nbconvert                 4.2.0                    py27_0
nbformat                  4.1.0                    py27_0
nbformat                  4.2.0                     <pip>
nbpresent                 3.0.2                    py27_0
networkx                  1.11                     py27_0
nltk                      3.2.1                    py27_0
nose                      1.3.7                    py27_1
notebook                  4.2.3                    py27_0
numba                     0.28.1              np111py27_0
numexpr                   2.6.1               np111py27_0
numpy                     1.11.1                   py27_1
nyc-geoclient             0.0.2                     <pip>
odo                       0.5.0                    py27_1
openjpeg                  2.1.2                     vc9_1  [vc9]
openpyxl                  2.3.2                    py27_0
openssl                   1.0.2j                    vc9_0  [vc9]
osmnx                     0.1                      py27_0    conda
pandas                    0.19.2              np111py27_1    conda
partd                     0.3.6                    py27_0
path.py                   8.2.1                    py27_0
pathlib2                  2.1.0                    py27_0
patsy                     0.4.1                    py27_0
pcre                      8.39                      vc9_0  [vc9]
pep8                      1.7.0                    py27_0
pickleshare               0.7.4                    py27_0
pillow                    3.2.0                    py27_1    conda
pip                       9.0.1                     <pip>
pip                       8.1.2                    py27_0
pkginfo                   1.3.2                    py27_0
ply                       3.9                      py27_0
probableparsing           0.0.1                     <pip>
proj4                     4.9.3                     vc9_2  [vc9]
prompt_toolkit            1.0.3                    py27_0
psutil                    4.3.1                    py27_0
psycopg2                  2.6.2                    py27_1    conda
py                        1.4.31                   py27_0
pyasn1                    0.1.9                    py27_0
pycosat                   0.6.1                    py27_1
pycparser                 2.14                     py27_1
pycrypto                  2.6.1                    py27_4
pycurl                    7.43.0                   py27_0
pyflakes                  1.3.0                    py27_0
pygments                  2.1.3                    py27_0
pylint                    1.5.4                    py27_1
pyodbc                    3.0.10                   py27_1    anaco
pyopenssl                 16.0.0                   py27_0
pyparsing                 2.1.4                    py27_0
pyproj                    1.9.5.1                  py27_0    conda
pyqt                      4.11.4                   py27_2    conda
pysal                     1.13.0                   py27_0    conda
pyshp                     1.2.10                    <pip>
pytables                  3.3.0               np111py27_0    conda
pytest                    2.9.2                    py27_0
python                    2.7.12                        0
python-crfsuite           0.8.4                     <pip>
python-dateutil           2.5.3                    py27_0
pytz                      2016.6.1                 py27_0
pywin32                   220                      py27_1
pyyaml                    3.12                     py27_0
pyzmq                     15.4.0                   py27_0
qt                        4.8.7                     vc9_6  [vc9]
qtawesome                 0.3.3                    py27_0
qtconsole                 4.2.1                    py27_1    conda
qtpy                      1.1.2                    py27_0
r-assertthat              0.1                    r3.3.2_4    r
r-backports               1.0.4                  r3.3.2_0    r
r-base                    3.3.2                         0    r
r-base64enc               0.1_3                  r3.3.2_0    r
r-bh                      1.62.0_1               r3.3.2_0    r
r-bitops                  1.0_6                  r3.3.2_2    r
r-boot                    1.3_18                 r3.3.2_0    r
r-broom                   0.4.1                  r3.3.2_0    r
r-car                     2.1_4                  r3.3.2_0    r
r-caret                   6.0_73                 r3.3.2_0    r
r-catools                 1.17.1                 r3.3.2_2    r
r-class                   7.3_14                 r3.3.2_0    r
r-cluster                 2.0.5                  r3.3.2_0    r
r-codetools               0.2_15                 r3.3.2_0    r
r-colorspace              1.3_1                  r3.3.2_0    r
r-crayon                  1.3.2                  r3.3.2_0    r
r-curl                    2.3                    r3.3.2_0    r
r-data.table              1.10.0                 r3.3.2_0    r
r-dbi                     0.5_1                  r3.3.2_0    r
r-dichromat               2.0_0                  r3.3.2_2    r
r-digest                  0.6.10                 r3.3.2_0    r
r-dplyr                   0.5.0                  r3.3.2_0    r
r-essentials              1.5.1                         0    r
r-evaluate                0.10                   r3.3.2_0    r
r-forcats                 0.1.1                  r3.3.2_0    r
r-foreach                 1.4.3                  r3.3.2_0    r
r-foreign                 0.8_67                 r3.3.2_0    r
r-formatr                 1.4                    r3.3.2_0    r
r-ggplot2                 2.2.0                  r3.3.2_0    r
r-gistr                   0.3.6                  r3.3.2_0    r
r-glmnet                  2.0_5                  r3.3.2_0    r
r-gtable                  0.2.0                  r3.3.2_0    r
r-haven                   1.0.0                  r3.3.2_0    r
r-hexbin                  1.27.1                 r3.3.2_0    r
r-highr                   0.6                    r3.3.2_0    r
r-hms                     0.3                    r3.3.2_0    r
r-htmltools               0.3.5                  r3.3.2_0    r
r-htmlwidgets             0.8                    r3.3.2_0    r
r-httpuv                  1.3.3                  r3.3.2_0    r
r-httr                    1.2.1                  r3.3.2_0    r
r-irdisplay               0.4.4                  r3.3.2_0    r
r-irkernel                0.7.1                  r3.3.2_0    r
r-iterators               1.0.8                  r3.3.2_0    r
r-jsonlite                1.1                    r3.3.2_0    r
r-kernsmooth              2.23_15                r3.3.2_0    r
r-knitr                   1.15.1                 r3.3.2_0    r
r-labeling                0.3                    r3.3.2_2    r
r-lattice                 0.20_34                r3.3.2_0    r
r-lazyeval                0.2.0                  r3.3.2_0    r
r-lme4                    1.1_12                 r3.3.2_0    r
r-lubridate               1.6.0                  r3.3.2_0    r
r-magrittr                1.5                    r3.3.2_2    r
r-maps                    3.1.1                  r3.3.2_0    r
r-markdown                0.7.7                  r3.3.2_2    r
r-mass                    7.3_45                 r3.3.2_0    r
r-matrix                  1.2_7.1                r3.3.2_0    r
r-matrixmodels            0.4_1                  r3.3.2_0    r
r-mgcv                    1.8_16                 r3.3.2_0    r
r-mime                    0.5                    r3.3.2_0    r
r-minqa                   1.2.4                  r3.3.2_2    r
r-mnormt                  1.5_5                  r3.3.2_0    r
r-modelmetrics            1.1.0                  r3.3.2_0    r
r-modelr                  0.1.0                  r3.3.2_0    r
r-munsell                 0.4.3                  r3.3.2_0    r
r-nlme                    3.1_128                r3.3.2_0    r
r-nloptr                  1.0.4                  r3.3.2_2    r
r-nnet                    7.3_12                 r3.3.2_0    r
r-openssl                 0.9.5                  r3.3.2_0    r
r-pbdzmq                  0.2_4                  r3.3.2_0    r
r-pbkrtest                0.4_6                  r3.3.2_0    r
r-plyr                    1.8.4                  r3.3.2_0    r
r-pryr                    0.1.2                  r3.3.2_0    r
r-psych                   1.6.9                  r3.3.2_0    r
r-purrr                   0.2.2                  r3.3.2_0    r
r-quantmod                0.4_7                  r3.3.2_0    r
r-quantreg                5.29                   r3.3.2_0    r
r-r6                      2.2.0                  r3.3.2_0    r
r-randomforest            4.6_12                 r3.3.2_0    r
r-rbokeh                  0.5.0                  r3.3.2_0    r
r-rcolorbrewer            1.1_2                  r3.3.2_3    r
r-rcpp                    0.12.8                 r3.3.2_0    r
r-rcppeigen               0.3.2.9.0              r3.3.2_0    r
r-readr                   1.0.0                  r3.3.2_0    r
r-readxl                  0.1.1                  r3.3.2_0    r
r-recommended             3.3.2                  r3.3.2_0    r
r-repr                    0.10                   r3.3.2_0    r
r-reshape2                1.4.2                  r3.3.2_0    r
r-rmarkdown               1.2                    r3.3.2_0    r
r-rpart                   4.1_10                 r3.3.2_0    r
r-rprojroot               1.1                    r3.3.2_0    r
r-rvest                   0.3.2                  r3.3.2_0    r
r-scales                  0.4.1                  r3.3.2_0    r
r-selectr                 0.3_0                  r3.3.2_0    r
r-shiny                   0.14.2                 r3.3.2_0    r
r-sourcetools             0.1.5                  r3.3.2_0    r
r-sparsem                 1.74                   r3.3.2_0    r
r-spatial                 7.3_11                 r3.3.2_0    r
r-stringi                 1.1.2                  r3.3.2_0    r
r-stringr                 1.1.0                  r3.3.2_0    r
r-survival                2.40_1                 r3.3.2_0    r
r-tibble                  1.2                    r3.3.2_0    r
r-tidyr                   0.6.0                  r3.3.2_0    r
r-tidyverse               1.0.0                  r3.3.2_0    r
r-ttr                     0.23_1                 r3.3.2_0    r
r-uuid                    0.1_2                  r3.3.2_0    r
r-xml2                    1.0.0                  r3.3.2_0    r
r-xtable                  1.8_2                  r3.3.2_0    r
r-xts                     0.9_7                  r3.3.2_2    r
r-yaml                    2.1.14                 r3.3.2_0    r
r-zoo                     1.7_13                 r3.3.2_0    r
requests                  2.11.1                   py27_0
rope                      0.9.4                    py27_1
rtree                     0.8.3                    py27_0    conda
ruamel_yaml               0.11.14                  py27_0
scikit-image              0.12.3              np111py27_1
scikit-learn              0.17.1              np111py27_1
scipy                     0.18.1              np111py27_0
seaborn                   0.7.1                    py27_0    anaco
setuptools                27.2.0                   py27_1
shapely                   1.5.17              np111py27_2    conda
simplegeneric             0.8.1                    py27_1
singledispatch            3.4.0.3                  py27_0
sip                       4.18                     py27_0
six                       1.10.0                   py27_0
snowballstemmer           1.2.1                    py27_0
snuggs                    1.4.1                     <pip>
sockjs-tornado            1.0.3                    py27_0
sphinx                    1.4.6                    py27_0
spyder                    2.3.9                    py27_1    conda
sqlalchemy                1.0.13                   py27_0
sqlite                    3.13.0                    vc9_1  [vc9]
ssl_match_hostname        3.4.0.2                  py27_1
statsmodels               0.6.1               np111py27_1
sympy                     1.0                      py27_0
tk                        8.5.18                    vc9_0  [vc9]
toolz                     0.8.0                    py27_0
tornado                   4.4.1                    py27_0
traitlets                 4.3.1                     <pip>
traitlets                 4.3.0                    py27_0
unicodecsv                0.14.1                   py27_0
usaddress                 0.5.7                     <pip>
vc                        9                             0    conda
vs2008_runtime            9.00.30729.1                  2
wcwidth                   0.1.7                    py27_0
werkzeug                  0.11.11                  py27_0
wheel                     0.29.0                   py27_0
widgetsnbextension        1.2.6                    py27_0
win_unicode_console       0.5                      py27_0
wrapt                     1.10.6                   py27_0
xarray                    0.8.2                    py27_0
xerces-c                  3.1.4                     vc9_2  [vc9]
xlrd                      1.0.0                    py27_0
xlsxwriter                0.9.3                    py27_0
xlwings                   0.10.0                   py27_0
xlwt                      1.1.2                    py27_0
zlib                      1.2.8                     vc9_3  [vc9]
jtsitron commented 7 years ago

upon closer inspection, this is likely not an osmnx issue, but a proxy server issue on my end that is intercepting the request to the overpass api.

Thanks anyway for looking into it!