RuntimeError: Runtime Exception. The system cannot find the file specified.

User 3401 | 3/10/2016, 3:27:59 AM

Hi.

I'm currently enrolled in the Coursera Machine Learning Foundation course and I'm having a problem with the Using .apply() for data transformation lecture. I'm getting an error when running the following code: ` sf['Country'].apply(transform_country)

RuntimeError Traceback (most recent call last) <ipython-input-9-58b2d3ea026a> in <module>() ----> 1 sf['Country'].apply(transform_country)

C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab\datastructures\sarray.pyc in apply(self, fn, dtype, skipundefined, seed) 1692 1693 with cythoncontext(): -> 1694 return SArray(proxy=self.proxy.transform(fn, dtype, skip_undefined, seed)) 1695 1696

C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab\cython\context.pyc in exit(self, exctype, excvalue, traceback) 47 if not self.showcythontrace: 48 # To hide cython trace, we re-raise from here ---> 49 raise exctype(excvalue) 50 else: 51 # To show the full trace, we do nothing and let exception propagate

RuntimeError: Runtime Exception. The system cannot find the file specified. `

Any ideas?

Thanks, Glen

Comments

User 954 | 3/10/2016, 10:27:14 PM

Hi, Please make sure that you have successfully loaded the SFrame sf. sf = graphlab.SFrame('notebooks/coursera/data/people-example.csv') print sf The error says: "RuntimeError: Runtime Exception. The system cannot find the file specified." I believe sframe sf cannot find the file "people-example.csv".

Regards,


User 3401 | 3/11/2016, 2:44:42 AM

Before I ran the apply() I did execute the SFrame.

sf = graphlab.SFrame('people-example.csv')

Finished parsing file 'D:\MLscripts\people-example.csv'

Parsing completed. Parsed 7 lines in 0.021002 secs.

Finished parsing file 'D:\MLscripts\people-example.csv'

Parsing completed. Parsed 7 lines in 0.021001 secs.


Inferred types from first line of file as columntypehints=[str,str,str,long] If parsing fails due to incorrect types, you can correct the inferred type list above and pass it to readcsv in the columntype_hints argument

Glen


User 15 | 3/11/2016, 6:10:09 PM

Hi Glen,

Can you try running this:

<pre> import graphlab graphlab.sysutil.testpylambda_worker() </pre>

and send us the output?

Thanks!


User 3401 | 3/12/2016, 3:50:08 AM

After I ran,

import graphlab graphlab.sysutil.testpylambda_worker()

Output was,

Launch pylambdaworker process with simulated unityserver environment.

Glen


User 15 | 3/13/2016, 3:44:33 AM

Was that all that it printed? I would expect far more output than that.

For future reference, you can put the output in the "pre" html tag and it will be displayed in a nicer way.


User 3401 | 3/13/2016, 6:40:55 PM

I ran it again and...

Launch pylambdaworker process with simulated unityserver environment.

A newer version of GraphLab Create (v1.8.4) is available! Your current version is v1.8.3.

You can use pip to upgrade the graphlab-create package. For more information see https://dato.com/products/create/upgrade.

...and got the same results.

glen


User 15 | 3/13/2016, 11:18:35 PM

This feels like maybe your installation doesn't have all the correct files. Could you send us the list of all the files in these directories:

C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab\cython


User 1207 | 3/14/2016, 6:45:38 AM

Hey Glen,

Are you by chance running it in an ipython notebook environment? If so, could you try running the command inside of an ipython terminal? I've noticed that sometimes the ipython notebook doesn't correctly print the output, in which case you end up seeing nothing.

-- Hoyt


User 3401 | 3/14/2016, 5:30:06 PM

Ok, I ran the pylambda_worker() in ipython terminal and here's the result...

Welcome to the GraphLab Create Terminal

This terminal gives you access to the GraphLab Create Python environment with a number of useful packages including ipython, ipython notebook, scikit-learn and numpy. Use 'conda' or 'pip' to manage packages for development.

To get started, launch 'ipython' and 'import graphlab'

C:\Program Files (x86)\Dato Launcher>import graphlab 'import' is not recognized as an internal or external command, operable program or batch file.

C:\Program Files (x86)\Dato Launcher>ipython Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v. 1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.

IPython 3.2.0 -- An enhanced Interactive Python. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.

In [1]: import graphlab A newer version of GraphLab Create (v1.8.4) is available! Your current version i s v1.8.3.

You can use pip to upgrade the graphlab-create package. For more information see https://dato.com/products/create/upgrade.

In [2]: graphlab.sysutil.testpylambda_worker()

Launch pylambdaworker process with simulated unityserver environment. PyLambda script called with no IPC information; entering diagnostic mode. Script directory: C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packag es\graphlab_scripts_pylambdaworker.pyc. Main program directory: C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site- packages\graphlab. Lambda worker args: C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab_scr ipts_pylambdaworker.pyc Lambda worker search pattern: C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib \site-packages\graphlab\libpylambda_worker.*

Found 1 candidade pylambdaworker file(s): C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab\lib pylambdaworker.dll. INFO: Loading pylambda worker library: C:\Users\Glen\AppData\Local\Dato\Dato Lau ncher\lib\site-packages\graphlab\libpylambda_worker.dll. ←[1;33m1457976195 : DEBUG: (operator():83): PID-5104: root_path = 'C:\Users\G len\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab' ←[0m←[1;33m1457976195 : DEBUG: (operator():84): PID-5104: server_address = 'd ebug' ←[0m←[1;33m1457976195 : DEBUG: (operator():85): PID-5104: parend pid = 4384 ←[0m←[1;33m1457976195 : DEBUG: (operator():89): PID-5104: Library function en tered successfully. ←[0m←[1;33m1457976195 : DEBUG: (operator():104): PID-5104: Attempting to init ialize python. ←[0m←[1;33m1457976195 : DEBUG: (operator():31): PID-5104: Python initialized.

←[0m←[1;33m1457976195 : DEBUG: (operator():37): PID-5104: Importing system mo dules. ←[0m←[1;33m1457976195 : DEBUG: (operator():46): PID-5104: GLSYSPATH use d: ;C:\Users\Glen\AppData\Local\Dato\Dato Launcher\Scripts;C:\Users\Glen\AppData \Local\Dato\Dato Launcher\python27.zip;C:\Users\Glen\AppData\Local\Dato\Dato Lau ncher\DLLs;C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib;C:\Users\Glen\AppD ata\Local\Dato\Dato Launcher\lib\plat-win;C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\lib-tk;C:\Users\Glen\AppData\Local\Dato\Dato Launcher;c:\users\glen \appdata\local\dato\dato launcher\lib\site-packages\sphinx-1.3.1-py2.7.egg;c:\us ers\glen\appdata\local\dato\dato launcher\lib\site-packages\setuptools-17.1.1-py 2.7.egg;C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages;C:\User s\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\cryptography-0.9.1-py2 .7-win-amd64.egg;C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-package s\win32;C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\win32\l iHTTP/1.1 200 OK Transfer-Encoding: chunked Date: Thu, 21 Jul 2016 23:13:36 GMT Server: Warp/3.2.6 Content-Type: application/json

016A ["37zyefqi2sweveyp","42fn7zeo6v5ui427","66pt5sk2wz2jrbzu","awoljknjigytdyls","cj2lanoogknwopto","cnm3adnh35xmsx3f","ebxs4t2y6xr5izzy","eg5zus2pz72mr7xb","exshwew2w2jv3n7r","hxrxgzvgms3incmf","hymu5oh2f5ctk5jr","jkisbjnul226jria","lag7djeljbjng6bu","o3l65o4qzcxs327j","qsk2jzo2zh523r24","t7k6g7fkndoggutd","xfllvjyax4inadxh","ygtjzi2wkfonj3z7","yycjajwpguyno4je"] 0


User 1207 | 3/15/2016, 7:44:08 PM

Hello @glen_s,

We're working on this issue. At this point, we have some close ideas of what might be happening, and hope to have a fix soon.

Could you run the following code in your ipython terminal:

import os
os.environ["GRAPHLAB_LAMBDA_WORKER_DEBUG_MODE"] = "1"
os.environ["GRAPHLAB_LAMBDA_WORKER_LOG_FILE"] = r"C:\Users\Glen\Desktop\lambda_log_file.txt"
os.environ["OMP_NUM_THREADS"] = "1"
import sframe
sframe.SArray(range(1000)).apply(lambda x: x).sum()

This should put two files on you desktop: lambdalogfile.txt and lambdalogfile.txt-init. Could you send me both of those files, along with the server log (the path to the server log is printed when this script is run.) This would be very helpful.

Thanks so much! -- Hoyt


User 3401 | 3/16/2016, 6:07:39 PM

Hi Hoytak,

I ran the code and got...

ImportError Traceback (most recent call last) <ipython-input-1-b80d8d1e3489> in <module>() 3 os.environ["GRAPHLABLAMBDAWORKERLOGFILE"] = r"C:\Users\Glen\Desktop\lambdalogfile.txt" 4 os.environ["OMPNUMTHREADS"] = "1" ----> 5 import sframe 6 sframe.SArray(range(1000)).apply(lambda x: x).sum()

ImportError: No module named sframe

glen


User 15 | 3/16/2016, 8:11:58 PM

@glen_s Sorry about that. Swap out "import sframe" with "import graphlab" and "sframe.SArray..." with "graphlab.SArray".


User 3401 | 3/17/2016, 2:36:09 AM

Made the adjustments...

A newer version of GraphLab Create (v1.8.4) is available! Your current version is v1.8.3.

You can use pip to upgrade the graphlab-create package. For more information see https://dato.com/products/create/upgrade. [INFO] GraphLab Create v1.8.3 started. Logging: C:\Users\Glen\AppData\Local\Temp\graphlabserver1458180947.log.0


RuntimeError Traceback (most recent call last) <ipython-input-1-31f93892a23e> in <module>() 4 os.environ["OMPNUMTHREADS"] = "1" 5 import graphlab ----> 6 graphlab.SArray(range(1000)).apply(lambda x: x).sum()

C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab\datastructures\sarray.pyc in apply(self, fn, dtype, skipundefined, seed) 1692 1693 with cythoncontext(): -> 1694 return SArray(proxy=self.proxy.transform(fn, dtype, skip_undefined, seed)) 1695 1696

C:\Users\Glen\AppData\Local\Dato\Dato Launcher\lib\site-packages\graphlab\cython\context.pyc in exit(self, exctype, excvalue, traceback) 47 if not self.showcythontrace: 48 # To hide cython trace, we re-raise from here ---> 49 raise exctype(excvalue) 50 else: 51 # To show the full trace, we do nothing and let exception propagate

RuntimeError: Runtime Exception. The system cannot find the file specified.

... I tried to attach the txt-init file but I I receive a message "File is not allowed."

glen


User 4572 | 4/10/2016, 6:49:58 AM

Hello, Is this issue got resolved. I am also getting the same error. below is the code I am executing. `


