Giter VIP home page Giter VIP logo

Comments (3)

gboeing avatar gboeing commented on May 29, 2024 1

Are you using a proxy or behind some kind of firewall?

And is there more to the traceback than this? I don't see any OSMnx code in the traceback.

from osmnx.

MihirT-10 avatar MihirT-10 commented on May 29, 2024
SSLCertVerificationError                  Traceback (most recent call last)
File [c:\ProgramData\anaconda3\Lib\site-packages\urllib3\connectionpool.py:714](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:714), in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    [713](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:713) # Make the request on the httplib connection object.
--> [714](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:714) httplib_response = self._make_request(
    [715](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:715)     conn,
    [716](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:716)     method,
    [717](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:717)     url,
    [718](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:718)     timeout=timeout_obj,
    [719](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:719)     body=body,
    [720](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:720)     headers=headers,
    [721](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:721)     chunked=chunked,
    [722](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:722) )
    [724](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:724) # If we're going to release the connection in ``finally:``, then
    [725](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:725) # the response doesn't need to know about the connection. Otherwise
    [726](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:726) # it will also try to release it and we'll have a double-release
    [727](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:727) # mess.

File [c:\ProgramData\anaconda3\Lib\site-packages\urllib3\connectionpool.py:403](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:403), in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    [402](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:402) try:
--> [403](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:403)     self._validate_conn(conn)
    [404](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:404) except (SocketTimeout, BaseSSLError) as e:
    [405](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:405)     # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.

File [c:\ProgramData\anaconda3\Lib\site-packages\urllib3\connectionpool.py:1053](file:///C:/ProgramData/anaconda3/Lib/site-packages/urllib3/connectionpool.py:1053), in HTTPSConnectionPool._validate_conn(self, conn)
...
    [142](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/Mihir.Thakar/Downloads/~/AppData/Roaming/Python/Python311/site-packages/osmnx/_overpass.py:142)     return default_duration
    [143](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/Mihir.Thakar/Downloads/~/AppData/Roaming/Python/Python311/site-packages/osmnx/_overpass.py:143) except (AttributeError, IndexError, ValueError):  # pragma: no cover
    [144](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/Mihir.Thakar/Downloads/~/AppData/Roaming/Python/Python311/site-packages/osmnx/_overpass.py:144)     # cannot parse output, log error and return default duration

UnboundLocalError: cannot access local variable 'response' where it is not associated with a value

from osmnx.

MihirT-10 avatar MihirT-10 commented on May 29, 2024

Sorry, yes this was the issue I was behind a firewall, was able to work through it on that end, the modules do all work

from osmnx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.