mikeizbicki / HLearn

Homomorphic machine learning
Other
1.62k stars 138 forks source link

problem with cabal install #48

Closed haihan-yu closed 1 year ago

haihan-yu commented 9 years ago

Hello I know HLearn from your blog, HLearn is really an exciting project. But I encount some problem when I try to install HLearn from cabal. My GHC version is: version 7.8.3. My operating system is Mac OSX 10.10.2. The following is the error message I get. Thanks a lot! $ cabal install HLearn-algebra-0.0.1 Resolving dependencies... Configuring HLearn-algebra-0.0.1... Building HLearn-algebra-0.0.1... Failed to install HLearn-algebra-0.0.1 Last 10 lines of the build log ( /Users/haihan/.cabal/logs/HLearn-algebra-0.0.1.log ): [2 of 4] Compiling HLearn.Algebra.Functions ( src/HLearn/Algebra/Functions.hs, dist/build/HLearn/Algebra/Functions.o )

src/HLearn/Algebra/Functions.hs:42:7: Not in scope: type constructor or class ‘CK.Partitionable’

src/HLearn/Algebra/Functions.hs:43:7: Not in scope: type constructor or class ‘CK.PartitionableConstraint’

src/HLearn/Algebra/Functions.hs:48:34: Not in scope: ‘CK.partition’ cabal: Error: some packages failed to install: HLearn-algebra-0.0.1 failed during the building phase. The exception was: ExitFailure 1

wildman1234 commented 9 years ago

I think your problem comes from constraintkinds 1.3.0 being incompatible with HLearn-algebra. As far as I know only in the latest version of HLearn-algebra is the dependency constraint set to not allow constraintkinds 1.3.0. Try installing the latest HLearn-algebra instead. Then likely you will run in to this problem Issue 44

damienstanton commented 9 years ago

Restricting the version to 1.1.0.0 does not work because ConstraintKinds doesn't build properly:

cabal install hlearn-algebra-1.1.0.0
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/dstanton/hsdev/veyron/.cabal-sandbox
Configuring ConstraintKinds-1.1.0.0...
Building ConstraintKinds-1.1.0.0...
Failed to install ConstraintKinds-1.1.0.0
Build log ( /Users/dstanton/hsdev/veyron/.cabal-sandbox/logs/ConstraintKinds-1.1.0.0.log ):
Configuring ConstraintKinds-1.1.0.0...
Building ConstraintKinds-1.1.0.0...
Preprocessing library ConstraintKinds-1.1.0.0...
[1 of 9] Compiling Control.ConstraintKinds.Partitionable ( src/Control/ConstraintKinds/Partitionable.hs, dist/dist-sandbox-1d9bcbb9/build/Control/ConstraintKinds/Partitionable.o )

src/Control/ConstraintKinds/Partitionable.hs:42:30:
    Could not deduce (RealFrac s1) arising from a use of ‘ceiling’
    from the context (PartitionableConstraint V.Vector a)
      bound by the type signature for
                 partition :: (PartitionableConstraint V.Vector a) =>
                              Int -> V.Vector a -> [V.Vector a]
      at src/Control/ConstraintKinds/Partitionable.hs:33:5-13
    The type variable ‘s1’ is ambiguous
    Note: there are several potential instances:
      instance RealFrac Double -- Defined in ‘GHC.Float’
      instance RealFrac Float -- Defined in ‘GHC.Float’
      instance Integral a => RealFrac (GHC.Real.Ratio a)
        -- Defined in ‘GHC.Real’
    In the expression: ceiling
    In the expression:
      ceiling $ (fromIntegral $ V.length vec) / (fromIntegral n)
    In an equation for ‘lenmax’:
        lenmax = ceiling $ (fromIntegral $ V.length vec) / (fromIntegral n)

src/Control/ConstraintKinds/Partitionable.hs:42:41:
    Could not deduce (Num s1) arising from a use of ‘fromIntegral’
    from the context (PartitionableConstraint V.Vector a)
      bound by the type signature for
                 partition :: (PartitionableConstraint V.Vector a) =>
                              Int -> V.Vector a -> [V.Vector a]
      at src/Control/ConstraintKinds/Partitionable.hs:33:5-13
    The type variable ‘s1’ is ambiguous
    Note: there are several potential instances:
      instance Num Double -- Defined in ‘GHC.Float’
      instance Num Float -- Defined in ‘GHC.Float’
      instance Integral a => Num (GHC.Real.Ratio a)
        -- Defined in ‘GHC.Real’
      ...plus five others
    In the expression: fromIntegral
    In the first argument of ‘(/)’, namely
      ‘(fromIntegral $ V.length vec)’
    In the second argument of ‘($)’, namely
      ‘(fromIntegral $ V.length vec) / (fromIntegral n)’

