ImportError: cannot import name 'register_extension_dtype'

I’ve integrated keras to knime by followign the integration guide and all looks good with integration. However when I try to connect a python script where I’m basically just reading the data in converting to pandas, splitting the data into train and test and passing the train as output table as follows:

import as knio
#import tensorflow as tf
from sklearn.model_selection import train_test_split
import numpy as np
input_table = knio.input_tables[0].to_pandas()
#Get the training and val data from the table
train_table = df.iloc[0:77093,1:63]
val_table = df.iloc[77093:,1:63]
train_table, test_table = train_test_split(df, test_size = 0.2)
#Output the training table
knio.output_tables[0] = train_table

When I execute the script it throws the following error:

“from pandas.core.dtypes.dtypes import register_extension_dtype
ImportError: cannot import name ‘register_extension_dtype’”

Even when I import the register_extension_dtype, It throws the error:
ImportError: cannot import name ‘register_extension_dtype’

How do I solve this?

1 Like

Hi @Sadhana_l ,
Could you please share the KAP version and the KNIME logs?

You can share the logs by following the steps mentioned in this link.



according to which guide? Are you using Deep Learning nodes or the Python Script node? Could you - additionally to @sanket_2012 s suggestions, share the workflow and a screenshot of the preferences of the corresponding extension (Deep Learning or Python)?


1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.