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

Unexpected keyword argument "file" #21

Open
kuanb opened this issue Apr 26, 2019 · 2 comments
Open

Unexpected keyword argument "file" #21

kuanb opened this issue Apr 26, 2019 · 2 comments

Comments

@kuanb
Copy link

kuanb commented Apr 26, 2019

Edit:
See this comment (#21 (comment)), the issue is that protobuf was upgraded on Mar 26 from 3.7.0 to 3.7.1. This upgrade breaks SS throwing the below error/traceback.

Original content:


In a fresh container I pip install ss:

pip install sharedstreets

It install successfully. I then run the following command:

sharedstreets-get-tile 16 10509 25324 > 16-10509-25324.geojson

The following error is emitted:

Traceback (most recent call last):
  File "/usr/local/bin/sharedstreets-get-tile", line 7, in <module>
    from sharedstreets.tile import main
  File "/usr/local/lib/python3.6/site-packages/sharedstreets/tile.py", line 4, in <module>
    from . import sharedstreets_pb2
  File "/usr/local/lib/python3.6/site-packages/sharedstreets/sharedstreets_pb2.py", line 148, in <module>
    options=None, file=DESCRIPTOR),
TypeError: __init__() got an unexpected keyword argument 'file'

This is the version of ss being used:

pip list | grep sharedstreets
sharedstreets      0.4.0
@kuanb
Copy link
Author

kuanb commented Apr 26, 2019

I wonder if this is the result of the recently released update to protobuf, from 3.7.0 to 3.7.1:

image
Released on Mar 26: https://pypi.org/project/protobuf/3.7.1/

@kuanb
Copy link
Author

kuanb commented Apr 26, 2019

Yep, confirmed that this is the problem. SS library breaks with update of protobuf from 3.7.0 to 3.7.1.
I uninstalled 3.7.1 and reinstalled protobuf, specifying version 3.7.0. SS works again!

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

No branches or pull requests

1 participant