SLU-TMI / TextMining.jl

Other
24 stars 7 forks source link

Adding ASCII etc. #70

Closed buzzcauldron closed 9 years ago

buzzcauldron commented 9 years ago

When I tried to load the programs Mark suggested, I got this error:

julia> Pkg.add("LightXML") ERROR: could not spawn setenv(git rev-parse --git-dir; dir="/home/seth/.julia/v0.3/METADATA"): no such file or directory (ENOENT) in _jl_spawn at process.jl:217 in spawn at process.jl:348 in open at ./process.jl:397 in readbytes at ./process.jl:461 in dir at pkg/git.jl:10 in git at pkg/git.jl:16 in cmd at pkg/git.jl:21 in readchomp at pkg/git.jl:24 in branch at pkg/git.jl:56 in add at pkg/entry.jl:51 in add at pkg/entry.jl:71 in anonymous at pkg/dir.jl:28 in cd at ./file.jl:20 in cd#228 at ./pkg/dir.jl:28 in add at pkg.jl:20

Any ideas?

mtabor150 commented 9 years ago

Looks like a problem with how julia or git is setup on your computer. Try executing

git rev-parse --git-dir; dir="/home/seth/.julia/v0.3/METADATA"

directly in the terminal window.

buzzcauldron commented 9 years ago

(precise)seth@localhost:~$ git rev-parse --git-dir; dir="/home/seth/.julia/v0.3/METADATA" fatal: Not a git repository (or any of the parent directories): .git

OR

julia> (precise)seth@localhost:~$ git rev-parse --git-dir; dir="/home/seth/.julia/v0.3/METADATA" ERROR: @localhost not defined

julia> fatal: Not a git repository (or any of the parent directories): .git

buzzcauldron commented 9 years ago

Do I need to clone a repository?

mtabor150 commented 9 years ago

So I think the problem is that "/home/seth/.julia/v0.3/METADATA" does not exist on your computer. Hence the "no such file or directory (ENOENT)" error. Do the following command in julia

Pkg.status()
buzzcauldron commented 9 years ago

julia> Pkg.status() ERROR: unable to read directory METADATA: No such file or directory in readdir at ./file.jl:161 in status at pkg/entry.jl:107 in anonymous at pkg/dir.jl:28 in cd at ./file.jl:20 in cd at pkg/dir.jl:28 in status at pkg.jl:28 (repeats 2 times)

Kevin-Damazyn commented 9 years ago

@sethstrickland can you check what julia version you are using? if you load the julia REPL it will print it out for you.

buzzcauldron commented 9 years ago

() | A fresh approach to technical computing () | () () | Documentation: http://docs.julialang.org | | | Type "help()" for help. | | | | | | |/ ` | | | | || | | | (| | | Version 0.3.6 (2015-01-08 22:33 UTC) / |_'||_|'_| | Official http://julialang.org release |__/ | x86_64-linux-gnu

Kevin-Damazyn commented 9 years ago

@sethstrickland that is the correct version, so now we go to git. You have git installed right?

buzzcauldron commented 9 years ago

Fixed it. Did

Pkg.init() and cloned the METADATA

Kevin-Damazyn commented 9 years ago

Oh yeah! I remembered doing that but I couldn’t find it in the docs so I figured I was delusional. :-)

buzzcauldron commented 9 years ago

So now, am I being dumb:

julia> include("../TextMining.jl") ERROR: could not open file /home/TextMining.jl in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128

julia> include("./TextMining.jl") ERROR: could not open file /home/seth/TextMining.jl in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128

julia> include("length/TextMining.jl") ERROR: could not open file /home/seth/length/TextMining.jl in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128

?

buzzcauldron commented 9 years ago

Sorry about all the questions. This syntax is new, so I don't have my fallback commands to try to fix things.

Kevin-Damazyn commented 9 years ago

I was here just like you about 3 months ago, this is no problem. haha ok so there are a couple ways to figure this out.

  1. do you know your way around the command line? if so, go (cd) to the SLU-TextMining folder open julia then use the include("./src/TextMining.jl") line if not
  2. Open the folder in windows explorer right click on the SLU-TextMining folder select open in gui-bash (or something like that) run julia from inside this folder then do the include("./src/TextMining.jl") line
mtabor150 commented 9 years ago

You have to navigate to where you cloned the data from github to and then you can use

include ("./TextMining.jl")
buzzcauldron commented 9 years ago

Awesome. Got it for src. Now when I run

julia> include("./test/TextMining.jl") ERROR: could not open file /home/seth/Desktop/TextMining.jl-master/test/TextMining.jl in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128

that happens.

mtabor150 commented 9 years ago

There is no TextMinging.jl file in the test directory. If you want to run the tests you have to do the following:

include("./test/runtests.jl")

That will load in the tests as well as loading in everything else. Then you can do

run_tests()

which will execute all the tests. Note that Julia freaks out if you try to reload types so do include("./test/runtests.jl") or include("./src/TextMining.jl"), but not both.

Kevin-Damazyn commented 9 years ago

So there is no TextMining.jl in the test folder. The only thing you need to load in the test folder is runtests.jl file. Be careful though because you will run into an error if you load both files in. The TextMining.jl file is to use the application. The runtests.jl is to use the function runtests() which will just run through the created tests we made for the project. So if you want to play with the applications, load TextMining.jl if you want to run the tests, load runtests.jl

mtabor150 commented 9 years ago

Jinx you owe me a coke @Kevin-Damazyn .

Kevin-Damazyn commented 9 years ago

Alright @mtabor150. I am going to let you take it from here. :-) I still have to write my conclusion to this C-at-best paper haha I'll buy your coke the same time I buy Charlie his shot.

mtabor150 commented 9 years ago

I'll take a shot instead.

buzzcauldron commented 9 years ago

Perfect. You guys @mtabor150 @Kevin-Damazyn so fly.