Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOError on Windows #1

Closed
carstenbauer opened this issue Jan 8, 2020 · 5 comments
Closed

IOError on Windows #1

carstenbauer opened this issue Jan 8, 2020 · 5 comments

Comments

@carstenbauer
Copy link

I get

julia> XKCD.comic()
ERROR: IOError: could not spawn `start https://imgs.xkcd.com/comics/alignment_chart_alignment_chart.png`: no such file or directory (ENOENT)
Stacktrace:
 [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99
 [2] setup_stdios(::Base.var"#554#555"{Cmd}, ::Array{Any,1}) at .\process.jl:112
 [3] _spawn at .\process.jl:111 [inlined]
 [4] #run#565(::Bool, ::typeof(run), ::Cmd) at .\process.jl:439
 [5] run at .\process.jl:438 [inlined]
 [6] #comic#1(::Bool, ::typeof(XKCD.comic), ::Nothing) at C:\Users\carsten\.julia\packages\XKCD\eRQxZ\src\XKCD.jl:22
 [7] comic at C:\Users\carsten\.julia\packages\XKCD\eRQxZ\src\XKCD.jl:18 [inlined] (repeats 2 times)
 [8] top-level scope at REPL[3]:1

on Windows 10, Julia 1.3.1.

@joshday
Copy link
Owner

joshday commented Jan 8, 2020

Hmm, I don't have windows myself to test it with. I just read that start <url> would open the image in browser. I'll see what I can do.

@joshday
Copy link
Owner

joshday commented Jan 9, 2020

Can you confirm that

explorer https://imgs.xkcd.com/comics/alignment_chart_alignment_chart.png

works from a windows terminal? I'm basing this off stack overflow answers, so who knows.

@carstenbauer
Copy link
Author

Yep, works for me (Windows 10).

@carstenbauer
Copy link
Author

Alternatively, DefaultApplication.jl might be useful.

@joshday
Copy link
Owner

joshday commented Jan 11, 2020

Thanks for the pointer! I'm going the DefaultApplication route

@joshday joshday closed this as completed Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants