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

Spam tutorial error: The system cannot find the file specified #1588

Closed melboswell closed 4 years ago

melboswell commented 4 years ago

Hello,

I am new to using snorkel, but have followed the instructions to install it on Windows using conda and create and activate a virtual environment. I am trying to go through the spam tutorial, but am running into the following error:

image

bhancock8 commented 4 years ago

Bummer! Windows is always trickier. I'm glad to see you were able to set up the virtual environment. Did you also follow the suggestion in the "A quick note for Windows users" section about running in Docker or the Linux subsystem? That will give you the best chance of success.

melboswell commented 4 years ago

Thanks for the response. I actually found that if I remove ".models" from import snorkel.labeling.modes (so it is just snorkel, labeling), in the utils script then the problem resolves. I also had to change the function node to nodes in graph_utils.py

bhancock8 commented 4 years ago

The node -> nodes change sounds like a requirements issue (the wrong version of networkx being used). See #1491 for more detail there. You may want to check how your virtual environment is being created and used. Regardless, I'm glad you got it working!

github-actions[bot] commented 4 years ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.