Closed swadey closed 11 years ago
Not for me. With both up-to-date Julia and up-to-date packages, using Color
does not cause an error.
hmmm.. I'm doing "using Gadfly" and I'm still having the problem. The issue seems to be line 2 of Compose.jl which is:
require("Color.jl")
It seems that julia is looking in the wrong path (.) instead of the location where Compose.jl exists.
You might check if you somehow got an older version of compose. In the current version line 2 is require("Color")
. (See https://github.com/dcjones/Compose.jl/blob/master/src/Compose.jl#L2)
It looks like I have the right version. I removed .julia entirely and tried reinstalling. I noticed that the .julia/REQUIRE file no longer has Compose in it after installation. Could that be the issue?
EDIT: this doesn't seem to be the issue. Also, compose is at 0.1.4 on my system.
SOLVED:
The problem was that Color didn't get installed as a dependency for some reason. I installed it manually and it's now working. I'm not sure why it didn't install when I did Pkg.add("Gadfly"):
julia> Pkg.add("Gadfly")
MESSAGE: Auto-initializing default package repository /Users/swade/.julia.
Initialized empty Git repository in /Users/swade/.julia/.git/
[master (root-commit) 163e75a] Initial empty commit
Cloning into 'METADATA'...
remote: Counting objects: 7953, done.
remote: Compressing objects: 100% (4122/4122), done.
remote: Total 7953 (delta 1270), reused 7861 (delta 1183)
Receiving objects: 100% (7953/7953), 712.70 KiB | 400.00 KiB/s, done.
Resolving deltas: 100% (1270/1270), done.
[master 43e4565] Empty package repo
3 files changed, 5 insertions(+)
create mode 100644 .gitmodules
create mode 160000 METADATA
create mode 100644 REQUIRE
MESSAGE: Installing ArgParse v0.2.4
Cloning into 'ArgParse'...
warning: no common commits
remote: Counting objects: 272, done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 272 (delta 117), reused 260 (delta 109)
Receiving objects: 100% (272/272), 78.25 KiB | 0 bytes/s, done.
Resolving deltas: 100% (117/117), done.
MESSAGE: Installing Codecs v0.0.0
Cloning into 'Codecs'...
warning: no common commits
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 38 (delta 11), reused 34 (delta 7)
Unpacking objects: 100% (38/38), done.
MESSAGE: Installing Compose v0.1.4
Cloning into 'Compose'...
warning: no common commits
remote: Counting objects: 810, done.
remote: Compressing objects: 100% (352/352), done.
remote: Total 810 (delta 502), reused 757 (delta 452)
Receiving objects: 100% (810/810), 274.14 KiB | 0 bytes/s, done.
Resolving deltas: 100% (502/502), done.
MESSAGE: Installing DataFrames v0.3.6
Cloning into 'DataFrames'...
warning: no common commits
remote: Counting objects: 3854, done.
remote: Compressing objects: 100% (1572/1572), done.
remote: Total 3854 (delta 2223), reused 3728 (delta 2104)
Receiving objects: 100% (3854/3854), 6.38 MiB | 514.00 KiB/s, done.
Resolving deltas: 100% (2223/2223), done.
MESSAGE: Installing Distributions v0.1.4
Cloning into 'Distributions'...
warning: no common commits
remote: Counting objects: 836, done.
remote: Compressing objects: 100% (496/496), done.
remote: Total 836 (delta 360), reused 780 (delta 312)
Receiving objects: 100% (836/836), 271.72 KiB | 0 bytes/s, done.
Resolving deltas: 100% (360/360), done. [0/3251]
MESSAGE: Installing GZip v0.2.4
Cloning into 'GZip'...
warning: no common commits
remote: Counting objects: 79, done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 79 (delta 30), reused 77 (delta 29)
Unpacking objects: 100% (79/79), done.
MESSAGE: Installing Gadfly v0.1.7
Cloning into 'Gadfly'...
warning: no common commits
remote: Counting objects: 1021, done.
remote: Compressing objects: 100% (475/475), done.
remote: Total 1021 (delta 580), reused 972 (delta 534)
Receiving objects: 100% (1021/1021), 555.07 KiB | 551.00 KiB/s, done.
Resolving deltas: 100% (580/580), done.
MESSAGE: Installing Iterators v0.1.1
Cloning into 'Iterators'...
warning: no common commits
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 38 (delta 7), reused 32 (delta 1)
Unpacking objects: 100% (38/38), done.
MESSAGE: Installing JSON v0.1.0
Cloning into 'JSON'...
warning: no common commits
remote: Counting objects: 282, done.
remote: Compressing objects: 100% (181/181), done.
remote: Total 282 (delta 90), reused 262 (delta 75)
Receiving objects: 100% (282/282), 53.29 KiB | 0 bytes/s, done.
Resolving deltas: 100% (90/90), done.
MESSAGE: Installing Mustache v0.0.0
Cloning into 'Mustache'...
warning: no common commits
remote: Counting objects: 153, done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 153 (delta 81), reused 149 (delta 79)
Receiving objects: 100% (153/153), 25.09 KiB | 0 bytes/s, done.
Resolving deltas: 100% (81/81), done.
MESSAGE: Installing Options v0.2.1
Cloning into 'Options'...
warning: no common commits
remote: Counting objects: 88, done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 88 (delta 29), reused 87 (delta 28)
Unpacking objects: 100% (88/88), done.
MESSAGE: Installing Stats v0.2.3
Cloning into 'Stats'...
warning: no common commits
remote: Counting objects: 105, done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 105 (delta 40), reused 87 (delta 25)
Receiving objects: 100% (105/105), 19.22 KiB | 0 bytes/s, done.
Resolving deltas: 100% (40/40), done.
MESSAGE: Installing TextWrap v0.1.1
Cloning into 'TextWrap'...
warning: no common commits
remote: Counting objects: 122, done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 122 (delta 46), reused 108 (delta 35)
Receiving objects: 100% (122/122), 34.84 KiB | 0 bytes/s, done.
Resolving deltas: 100% (46/46), done.
thanks, again for your help!
wade
I had the same problem. Color is not installed as dependancy. You have to install it by hand.
Oh, you're right! I forgot to add the requirement whet it was split into a separate package. Fixed now.
julia> using Gadfly ERROR: could not open file /Users/swade/projects/julia/Color.jl in include_from_node1 at loading.jl:91 in reload_path at loading.jl:114 in require at loading.jl:48 in include_from_node1 at loading.jl:91 in reload_path at loading.jl:114 in require at loading.jl:48 in include_from_node1 at loading.jl:91 in reload_path at loading.jl:114 in require at loading.jl:48 at /Users/swade/.julia/Compose/src/Compose.jl:2 at /Users/swade/.julia/Gadfly/src/Gadfly.jl:3