Comments (7)
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:
from sharedstreets-python.
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.
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.
@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.
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.
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.
Weird. I wish our test coverage surfaced this behavior.
from sharedstreets-python.
Related Issues (9)
- kickstarting python lib HOT 6
- GeoJSON ID length default HOT 5
- Use `.hexdigest()` rather than `.digest('hex')`? HOT 4
- sharedstreets.tile.get_tile doesn't get dedicated infraestructure for buses like BRT in Buenos Aires HOT 5
- Unexpected keyword argument "file" HOT 2
- Geocoding/Snapping points to sharedstreets ref HOT 2
- SSL Error HOT 1
- Simplify purpose of sharedstreets-python HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharedstreets-python.