AlexKuhnle / ShapeWorld

MIT License
58 stars 18 forks source link

module object is not callable #31

Closed RylanSchaeffer closed 3 years ago

RylanSchaeffer commented 3 years ago

When I follow the instructions in the README,

from shapeworld import dataset

dataset = dataset(dtype='agreement', name='multishape')

I get the following error: TypeError: 'module' object is not callable. Are the instructions correct?

As a workaround, I instead tried:

ds = shapeworld.dataset.Dataset.create(dtype='agreement', name='multishape')

But then I get the error:

ModuleNotFoundError: No module named 'shapeworld.datasets.agreement.multishape'
RylanSchaeffer commented 3 years ago

This is bizarre. I cloned the repo with git clone --recursive https://github.com/AlexKuhnle/ShapeWorld.git but I didn't receive all the data under shapeworld/datasets/:

image

RylanSchaeffer commented 3 years ago

I just cloned again and got the same outcome. What's going on :thinking:

RylanSchaeffer commented 3 years ago

Ok somehow I cloned from an old commit. All good now!

AlexKuhnle commented 3 years ago

No worries... :-)