New to Julia - Need some basic help

classic Classic list List threaded Threaded
54 messages Options
123
Reply | Threaded
Open this post in threaded view
|

New to Julia - Need some basic help

Pigskin Ablanket
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!
Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Michele Zaffalon
What code did you download?

On Fri, Aug 19, 2016 at 10:24 AM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Ayush Pandey-2
In reply to this post by Pigskin Ablanket
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey        
ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Simon Danisch
In reply to this post by Pigskin Ablanket
Also, are you looking for include("Filename.jl") ?

Am Freitag, 19. August 2016 12:09:05 UTC+2 schrieb Pigskin Ablanket:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!
Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Jeffrey Sarnoff
In reply to this post by Pigskin Ablanket
Where is the code that you downloaded, what is the http:// of that? 


On Friday, August 19, 2016 at 6:09:05 AM UTC-4, Pigskin Ablanket wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!
Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Pigskin Ablanket
In reply to this post by Ayush Pandey-2
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="G2aqTaMLBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">pigskin...@...> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Jeffrey Sarnoff
In reply to this post by Jeffrey Sarnoff
I mean what is the url of the file[s] / the link from which you downloaded the code?

On Friday, August 19, 2016 at 8:40:31 AM UTC-4, Jeffrey Sarnoff wrote:
Where is the code that you downloaded, what is the http:// of that? 


On Friday, August 19, 2016 at 6:09:05 AM UTC-4, Pigskin Ablanket wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!
Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Pigskin Ablanket
In reply to this post by Jeffrey Sarnoff
The link to the folder is: https://github.com/dscotthunter/Fantasy-Hockey-IP-Code  which has a zip file of the code and sample information

I was unable to det the file via: $ git clone https://github.com/dscotthunter/Fantasy-Hockey-IP-Code  so I downloaded the CSV file and extracted it.   I feel like I need to extract those files to a specific location, but cnat figure out where.....as I dont know what directory I have Julia working in (if that makes sense).



On Friday, August 19, 2016 at 8:40:31 AM UTC-4, Jeffrey Sarnoff wrote:
Where is the code that you downloaded, what is the http:// of that? 


On Friday, August 19, 2016 at 6:09:05 AM UTC-4, Pigskin Ablanket wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!
Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Jeffrey Sarnoff
what do you see when at the julia> prompt you type (notice the backtics are not single quotes)
run(`pwd`)

On Friday, August 19, 2016 at 8:47:07 AM UTC-4, Pigskin Ablanket wrote:
The link to the folder is: <a href="https://github.com/dscotthunter/Fantasy-Hockey-IP-Code" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdscotthunter%2FFantasy-Hockey-IP-Code\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFAb84jObGrA01C5ySabH6RSrGj8A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdscotthunter%2FFantasy-Hockey-IP-Code\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFAb84jObGrA01C5ySabH6RSrGj8A&#39;;return true;">https://github.com/dscotthunter/Fantasy-Hockey-IP-Code  which has a zip file of the code and sample information

I was unable to det the file via: $ git clone <a href="https://github.com/dscotthunter/Fantasy-Hockey-IP-Code" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdscotthunter%2FFantasy-Hockey-IP-Code\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFAb84jObGrA01C5ySabH6RSrGj8A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdscotthunter%2FFantasy-Hockey-IP-Code\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFAb84jObGrA01C5ySabH6RSrGj8A&#39;;return true;">https://github.com/dscotthunter/Fantasy-Hockey-IP-Code  so I downloaded the CSV file and extracted it.   I feel like I need to extract those files to a specific location, but cnat figure out where.....as I dont know what directory I have Julia working in (if that makes sense).



On Friday, August 19, 2016 at 8:40:31 AM UTC-4, Jeffrey Sarnoff wrote:
Where is the code that you downloaded, what is the http:// of that? 


On Friday, August 19, 2016 at 6:09:05 AM UTC-4, Pigskin Ablanket wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!
Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Jeffrey Sarnoff
In reply to this post by Pigskin Ablanket
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Pigskin Ablanket
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!


