Anyone encounter this error yet? ```~/projects/tap...
# singer-tap-development
s
Anyone encounter this error yet?
Copy code
~/projects/tap-v7 via 🐍 3.7.5 
➜ poetry run tap-v7 --config ~/singer.io/tap_v7/config.json
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/stephenlloyd/.pyenv/versions/3.7.5/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/stephenlloyd/projects/tap-v7/tap_v7/tap.py", line 20, in <module>
    from tap_v7.streams import (
  File "/Users/stephenlloyd/projects/tap-v7/tap_v7/streams.py", line 106, in <module>
    class Datasets(v7Stream):
  File "/Users/stephenlloyd/projects/tap-v7/tap_v7/streams.py", line 134, in Datasets
    Property("work_size", IntegerType)
  File "/Users/stephenlloyd/Library/Caches/pypoetry/virtualenvs/tap-v7-BM6ME90u-py3.7/lib/python3.7/site-packages/singer_sdk/helpers/typing.py", line 193, in to_dict
    return self.type_dict
  File "/Users/stephenlloyd/Library/Caches/pypoetry/virtualenvs/tap-v7-BM6ME90u-py3.7/lib/python3.7/site-packages/singer_sdk/helpers/typing.py", line 190, in type_dict
    return super().type_dict
  File "/Users/stephenlloyd/Library/Caches/pypoetry/virtualenvs/tap-v7-BM6ME90u-py3.7/lib/python3.7/site-packages/singer_sdk/helpers/typing.py", line 131, in type_dict
    merged_props.update(w.to_dict())
  File "/Users/stephenlloyd/Library/Caches/pypoetry/virtualenvs/tap-v7-BM6ME90u-py3.7/lib/python3.7/site-packages/singer_sdk/helpers/typing.py", line 78, in to_dict
    type_dict = _append_type(type_dict, "null")
  File "/Users/stephenlloyd/Library/Caches/pypoetry/virtualenvs/tap-v7-BM6ME90u-py3.7/lib/python3.7/site-packages/singer_sdk/helpers/typing.py", line 48, in _append_type
    result = copy.deepcopy(type_dict)
  File "/Users/stephenlloyd/.pyenv/versions/3.7.5/lib/python3.7/copy.py", line 169, in deepcopy
    rv = reductor(4)
TypeError: can't pickle property objects
@aaronsteers Do you know what is causing this?
Copy code
schema = PropertiesList(
        Property("active", BooleanType),
        Property("annotation_hotkeys", ObjectType),
        Property("annotators_can_create_tags", BooleanType),
        Property("annotators_can_instantiate_workflows", BooleanType),
        Property("id", IntegerType),
        Property("inserted_at", DateTimeType),
        Property("name", StringType),
        Property("num_annotations", IntegerType),
        Property("num_annotators", IntegerType),
        Property("num_classes", IntegerType),
        Property("num_images", IntegerType),
        Property("num_videos", IntegerType),
        Property("owner_id", IntegerType),
        Property("progress", NumberType),
        Property("public", BooleanType),
        Property("reviewers_can_annotate", BooleanType),
        Property("slug", StringType),
        Property("team_id", IntegerType),
        Property("thumbnails", ArrayType(StringType)),
        Property("updated_at", DateTimeType),
        Property("work_size", IntegerType),
    ).to_dict()
the last property is throwing the error according to the stack trace.
t
I’ll tag @aaronsteers here and he should see it when he gets on today.
s
Hey, I figured out that ObjectType needed to be
ObjectType()
a
@stephen_lloyd - Yes, you’ve got it. The ObjectType and ArrayType are different from the simple types, since they must have a wrapped type or properties.
Did you get this worked out?
Logged an issue - at minimum, we could do a better job with the error message: Error: `TypeError: can't pickle property objects` (#55) · Issues · meltano / Singer SDK · GitLab