Giter Site home page Giter Site logo

Comments (7)

migurski avatar migurski commented on July 17, 2024

That’s odd! I am running the same command using the current version from this repository and seeing meaningful output for tile 16/10509/25324:

screen shot 2018-07-17 at 1 30 17 pm

from sharedstreets-python.

kpwebb avatar kpwebb commented on July 17, 2024

we were getting intermittent results too!

When we installed fresh we get a blank result. But I got a result when i ran from my laptop, even if we blew away the repo. I'm curious if there's something in the environment on our laptops that's changed if you start fresh...

from sharedstreets-python.

migurski avatar migurski commented on July 17, 2024

I don’t have an explanation for the behavior you’re seeing. There isn’t any environment variable that affects normal operation, and I can’t think of a reason why it’d work intermittently. The protobuf URL being downloaded is defined on line 9 of tile.py.

from sharedstreets-python.

kpwebb avatar kpwebb commented on July 17, 2024

@migurski tracked this down turns out that the URL requests were failing because the data_zxy object contained floats and was getting converted to a string with trailing zero decimals included.

No idea what changed, but seems like it was environmentally dependent. Maybe an upstream library changed behavior?

Anyhow, pushed a fix as pull #15

from sharedstreets-python.

migurski avatar migurski commented on July 17, 2024

Thanks for tracking that down — I’m curious what version of Python you were using, because I can’t think of a reason this behavior would show up for you but not in tests or for me. Thanks for the PR!

from sharedstreets-python.

kpwebb avatar kpwebb commented on July 17, 2024

We were running it on 2.7.x but only showed up when freshly installed. When I ran it from source (even from a clean github clone) it worked on my laptop. But deployments on machines where SharedStreets hadn't been installed previously failed. No idea why...

from sharedstreets-python.

migurski avatar migurski commented on July 17, 2024

Weird. I wish our test coverage surfaced this behavior.

from sharedstreets-python.

Related Issues (9)

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.