Skip to content

TypeError: unhashable type: 'dict', Error: Process completed with exit code 1. #28

@pdurbin

Description

@pdurbin

Using this workflow file from https://github.com/pdurbin/dataverse-uploader-action-test/blob/e9176be0e3c7a77c2156fb30ab80b622a55c8eff/.github/workflows/workflow.yml

on: 
  release:
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Send repo to Dataverse 
        uses: IQSS/dataverse-uploader@v1.6
        with:
          DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
          DATAVERSE_SERVER: https://demo.dataverse.org
          DATAVERSE_DATASET_DOI: doi:10.70122/FK2/5CTT1W

I'm getting this error:

Image

More details:

Run python  $GITHUB_ACTION_PATH/dataverse.py  "***"  "https://demo.dataverse.org/"  "doi:10.70122/FK2/5CTT1W" $GITHUB_REPOSITORY -d ""  -r "true"  -p "false" 
  python  $GITHUB_ACTION_PATH/dataverse.py  "***"  "https://demo.dataverse.org/"  "doi:10.70122/FK2/5CTT1W" $GITHUB_REPOSITORY -d ""  -r "true"  -p "false" 
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.14.2/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.14.2/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.14.2/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.14.2/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.14.2/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.14.2/x64/lib
Traceback (most recent call last):
  File "/home/runner/work/_actions/IQSS/dataverse-uploader/v1.6/dataverse.py", line 99, in <module>
    args.doi, join(root,f), df.json())
                            ~~~~~~~^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/pyDataverse/models.py", line 222, in json
    validate_data(data, filename_schema)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/pyDataverse/utils.py", line 451, in validate_data
    validate(instance=data, schema=read_json(filename_schema))
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/jsonschema/validators.py", line 963, in validate
    cls.check_schema(schema)
    ~~~~~~~~~~~~~~~~^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/jsonschema/validators.py", line 182, in check_schema
    for error in cls(cls.META_SCHEMA).iter_errors(schema):
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/jsonschema/validators.py", line 224, in iter_errors
    for error in errors:
                 ^^^^^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/jsonschema/_validators.py", line 332, in properties
    yield from validator.descend(
    ...<4 lines>...
    )
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/jsonschema/validators.py", line 240, in descend
    for error in self.evolve(schema=schema).iter_errors(instance):
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/jsonschema/validators.py", line 224, in iter_errors
    for error in errors:
                 ^^^^^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/jsonschema/_validators.py", line 294, in ref
    scope, resolved = validator.resolver.resolve(ref)
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/jsonschema/validators.py", line 778, in resolve
    target_uri = self._urljoin_cache(
        self.resolution_scope, subschema["$id"],
    )
TypeError: unhashable type: 'dict'
Error: Process completed with exit code 1.

Even more details: https://github.com/pdurbin/dataverse-uploader-action-test/actions/runs/21523383330/job/62020465222

Discussion: #python > Dataverse Uploader v1.6 broken, unhashable type: 'dict' @ 💬

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