ERROR - Julia.jpg (24K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Jeffrey Sarnoff
Please show me
julia> versioninfo()


On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote:
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Jeffrey Sarnoff
What is the machine/OS you are using? Is it yours, a school's? 


On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote:
Please show me
julia> versioninfo()


On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote:
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Pigskin Ablanket
In reply to this post by Jeffrey Sarnoff
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
-- System: windows (x86_64-w64-mingw32)
-- CPU: Intel(R) Core (TM) i5-4310U CPU @ 2.00GHz
-- Word_Size: 64
-- BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
-- LAPACK: libopenblas64_
-- LIBM: libopenlibm
-- LLUM: libLLUM-3.3

Its work computer

On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote:
Please show me
julia> versioninfo()


On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote:
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Jeffrey Sarnoff
on a Win7 system running Julia (v0.5rc2, but that should not matter).


julia> run(`cmd`)
Microsoft Windows ...

# this is the directory from which Julia is being run (if you see it_
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>ls
LICENSE
.md  Uninstall.exe  bin  etc  include  julia.lnk  lib  libexec  share

# type exit() to get back to julia
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>exit()


julia
>



if you cannot do 
run(`cmd`)
on a windows machine then the System Administrator needs to reinstall or otherwise fix it
also, just for fun.. run Pkg.update()


On Friday, August 19, 2016 at 10:16:22 AM UTC-4, Pigskin Ablanket wrote:
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
-- System: windows (x86_64-w64-mingw32)
-- CPU: Intel(R) Core (TM) i5-4310U CPU @ 2.00GHz
-- Word_Size: 64
-- BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
-- LAPACK: libopenblas64_
-- LIBM: libopenlibm
-- LLUM: libLLUM-3.3

Its work computer

On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote:
Please show me
julia> versioninfo()


On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote:
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Pigskin Ablanket
Ok, so it showed me the following:
C:\Users\Name\AppData\Local\Julia-0.4.6

Should I still run the update?

On Friday, August 19, 2016 at 10:48:41 AM UTC-4, Jeffrey Sarnoff wrote:
on a Win7 system running Julia (v0.5rc2, but that should not matter).


julia> run(`cmd`)
Microsoft Windows ...

# this is the directory from which Julia is being run (if you see it_
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>ls
LICENSE
.md  Uninstall.exe  bin  etc  include  julia.lnk  lib  libexec  share

# type exit() to get back to julia
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>exit()


julia
>



if you cannot do 
run(`cmd`)
on a windows machine then the System Administrator needs to reinstall or otherwise fix it
also, just for fun.. run Pkg.update()


On Friday, August 19, 2016 at 10:16:22 AM UTC-4, Pigskin Ablanket wrote:
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
-- System: windows (x86_64-w64-mingw32)
-- CPU: Intel(R) Core (TM) i5-4310U CPU @ 2.00GHz
-- Word_Size: 64
-- BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
-- LAPACK: libopenblas64_
-- LIBM: libopenlibm
-- LLUM: libLLUM-3.3

Its work computer

On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote:
Please show me
julia> versioninfo()


On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote:
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Jeffrey Sarnoff
you probably should run it -- and not expect that to make any difference with your difficulty (which is either a matter of installation or, more likely, the permissions associated with your windows account [and you may need to work that out with work])

On Friday, August 19, 2016 at 10:56:39 AM UTC-4, Pigskin Ablanket wrote:
Ok, so it showed me the following:
C:\Users\Name\AppData\Local\Julia-0.4.6

Should I still run the update?

On Friday, August 19, 2016 at 10:48:41 AM UTC-4, Jeffrey Sarnoff wrote:
on a Win7 system running Julia (v0.5rc2, but that should not matter).


julia> run(`cmd`)
Microsoft Windows ...

# this is the directory from which Julia is being run (if you see it_
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>ls
LICENSE
.md  Uninstall.exe  bin  etc  include  julia.lnk  lib  libexec  share

# type exit() to get back to julia
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>exit()


julia
>



if you cannot do 
run(`cmd`)
on a windows machine then the System Administrator needs to reinstall or otherwise fix it
also, just for fun.. run Pkg.update()


On Friday, August 19, 2016 at 10:16:22 AM UTC-4, Pigskin Ablanket wrote:
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
-- System: windows (x86_64-w64-mingw32)
-- CPU: Intel(R) Core (TM) i5-4310U CPU @ 2.00GHz
-- Word_Size: 64
-- BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
-- LAPACK: libopenblas64_
-- LIBM: libopenlibm
-- LLUM: libLLUM-3.3

Its work computer

On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote:
Please show me
julia> versioninfo()


On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote:
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Pigskin Ablanket
Running update.  Work wont be an issue- he will help, but he is also new to Julia so a little bit of trial by fire :)   I appreciate the help very much.  If this doesnt work - I will uninstall and then re-install and hopefully get this file to run at least once :)

