TypeError when using pycaret rule mining

I get:

TypeError: expected string or bytes-like object

When running:

from pycaret.datasets import get_data

data = get_data('france')

from pycaret.arules import *

exp_name = setup(data = data, transaction_id = 'InvoiceNo', item_id = 'Description')

model1 = create_model(metric = 'confidence')

model1

Does anyone know why this is happening? :sweat:

According to their documentation, this should return a pandas dataframe.

Edit: This same code works in Colab btw

After a little frustration and deciding to come back to it a the next day, it worked!

I am not sure what happened but all I did was conda deactivate and then it was fine when I tried again the next day :rofl: