Skip to content

Cannot load DataLabeler due to error in labeler utils. #1126

Description

@JGSweets

General Information:

  • OS: linux/x86_64
  • Python version: 3.10.14
  • Library version: DataProfiler==0.10.8

Describe the bug:
On line:

return self.add_weight(

I receive the error:
TypeError: Metric.add_weight() got multiple values for argument 'shape'

Possibly related to: https://stackoverflow.com/questions/62976818/add-weight-got-multiple-values-for-argument-name-while-using-a-custom-attent

Current TF Version: tensorflow==2.16.1

To Reproduce:

import dataprofiler as dp


labeler = dp.DataLabeler.load_from_library("unstructured")

Expected behavior:
Loads the labeler

Additional context:
I think this has to do with something in TF updating, but the DP not updating with it.
Requiring tensorflow==2.15.1 is a current workaround.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions