user3510226
user3510226

Reputation: 195

Error in using Julia packages

I am using Julia Studio 0.4.4 in Win 7. After installing TimeData, when I write:

  using TimeData

I get this error:

 LoadError("C:\\Users\\user\\.julia\\TimeData\\src\\TimeData.jl",14,ErrorException("DataFrame not defined"))

If I write:

 using DataFrames    

I get another error:

 LoadError("C:\\Users\\user\\.julia\\TimeData\\src\\TimeData.jl",14,ErrorException("invalid redefinition of constant Timedata"))

Here is what Pkg.status() says:

- TimeData                      0.0.1              8e216472 (dirty)
 - TimeModels                    0.0.1
 - TimeSeries                    0.2.0
Additional packages:
 - BinDeps                       0.2.12
 - Blocks                        0.0.4
 - Cairo                         0.2.13
 - Color                         0.2.10
 - DataArrays                    0.0.3
 - DataFrames                    0.4.3
 - Datetime                      0.1.3
 - GZip                          0.2.12
 - HTTPClient                    0.1.0
 - IniFile                       0.2.2
 - LibCURL                       0.1.3
 - LibExpat                      0.0.4
 - SortingAlgorithms             0.0.1
 - StatsBase                     0.3.8
 - Tk

Upvotes: 0

Views: 595

Answers (1)

Yang
Yang

Reputation: 389

Julia Pkg.update() will not update a package is dirty(some files is changed or did not at the right branch).

- TimeData 0.0.1 8e216472 (dirty)

this should mean you have changed the TimeData package.

so please go to C:\Users\user\.julia\TimeData, and run git checkout . this will throw away all changes in files from the current directory downwards(How do I discard unstaged changes in Git?). Then try Pkg.update() .

Upvotes: 1

Related Questions