src/Control/ConstraintKinds/Partitionable.hs:42:70:
    Could not deduce (Fractional s1) arising from a use of ‘/’
    from the context (PartitionableConstraint V.Vector a)
      bound by the type signature for
                 partition :: (PartitionableConstraint V.Vector a) =>
                              Int -> V.Vector a -> [V.Vector a]
      at src/Control/ConstraintKinds/Partitionable.hs:33:5-13
    The type variable ‘s1’ is ambiguous
    Note: there are several potential instances:
      instance Fractional Double -- Defined in ‘GHC.Float’
      instance Fractional Float -- Defined in ‘GHC.Float’
      instance Integral a => Fractional (GHC.Real.Ratio a)
        -- Defined in ‘GHC.Real’
    In the second argument of ‘($)’, namely
      ‘(fromIntegral $ V.length vec) / (fromIntegral n)’
    In the expression:
      ceiling $ (fromIntegral $ V.length vec) / (fromIntegral n)
    In an equation for ‘lenmax’:
        lenmax = ceiling $ (fromIntegral $ V.length vec) / (fromIntegral n)

src/Control/ConstraintKinds/Partitionable.hs:55:30:
    Could not deduce (RealFrac s0) arising from a use of ‘ceiling’
    from the context (PartitionableConstraint VU.Vector a)
      bound by the type signature for
                 partition :: (PartitionableConstraint VU.Vector a) =>
                              Int -> VU.Vector a -> [VU.Vector a]
      at src/Control/ConstraintKinds/Partitionable.hs:46:5-13
    The type variable ‘s0’ is ambiguous
    Note: there are several potential instances:
      instance RealFrac Double -- Defined in ‘GHC.Float’
      instance RealFrac Float -- Defined in ‘GHC.Float’
      instance Integral a => RealFrac (GHC.Real.Ratio a)
        -- Defined in ‘GHC.Real’
    In the expression: ceiling
    In the expression:
      ceiling $ (fromIntegral $ VU.length vec) / (fromIntegral n)
    In an equation for ‘lenmax’:
        lenmax
          = ceiling $ (fromIntegral $ VU.length vec) / (fromIntegral n)

src/Control/ConstraintKinds/Partitionable.hs:55:41:
    Could not deduce (Num s0) arising from a use of ‘fromIntegral’
    from the context (PartitionableConstraint VU.Vector a)
      bound by the type signature for
                 partition :: (PartitionableConstraint VU.Vector a) =>
                              Int -> VU.Vector a -> [VU.Vector a]
      at src/Control/ConstraintKinds/Partitionable.hs:46:5-13
    The type variable ‘s0’ is ambiguous
    Note: there are several potential instances:
      instance Num Double -- Defined in ‘GHC.Float’
      instance Num Float -- Defined in ‘GHC.Float’
      instance Integral a => Num (GHC.Real.Ratio a)
        -- Defined in ‘GHC.Real’
      ...plus five others
    In the expression: fromIntegral
    In the first argument of ‘(/)’, namely
      ‘(fromIntegral $ VU.length vec)’
    In the second argument of ‘($)’, namely
      ‘(fromIntegral $ VU.length vec) / (fromIntegral n)’

src/Control/ConstraintKinds/Partitionable.hs:55:71:
    Could not deduce (Fractional s0) arising from a use of ‘/’
    from the context (PartitionableConstraint VU.Vector a)
      bound by the type signature for
                 partition :: (PartitionableConstraint VU.Vector a) =>
                              Int -> VU.Vector a -> [VU.Vector a]
      at src/Control/ConstraintKinds/Partitionable.hs:46:5-13
    The type variable ‘s0’ is ambiguous
    Note: there are several potential instances:
      instance Fractional Double -- Defined in ‘GHC.Float’
      instance Fractional Float -- Defined in ‘GHC.Float’
      instance Integral a => Fractional (GHC.Real.Ratio a)
        -- Defined in ‘GHC.Real’
    In the second argument of ‘($)’, namely
      ‘(fromIntegral $ VU.length vec) / (fromIntegral n)’
    In the expression:
      ceiling $ (fromIntegral $ VU.length vec) / (fromIntegral n)
    In an equation for ‘lenmax’:
        lenmax
          = ceiling $ (fromIntegral $ VU.length vec) / (fromIntegral n)
cabal: Error: some packages failed to install:
ConstraintKinds-1.1.0.0 failed during the building phase. The exception was:
ExitFailure 1
HLearn-algebra-1.1.0.0 depends on ConstraintKinds-1.1.0.0 which failed to
install.

I noticed constraintkinds has been deprecated. Is Hlearn going to be updated to use subhask?

mikeizbicki commented 9 years ago

The version on github uses subhask. There are a LOT of improvements, but it'll be a while before it is ready for a proper release onto hackage.

boersmamarcel commented 9 years ago

I've got a similar problem, I'm currently using Mac OS X 10.10.3 with ghc 7.8.3 and tried the quick and dirty installation guide however without succes.

I'm using the antipolymorphism branch of HLearn with subhask from the git repository.

I currently get

 cabal install --only-dependencies
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/marcelboersma/Downloads/HLearn/.cabal-sandbox
Configuring JuicyPixels-3.2.3.1...
Configuring StateVar-1.1.0.0...
Configuring abstract-deque-0.3...
Configuring blaze-builder-0.4.0.1...
Configuring monad-par-extras-0.3.3...
Configuring hmatrix-0.16.0.5...
Configuring nats-0.2...
Configuring normaldistribution-1.1.0.3...
Building StateVar-1.1.0.0...
Failed to install StateVar-1.1.0.0
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/StateVar-1.1.0.0.log ):
Configuring StateVar-1.1.0.0...
Building StateVar-1.1.0.0...
Preprocessing library StateVar-1.1.0.0...
<command line>: cannot satisfy -package-id stm-2.4.2-29f719ec777dfbb9548ac2cdb8ccc3c6
    (use -v for more information)
Configuring pipes-4.1.5...
Building JuicyPixels-3.2.3.1...
Building abstract-deque-0.3...
Building nats-0.2...
Configuring polyparse-1.11...
Configuring safecopy-0.8.4...
Failed to install JuicyPixels-3.2.3.1
Configuring scientific-0.2.0.2...
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/JuicyPixels-3.2.3.1.log ):
Configuring JuicyPixels-3.2.3.1...
Building JuicyPixels-3.2.3.1...
Preprocessing library JuicyPixels-3.2.3.1...
<command line>: cannot satisfy -package-id mtl-2.1.3.1-8bcc0591131896cfc8761a93703d4c61
    (use -v for more information)
Failed to install abstract-deque-0.3
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/abstract-deque-0.3.log ):
Configuring abstract-deque-0.3...
Building abstract-deque-0.3...
Preprocessing library abstract-deque-0.3...
<command line>: cannot satisfy -package-id random-1.0.1.1-b446f74d7499e56d39ddb35a488905c9
    (use -v for more information)
Failed to install nats-0.2
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/nats-0.2.log ):
Configuring nats-0.2...
Building nats-0.2...
Preprocessing library nats-0.2...
<command line>: cannot satisfy -package-id hashable-1.2.2.0-45bd22df8c4ead6b3a7fb1d08bb07f7d
    (use -v for more information)
Building blaze-builder-0.4.0.1...
Configuring tf-random-0.5...
Failed to install blaze-builder-0.4.0.1
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/blaze-builder-0.4.0.1.log ):
Configuring blaze-builder-0.4.0.1...
Building blaze-builder-0.4.0.1...
Preprocessing library blaze-builder-0.4.0.1...
<command line>: cannot satisfy -package-id text-1.1.0.0-9bd69e9ace700e05fb08e463086bc383
    (use -v for more information)
Building monad-par-extras-0.3.3...
Building hmatrix-0.16.0.5...
Configuring th-expand-syns-0.3.0.6...
Failed to install monad-par-extras-0.3.3
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/monad-par-extras-0.3.3.log ):
Configuring monad-par-extras-0.3.3...
Building monad-par-extras-0.3.3...
Preprocessing library monad-par-extras-0.3.3...
<command line>: cannot satisfy -package-id mtl-2.1.3.1-8bcc0591131896cfc8761a93703d4c61
    (use -v for more information)
Configuring transformers-compat-0.4.0.3...
Failed to install hmatrix-0.16.0.5
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/hmatrix-0.16.0.5.log ):
Configuring hmatrix-0.16.0.5...
Building hmatrix-0.16.0.5...
Preprocessing library hmatrix-0.16.0.5...
<command line>: cannot satisfy -package-id random-1.0.1.1-b446f74d7499e56d39ddb35a488905c9
    (use -v for more information)
Building normaldistribution-1.1.0.3...
Configuring wl-pprint-text-1.1.0.4...
Failed to install normaldistribution-1.1.0.3
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/normaldistribution-1.1.0.3.log ):
Configuring normaldistribution-1.1.0.3...
Building normaldistribution-1.1.0.3...
Preprocessing library normaldistribution-1.1.0.3...
<command line>: cannot satisfy -package-id random-1.0.1.1-b446f74d7499e56d39ddb35a488905c9
    (use -v for more information)
Building pipes-4.1.5...
Building polyparse-1.11...
Configuring xml-1.3.14...
Failed to install pipes-4.1.5
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/pipes-4.1.5.log ):
Configuring pipes-4.1.5...
Building pipes-4.1.5...
Preprocessing library pipes-4.1.5...
<command line>: cannot satisfy -package-id mtl-2.1.3.1-8bcc0591131896cfc8761a93703d4c61
    (use -v for more information)
Building safecopy-0.8.4...
Building scientific-0.2.0.2...
Failed to install polyparse-1.11
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/polyparse-1.11.log ):
Configuring polyparse-1.11...
Building polyparse-1.11...
Preprocessing library polyparse-1.11...
<command line>: cannot satisfy -package-id text-1.1.0.0-9bd69e9ace700e05fb08e463086bc383
    (use -v for more information)
Failed to install scientific-0.2.0.2
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/scientific-0.2.0.2.log ):
Configuring scientific-0.2.0.2...
Building scientific-0.2.0.2...
Preprocessing library scientific-0.2.0.2...
<command line>: cannot satisfy -package-id hashable-1.2.2.0-45bd22df8c4ead6b3a7fb1d08bb07f7d
    (use -v for more information)
Failed to install safecopy-0.8.4
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/safecopy-0.8.4.log ):
Configuring safecopy-0.8.4...
Building safecopy-0.8.4...
Preprocessing library safecopy-0.8.4...
<command line>: cannot satisfy -package-id text-1.1.0.0-9bd69e9ace700e05fb08e463086bc383
    (use -v for more information)
Building tf-random-0.5...
Failed to install tf-random-0.5
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/tf-random-0.5.log ):
Configuring tf-random-0.5...
Building tf-random-0.5...
Preprocessing library tf-random-0.5...
<command line>: cannot satisfy -package-id random-1.0.1.1-b446f74d7499e56d39ddb35a488905c9
    (use -v for more information)
Building th-expand-syns-0.3.0.6...
Failed to install th-expand-syns-0.3.0.6
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/th-expand-syns-0.3.0.6.log ):
Configuring th-expand-syns-0.3.0.6...
Building th-expand-syns-0.3.0.6...
Preprocessing library th-expand-syns-0.3.0.6...
<command line>: cannot satisfy -package-id syb-0.4.1-be94ebe67c3607f5df1dfcc1906f5d5c
    (use -v for more information)
Building transformers-compat-0.4.0.3...
Failed to install transformers-compat-0.4.0.3
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/transformers-compat-0.4.0.3.log ):
Configuring transformers-compat-0.4.0.3...
Building transformers-compat-0.4.0.3...
Preprocessing library transformers-compat-0.4.0.3...
<command line>: cannot satisfy -package-id mtl-2.1.3.1-8bcc0591131896cfc8761a93703d4c61
    (use -v for more information)
Building wl-pprint-text-1.1.0.4...
Failed to install wl-pprint-text-1.1.0.4
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/wl-pprint-text-1.1.0.4.log ):
Configuring wl-pprint-text-1.1.0.4...
Building wl-pprint-text-1.1.0.4...
Preprocessing library wl-pprint-text-1.1.0.4...
<command line>: cannot satisfy -package-id text-1.1.0.0-9bd69e9ace700e05fb08e463086bc383
    (use -v for more information)
Building xml-1.3.14...
Failed to install xml-1.3.14
Build log ( /Users/marcelboersma/Downloads/HLearn/.cabal-sandbox/logs/xml-1.3.14.log ):
Configuring xml-1.3.14...
Building xml-1.3.14...
Preprocessing library xml-1.3.14...
<command line>: cannot satisfy -package-id text-1.1.0.0-9bd69e9ace700e05fb08e463086bc383
    (use -v for more information)
cabal: Error: some packages failed to install:
JuicyPixels-3.2.3.1 failed during the building phase. The exception was:
ExitFailure 1
MemoTrie-0.6.2 depends on nats-0.2 which failed to install.
MonadRandom-0.3.0.2 depends on transformers-compat-0.4.0.3 which failed to
install.
QuickCheck-2.7.6 depends on tf-random-0.5 which failed to install.
StateVar-1.1.0.0 failed during the building phase. The exception was:
ExitFailure 1
abstract-deque-0.3 failed during the building phase. The exception was:
ExitFailure 1
active-0.1.0.19 depends on transformers-compat-0.4.0.3 which failed to
install.
adjunctions-4.2 depends on transformers-compat-0.4.0.3 which failed to
install.
aeson-0.7.0.4 depends on scientific-0.2.0.2 which failed to install.
approximate-0.2.1.1 depends on transformers-compat-0.4.0.3 which failed to
install.
bifunctors-4.2.1 depends on transformers-compat-0.4.0.3 which failed to
install.
bits-0.4 depends on transformers-compat-0.4.0.3 which failed to install.
blaze-builder-0.4.0.1 failed during the building phase. The exception was:
ExitFailure 1
blaze-markup-0.7.0.2 depends on blaze-builder-0.4.0.1 which failed to install.
blaze-svg-0.3.4.1 depends on blaze-builder-0.4.0.1 which failed to install.
bytes-0.14.1.3 depends on transformers-compat-0.4.0.3 which failed to install.
cassava-0.4.2.3 depends on blaze-builder-0.4.0.1 which failed to install.
comonad-4.2.5 depends on transformers-compat-0.4.0.3 which failed to install.
contravariant-1.3.1 depends on transformers-compat-0.4.0.3 which failed to
install.
cpphs-1.19 depends on polyparse-1.11 which failed to install.
diagrams-core-1.2.0.6 depends on transformers-compat-0.4.0.3 which failed to
install.
diagrams-lib-1.2.0.9 depends on transformers-compat-0.4.0.3 which failed to
install.
diagrams-svg-1.1.0.5 depends on transformers-compat-0.4.0.3 which failed to
install.
distributive-0.4.4 depends on transformers-compat-0.4.0.3 which failed to
install.
dual-tree-0.2.0.6 depends on transformers-compat-0.4.0.3 which failed to
install.
exceptions-0.8.0.2 depends on transformers-compat-0.4.0.3 which failed to
install.
free-4.11 depends on transformers-compat-0.4.0.3 which failed to install.
graphviz-2999.17.0.2 depends on wl-pprint-text-1.1.0.4 which failed to
install.
hashable-extras-0.2.0.1 depends on transformers-compat-0.4.0.3 which failed to
install.
haskell-src-exts-1.16.0.1 depends on polyparse-1.11 which failed to install.
haskell-src-meta-0.6.0.9 depends on th-expand-syns-0.3.0.6 which failed to
install.
heap-1.0.2 depends on tf-random-0.5 which failed to install.
hmatrix-0.16.0.5 failed during the building phase. The exception was:
ExitFailure 1
hyperloglog-0.3 depends on transformers-compat-0.4.0.3 which failed to
install.
intervals-0.7.1 depends on transformers-compat-0.4.0.3 which failed to
install.
kan-extensions-4.2.1 depends on transformers-compat-0.4.0.3 which failed to
install.
lens-4.4.0.2 depends on transformers-compat-0.4.0.3 which failed to install.
log-domain-0.10.0.1 depends on transformers-compat-0.4.0.3 which failed to
install.
monad-par-0.3.4.7 depends on monad-par-extras-0.3.3 which failed to install.
monad-par-extras-0.3.3 failed during the building phase. The exception was:
ExitFailure 1
monoid-extras-0.3.3.5 depends on transformers-compat-0.4.0.3 which failed to
install.
nats-0.2 failed during the building phase. The exception was:
ExitFailure 1
normaldistribution-1.1.0.3 failed during the building phase. The exception
was:
ExitFailure 1
optparse-applicative-0.11.0.2 depends on transformers-compat-0.4.0.3 which
failed to install.
pipes-4.1.5 failed during the building phase. The exception was:
ExitFailure 1
pointed-4.2 depends on transformers-compat-0.4.0.3 which failed to install.
polyparse-1.11 failed during the building phase. The exception was:
ExitFailure 1
profunctors-4.4.1 depends on transformers-compat-0.4.0.3 which failed to
install.
safecopy-0.8.4 failed during the building phase. The exception was:
ExitFailure 1
scientific-0.2.0.2 failed during the building phase. The exception was:
ExitFailure 1
semigroupoids-4.3 depends on transformers-compat-0.4.0.3 which failed to
install.
semigroups-0.15.2 depends on nats-0.2 which failed to install.
statistics-0.13.2.3 depends on scientific-0.2.0.2 which failed to install.
subhask-0.1.0.0 depends on xml-1.3.14 which failed to install.
temporary-1.2.0.3 depends on transformers-compat-0.4.0.3 which failed to
install.
test-framework-0.8.1.1 depends on xml-1.3.14 which failed to install.
test-framework-quickcheck2-0.3.0.3 depends on xml-1.3.14 which failed to
install.
tf-random-0.5 failed during the building phase. The exception was:
ExitFailure 1
th-expand-syns-0.3.0.6 failed during the building phase. The exception was:
ExitFailure 1
th-orphans-0.11.1 depends on th-expand-syns-0.3.0.6 which failed to install.
th-reify-many-0.1.3 depends on th-expand-syns-0.3.0.6 which failed to install.
transformers-compat-0.4.0.3 failed during the building phase. The exception
was:
ExitFailure 1
vector-space-0.10.2 depends on nats-0.2 which failed to install.
vector-space-points-0.2.1.1 depends on nats-0.2 which failed to install.
void-0.7 depends on nats-0.2 which failed to install.
wl-pprint-text-1.1.0.4 failed during the building phase. The exception was:
ExitFailure 1
xml-1.3.14 failed during the building phase. The exception was:
ExitFailure 1

How can I solve this? I'd love to try HLearn

mikeizbicki commented 9 years ago

That guide was wrong. I've updated it with the correct commands.

Be forewarned that the documentation once installed is very sparse, so don't get your hopes too high on doing too many useful things with it yet.

boersmamarcel commented 9 years ago

Thanks for the help :) I tried the new quick and dirty install guide but it didn't work. The build still hangs on

JuicyPixels-3.2.3.1 failed during the building phase.

However, after some google work I stumbled upon the following:

sudo ghc-pkg recache

and then the cabal build gave some error like

src/HLearn/Data/SpaceTree.hs:61:8:
    Could not find module ‘HLearn.Models.Distributions.Univariate.Normal’

worked my way through by commenting out the specific lines but then trying to import the files does not work anymore.

mikeizbicki commented 9 years ago

Yesterday I was in the process of converting the repo to work with GHC 7.10, and I didn't quite finish. So the latest commit might break some stuff. Sorry about that. I should have been working in another branch.

Try running

git checkout master~1

and see if that works.

aibrahim commented 9 years ago

i'm trying to install HLearn and i got this: cabal install Resolving dependencies... Configuring HLearn-2.0.0.0... Building HLearn-2.0.0.0... Failed to install HLearn-2.0.0.0 Build log ( /home/visof/.cabal/logs/HLearn-2.0.0.0.log ): Configuring HLearn-2.0.0.0... Building HLearn-2.0.0.0... Preprocessing library HLearn-2.0.0.0...

src/HLearn/Data/LoadData.hs:28:8: Could not find module ‘HLearn.Models.Distributions.Univariate.Normal’ Use -v to see a list of the files searched for.

src/HLearn/Models/Classifiers/Common.hs:8:8: Could not find module ‘HLearn.Models.Distributions.Common’ Use -v to see a list of the files searched for. cabal: Error: some packages failed to install: HLearn-2.0.0.0 failed during the building phase. The exception was: ExitFailure 1

mikeizbicki commented 9 years ago

@aibrahim You either need to use the ghc7.10 branch or run checkout master~1 (see the comment above for more details).