On Friday, August 19, 2016 at 11:15:05 AM UTC-4, Jeffrey Sarnoff wrote:
you probably should run it -- and not expect that to make any difference with your difficulty (which is either a matter of installation or, more likely, the permissions associated with your windows account [and you may need to work that out with work])

On Friday, August 19, 2016 at 10:56:39 AM UTC-4, Pigskin Ablanket wrote:
Ok, so it showed me the following:
C:\Users\Name\AppData\Local\Julia-0.4.6

Should I still run the update?

On Friday, August 19, 2016 at 10:48:41 AM UTC-4, Jeffrey Sarnoff wrote:
on a Win7 system running Julia (v0.5rc2, but that should not matter).


julia> run(`cmd`)
Microsoft Windows ...

# this is the directory from which Julia is being run (if you see it_
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>ls
LICENSE
.md  Uninstall.exe  bin  etc  include  julia.lnk  lib  libexec  share

# type exit() to get back to julia
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>exit()


julia
>



if you cannot do 
run(`cmd`)
on a windows machine then the System Administrator needs to reinstall or otherwise fix it
also, just for fun.. run Pkg.update()


On Friday, August 19, 2016 at 10:16:22 AM UTC-4, Pigskin Ablanket wrote:
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
-- System: windows (x86_64-w64-mingw32)
-- CPU: Intel(R) Core (TM) i5-4310U CPU @ 2.00GHz
-- Word_Size: 64
-- BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
-- LAPACK: libopenblas64_
-- LIBM: libopenlibm
-- LLUM: libLLUM-3.3

Its work computer

On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote:
Please show me
julia> versioninfo()


On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote:
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Steven G. Johnson
In reply to this post by Pigskin Ablanket


On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

Typing

; command

in the julia REPL (the julia> prompt) executes a command in the operating system's shell.   pwd is a command in the unix shell, so it won't work in Windows where the shell is the DOS shell (cmd.exe), which is the reason for your error.   Similarly for run(`pwd`).

If you want to write portable code, you should generally avoid the OS shell entirely (and in any case the semicolon trick only works in the REPL).  For example, you can get the current directory via the pwd() function in Julia.
Reply | Threaded
Open this post in threaded view
|

Re: New to Julia - Need some basic help

Pigskin Ablanket
In reply to this post by Jeffrey Sarnoff
Given the above directory - where do I need to put the code file (code_for_Github.jl) so that Julia will see it to open it?  Is the command simply Open("code_for_Github.jl")

On Friday, August 19, 2016 at 11:15:05 AM UTC-4, Jeffrey Sarnoff wrote:
you probably should run it -- and not expect that to make any difference with your difficulty (which is either a matter of installation or, more likely, the permissions associated with your windows account [and you may need to work that out with work])

On Friday, August 19, 2016 at 10:56:39 AM UTC-4, Pigskin Ablanket wrote:
Ok, so it showed me the following:
C:\Users\Name\AppData\Local\Julia-0.4.6

