snorkel-team / snorkel

A system for quickly generating training data with weak supervision
https://snorkel.org
Apache License 2.0
5.81k stars 857 forks source link

Error while importing snorkel.learning #1617

Closed shantanuaggarwal2695 closed 4 years ago

shantanuaggarwal2695 commented 4 years ago

Issue description

I am unable to import snorkel.learning module due to assertion error in a numbskull package

Code example/repro steps

import numbskull

Error: def init(self, module, ftype, name): --> 594 assert isinstance(ftype, types.Type) 595 super(Function, self).init(module, ftype.as_pointer(), name=name) 596 self.ftype = ftype

AssertionError:

Expected behavior

The package should get imported

Screenshots

Screenshot from 2020-10-07 03-02-25 Screenshot from 2020-10-07 03-02-12

System info

Additional context

Add any other context about the problem here.

ajratner commented 4 years ago

This is not the current version of snorkel- numbskull has not been a dependency for several years. I would try upgrading to the current version!