SFrame apply fails

User 386 | 6/23/2014, 3:12:03 PM

I can't get apply to work. Every time I try to use it, i get a "ImportError: No module named dateutil"

What to do?

Comments

User 14 | 6/23/2014, 4:23:53 PM

Hi,

Are you using lambda apply locally or with an EC2 instance? This could be a known issue on EC2 instance (http://forum.graphlab.com/discussion/57/graphlab-create-beta-known-issues#latest):

"Some SArray lambda operations (apply and filter) may encounter module import failures. This is a known issue. To parallelize the lambda, we spawn multiple processes each wrapping libpython. Those additional processes may not have the location of the modules. The function used for apply/filter therefore should not reference functions across modules."

Thanks! -jay


User 386 | 6/23/2014, 4:31:53 PM

I am applying a simple lambda on my local machine :\


User 386 | 6/23/2014, 4:35:10 PM

ok... the problam was that datautil was shown as installed when inspecting with pip, but not really installed.

easy_install python-dateutil fixed it.