Should I still run the update?

On Friday, August 19, 2016 at 10:48:41 AM UTC-4, Jeffrey Sarnoff wrote:
on a Win7 system running Julia (v0.5rc2, but that should not matter).


julia> run(`cmd`)
Microsoft Windows ...

# this is the directory from which Julia is being run (if you see it_
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>ls
LICENSE
.md  Uninstall.exe  bin  etc  include  julia.lnk  lib  libexec  share

# type exit() to get back to julia
C
:\Users\Jeff\AppData\Local\Julia-0.5.0-rc2>exit()


julia
>



if you cannot do 
run(`cmd`)
on a windows machine then the System Administrator needs to reinstall or otherwise fix it
also, just for fun.. run Pkg.update()


On Friday, August 19, 2016 at 10:16:22 AM UTC-4, Pigskin Ablanket wrote:
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
-- System: windows (x86_64-w64-mingw32)
-- CPU: Intel(R) Core (TM) i5-4310U CPU @ 2.00GHz
-- Word_Size: 64
-- BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
-- LAPACK: libopenblas64_
-- LIBM: libopenlibm
-- LLUM: libLLUM-3.3

Its work computer

On Friday, August 19, 2016 at 10:04:20 AM UTC-4, Jeffrey Sarnoff wrote:
Please show me
julia> versioninfo()


On Friday, August 19, 2016 at 10:02:36 AM UTC-4, Pigskin Ablanket wrote:
I get the same error:  
Julia>run(`pwd`)   what I tried to execute
ERROR: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

I am attaching a screen shot

On Friday, August 19, 2016 at 9:35:12 AM UTC-4, Jeffrey Sarnoff wrote:
what do you see with this (in Julia, note the backtics are not single quotes)
julia> run(`pwd`)

On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote:
Ok - This makes sense to me.......but:

When I proceeded with julia>;pwd this is the response I got: Error: could not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262

No idea what that means :(

Once again - feel like my questions are probably introductory, and I appreciate your time.

The actual name of the code I am trying to open is titled "Code_for_Github.jl"



On Friday, August 19, 2016 at 6:26:20 AM UTC-4, Ayush Pandey wrote:
Hello there,
I think you need to change to the directory where your file is present.

You can try to use command line within julia like:
julia > ;pwd                 #Check your present working directory
julia> ;cd /path_to_the_directory_where_your_file_is_present

OR 
try to give the absolute path of the directory (Assume your file is present in home directory on linux)

julia>open("/home/Filename.jl")

I hope it helps :)


Yours Sincerely,
Ayush Pandey     <a href="https://github.com/Ayush-iitkgp" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FAyush-iitkgp\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHEPN80RcbW0rtsZgA9GlLwInNhSQ&#39;;return true;">   
<a href="https://ayush-iitkgp.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fayush-iitkgp.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRndc4LNJyh0wLXXbvqLlHcA__6Q&#39;;return true;">ayush-iitkgp.github.io/

On Fri, Aug 19, 2016 at 1:54 PM, Pigskin Ablanket <[hidden email]> wrote:
Ok, I am trying to familiarize myself with a study published using Julia.  I have Julia up and running, but cant seep to get the actual code open.

Here is what I done so far:
julia> Pkg.add("JuMP")
julia> Pkg.add("DataFrames")
julia> Pkg.add("GLPKMathProgInterface")
I believe I successfully added the requisite programs.  all good.  Now I downloaded the code via CSV.  
It contains the Code in a .jl file, license file, readme file and a couple excel CSV files needed.
I tried top open the file using Julia> Open("Filename.jl") and got the following error:
No such file or directory in open at iostream.jl:90  in open at iostream.jl:99
My sense is that I dont have the file in the right directory, but this is where I get over my skis.
Is that the issue?  How do I make Julia find the file?  Sorry or such basic questions !!!!

123