I am following the class of " Working with images in Julia | Week 1 | 18.S191 MIT Fall 2020 | Grant Sanderson" and tried to write the code in my Julia notebook as:url = “https://i.imgur.com/VGPeJ6s.jpg” , and "download(url, “philip.jpg”) I got the error messages as follows;
resolved it and results in a philip.jpg in c:\Temp.
It’s is probably the same within your notebook.
Check what
pwd()
gives and try to change into some directory you have write access. This directory must be on the notebook host system, if it isn’t a local running notebook.
Thanks a lot! I tried and failed again. I got the following messages:
shell> curl -o google.html https://www.google.com/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:20 --:–:-- 0curl: (7) Failed to connect to www.google.com port 443: Timed out
julia> wget -O google.html https://www.google.com/
ERROR: syntax: extra token “google” after end of expression
Stacktrace:
[1] top-level scope at C:\Users\Ginger Jiang.julia\packages\Pluto\dcxnF\src\evaluation\WorkspaceManager.jl:0
Hi, Thank you for replying to my help. I tried your way with Julia and notebook but failed again. It seems that I can’t creat file of “philip.jpg into my created c:\Temp.
julia> pwd()
“c:\Temp”
julia> cd(raw"c:\Temp”)
julia> download(url, “philip.jpg”)
ERROR: UndefVarError: url not defined
Stacktrace:
[1] top-level scope at REPL[23]:1
Hello Skoffer,
Thank you for replying. I have downloaded your provided link, after that I don’t know how to proceed, I am totally new about it. Please guide me further. Many thanks.
Hi oheil,
I just find a way to download that dog picture into my C:\Temp location as you suggested I should create. Now bypass that direct method, so the problem half solved! I can continue to work with that file without so much frustration. Thank you very much for your kind help!
It appears you are using windows and not linux. I don’t know (or care about) the syntax to use curl/wget under windows, but you can surely find it online.
Hi Skoffer,
Thanks very much for taking the time to help me. After installed UrlDownload, I followed your method and I got the system response as per attached two pictures. Any further suggestions?