Skip to content

Unexpected keyword argument "file" #21

Open

Description

@kuanb

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

Activity

  1. kuanb commented on Apr 26, 2019

    @kuanb
    Author

    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/

  2. kuanb commented on Apr 26, 2019

    @kuanb
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions