# Julia First Steps (Not an advert, just a few links, pls dont block the post)

**URL:** <https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922>\
**Category:** New to Julia\
**Created:** [September 18, 2019, 10:22pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922 "2019-09-18T22:22:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Schumacher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_schumacher/32/10362_2.png) [@Christian\_Schumacher](https://discourse.julialang.org/u/Christian_Schumacher)\
**Post date:** [September 18, 2019, 10:22pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/1 "2019-09-18T22:22:18Z")

</div>

Hi,  
I am new to Julia, coming from an R / Matlab background, but apparently I am too stupid to use it. I know its much to ask, but the only thing I wanted to do is getting this very well documented code to run: (https:// github .com/dscotthunter/Fantasy-Hockey-IP-Code/blob/master/README.md)  
After having problems using the Console from Julia and hours of trying to get the code to run, I joined this subreddit and found repl dot it and hoped my problems would be solved. it didnt. I implemeted the code, followed the README from Github, imported the packages but I just keep getting errors. I am at the end of my nerves. I know its much to ask, but would anybody here in the sub so kind to look if he or she is able to get this code to run? Here is the link:  
[https://repl.it/join/dtmcbrqy-christian1337](https://repl.it/join/dtmcbrqy-christian1337)

Thank you really much in advance. I am tying all this for the whole day now and the clock for my bachelor thesis is ticking.

after importing all packages and running the code (last a few minutes, but its supposed to run this long) i get this error: https: [//m.imgur.com/gallery/TKalrhz](https://m.imgur.com/gallery/TKalrhz)

---

<div class="post-metadata">

**Author:** ![Christian\_Schumacher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_schumacher/32/10362_2.png) [@Christian\_Schumacher](https://discourse.julialang.org/u/Christian_Schumacher)\
**Post date:** [September 18, 2019, 10:22pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/2 "2019-09-18T22:22:56Z")

</div>

as I am a new user, I edited the links so i could post more than two. I will try them here in the comments again. yes i know its not a subreddit.

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [September 18, 2019, 10:27pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/3 "2019-09-18T22:27:09Z")

</div>

Sorry about that, the post got flagged as spam. I restored it but can’t see any images so it’s hard to figure out what you’re having trouble with.

---

<div class="post-metadata">

**Author:** ![Pbellive](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pbellive/32/3604_2.png) [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Post date:** [September 18, 2019, 10:31pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/4 "2019-09-18T22:31:07Z")

</div>

I took a quick look at the github repo you mentioned. It looks like it hasn’t been updated for three years. That means that it will not work with the latest version of julia or the julia packages that repo’s code depends on. You might have to go all the way back to julia 0.4 to run that code as is. You could download julia 0.4 pretty easily but it might be more work to track down the appropriate versions of the optimization packages you’d need.

---

<div class="post-metadata">

**Author:** ![Christian\_Schumacher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_schumacher/32/10362_2.png) [@Christian\_Schumacher](https://discourse.julialang.org/u/Christian_Schumacher)\
**Post date:** [September 18, 2019, 10:31pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/5 "2019-09-18T22:31:42Z")

</div>

I dont know why the links are not working. I have the same problem myself now. I will try to post them again in this comment. The error i get is like this.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/c/ec8537041302da2c005ea7b58552cce19467789b.png)  
you can reproduce the error by heading to https:// repl.it/join/dtmcbrqy-christian1337 (you have to restore the link, I am not able to post links as a new user) and running the code

---

<div class="post-metadata">

**Author:** ![Christian\_Schumacher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_schumacher/32/10362_2.png) [@Christian\_Schumacher](https://discourse.julialang.org/u/Christian_Schumacher)\
**Post date:** [September 18, 2019, 10:33pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/6 "2019-09-18T22:33:19Z")

</div>

ah I see. Thank you! I found the old version, downloading it rn, is there by any chance a documentation for it?

---

<div class="post-metadata">

**Author:** ![Pbellive](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pbellive/32/3604_2.png) [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Post date:** [September 18, 2019, 10:51pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/7 "2019-09-18T22:51:52Z")

</div>

Yes, you can find the docs for that version at [Julia Documentation — Julia Language 0.4.8-pre documentation](https://docs.julialang.org/en/v0.4/). Just for fun, I also downloaded julia 0.4 and followed the instructions in the readme of [https://github.com/dscotthunter/Fantasy-Hockey-IP-Code](https://github.com/dscotthunter/Fantasy-Hockey-IP-Code). There were some warnings but, impressively, running the sample code in that repository just worked after installing the required packages. Pretty cool.

However, if you’re planning to write any of your own code based on that repo and the paper it goes with, I would strongly advise learning to use JuMP in julia 1.2 and writing your own code from there. All that old code, including the old version of julia itself, is unsupported. It’ll be a lot easier to get help if you’re working with up to date tools.

---

<div class="post-metadata">

**Author:** ![Christian\_Schumacher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_schumacher/32/10362_2.png) [@Christian\_Schumacher](https://discourse.julialang.org/u/Christian_Schumacher)\
**Post date:** [September 18, 2019, 11:13pm UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/8 "2019-09-18T23:13:22Z")

</div>

Thank your for trying this out! It seems like my problems with the code are more connected to the general use of Julia. With the old version i am not able to execute this code in the Julia interface:

$ git clone [https://github.com/dscotthunter/Fantasy-Hockey-IP-Code](https://github.com/dscotthunter/Fantasy-Hockey-IP-Code)

I think I will start by learning how to use Julia with some other projects and hope to get a better understanding how to run files/scripts and use packages and then try to get this project to run or rewrite it to use it with the supported Julia versions

---

<div class="post-metadata">

**Author:** ![Pbellive](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pbellive/32/3604_2.png) [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Post date:** [September 19, 2019, 12:04am UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/9 "2019-09-19T00:04:22Z")

</div>

No problem. I think getting a general feel for julia first is a good approach. One extra tip: the command you mentioned in your last post is not meant to be run from a julia prompt. It’s a git command meant to be run from the shell prompt on a Unix-like system or from something like git bash on Windows. Nothing julia specific there. If you’re going to be getting into programming in any language, learning to use git is very useful.

---

<div class="post-metadata">

**Author:** ![leethargo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leethargo/32/6004_2.png) [@leethargo](https://discourse.julialang.org/u/leethargo)\
**Post date:** [September 19, 2019, 9:24am UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/10 "2019-09-19T09:24:38Z")

</div>

If you just want to learn about Julia, and JuMP in particular, you can also look at the collection of [JuMP notebooks](https://github.com/JuliaOpt/juliaopt-notebooks) that should work with more recent versions of Julia.

EDIT: Apparently the above is now superseded by [JuMPTutorials.jl](https://github.com/JuliaOpt/JuMPTutorials.jl)

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [September 19, 2019, 10:07am UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/11 "2019-09-19T10:07:04Z")

</div>

Hello @Christian_Schumacher and welcome! We are very friendly here.  
Please think about doing this - the presentations from JuliaCon are very good. Have a look here and watch any of them which interest you.  
[https://www.youtube.com/user/JuliaLanguage](https://www.youtube.com/user/JuliaLanguage)

Also as people in this thread have said. Julia is now stable and has reached the 1.0 version.  
The latest version is v1.2.0 which should introduce NO breaking changes from v1.0  
We can sense that you are getting frustrated with trying to get some code working which was for an older version of Julia.

Let us know if we can help you get running in a REPL environment, with Jupyter notebooks or with VSCode/Atom.  
Have you looked at [https://www.juliabox.com/](https://www.juliabox.com/) and [https://nextjournal.com/](https://nextjournal.com/)

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 19, 2019, 10:33am UTC](https://discourse.julialang.org/t/julia-first-steps-not-an-advert-just-a-few-links-pls-dont-block-the-post/28922/12 "2019-09-19T10:33:21Z")

</div>

Previous threads trying to work with

> **[GitHub - dscotthunter/Fantasy-Hockey-IP-Code](https://github.com/dscotthunter/Fantasy-Hockey-IP-Code/)**
>
> Contribute to dscotthunter/Fantasy-Hockey-IP-Code development by creating an account on GitHub.

include

> [@Editing Constraints in the Picking Winners programs](https://discourse.julialang.org/t/editing-constraints-in-the-picking-winners-programs/8336):
>
> Hi there, I’m trying to edit one of the constraints in the code\_for\_Github.jl file as developed here [https://github.com/dscotthunter/Fantasy-Hockey-IP-Code](https://github.com/dscotthunter/Fantasy-Hockey-IP-Code) The program generates lineups of sports players to submit in daily fantasy sports contests. The contests have certain rules for how lineups are constructed, and I’d like to change how one of these rules was programmed in the code. The constraint in question was originally written for a contest in which the 8 skaters in a lineup had to pla…

> [@NEED HELP: Warnings/errors from "Pkg.add("GLPKMathProgInterface")](https://discourse.julialang.org/t/need-help-warnings-errors-from-pkg-add-glpkmathproginterface/8956):
>
> I’m on a MacBook Pro running High Sierra. I’m trying to run the following code in Julia - [https://github.com/dscotthunter/Fantasy-Hockey-IP-Code](https://github.com/dscotthunter/Fantasy-Hockey-IP-Code) I download Julia, and enter the following commands: Pkg.add(“JuMP”) Pkg.add(“DataFrames”) and those run smoothly…but when I enter "Pkg.add(“GLPKMathProgInterface”) I get the following readout - can someone help me figure out how to do this properly? Thanks in advance!: julia\> Pkg.add(“GLPKMathProgInterface”) INFO: Installing GLPKMathProgInterface …

> [@Newbie question regarding opening files](https://discourse.julialang.org/t/newbie-question-regarding-opening-files/7856):
>
> I have no background with computer programming, but am a daily fantasy sports player. I recently came across a paper - “Picking Winners Using Integer Programming” by David Hunter, Juan Pablo Vielma, and Tauhid Zaman. Maybe I’m in over my head here, but I am trying to run their code - [https://github.com/dscotthunter/Fantasy-Hockey-IP-Code](https://github.com/dscotthunter/Fantasy-Hockey-IP-Code) I’ve successfully downloaded and run all of the required software, as instructed on the GitHub page. I downloaded the code in the zip file to my machine (I p…

> [@Editing Constraints in the Picking Winners programs](https://discourse.julialang.org/t/editing-constraints-in-the-picking-winners-programs/8336):
>
> Hi there, I’m trying to edit one of the constraints in the code\_for\_Github.jl file as developed here [https://github.com/dscotthunter/Fantasy-Hockey-IP-Code](https://github.com/dscotthunter/Fantasy-Hockey-IP-Code) The program generates lineups of sports players to submit in daily fantasy sports contests. The contests have certain rules for how lineups are constructed, and I’d like to change how one of these rules was programmed in the code. The constraint in question was originally written for a contest in which the 8 skaters in a lineup had to pla…

I have no clue what Fantasy Hockey is, but someone interested in it _and_ learning Julia could turn forking and updating this repository into a learning experience.

I would recommend the following:

1. fork the repository (as far as I can tell the license allows building on this code)

2. add a Project.toml file (see [https://julialang.github.io/Pkg.jl/dev/creating-packages/](https://julialang.github.io/Pkg.jl/dev/creating-packages/) )

3. separate runtime and library code

4. set up unit tests

5. integrate with Travis