1>> import graphlab 2>> sa = graphlab.SArray([1,2,3]) 3>> sa.apply(lambda x: x*2)

for line 3 execution ends with RuntimeError:-

RuntimeError Traceback (most recent call last) <ipython-input-19-cfd08939ff1c> in <module>() ----> 1 sa.apply(lambda x: x*2)

C:\Users\abhay\Anaconda2\envs\dato-env\lib\site-packages\graphlab\datastructures\sarray.pyc in apply(self, fn, dtype, skipundefined, seed) 1699 1700 with cythoncontext(): -> 1701 return SArray(proxy=self.proxy.transform(fn, dtype, skip_undefined, seed)) 1702 1703

C:\Users\abhay\Anaconda2\envs\dato-env\lib\site-packages\graphlab\cython\context.pyc in exit(self, exctype, excvalue, traceback) 47 if not self.showcythontrace: 48 # To hide cython trace, we re-raise from here ---> 49 raise exctype(excvalue) 50 else: 51 # To show the full trace, we do nothing and let exception propagate

RuntimeError: Runtime Exception. The system cannot find the file specified. `


User 1207 | 4/12/2016, 10:11:36 PM

Hello @abhabede,

We are trying to reproduce the issue, and 1.8.5 has fixed a couple of things that could be the cause, but we are still not sure it is completely fixed. I wrote a script to attempt to gather more information that will help us with debugging it.

Could you run the linked script inside of your graphlab environment? (possibly using %run from ipython) This script should print out a zip file at the end. Could you send that zip file to us? Emailing support@dato.com is fine, as is attaching it here.

The testing script is up at https://raw.githubusercontent.com/hoytak/SFrame/testpylambdaworkers/osslocalscripts/testlambdaworkers.py

Thanks! -- Hoyt