Comments (10)
Yeah, it's an ugly, temporary hack. hmatrix-0.15.2.1
doesn't compile under ghc 7.8, but version 0.16 doesn't work for the reason you mentioned. I'm in the middle of a pretty hefty refactor that should fix this problem.
In the mean time, I've got a local version of hmatrix that fixes 0.15.1.2 so that it compiles on ghc 7.8. There's just two or three lines that need commenting iirc. If you want, I can put a tar file somewhere that contains the code.
from hlearn.
+1 for the tarball! Trying to get HLearn up and running of a project of mine as well. Thanks.
from hlearn.
I've uploaded the tarball to: izbicki.me/public/cs/github/hmatrix.tgz
from hlearn.
Which version of ghc does hmatrix 0.15.2.1
not compile on? I assume it's specifically 7.8
, because it seems to compile fine here (7.8.2
).
from hlearn.
I'm using 7.8.2, but I don't remember exactly what the problem was I was having. It might have even been a dependency problem that I mistook for a ghc problem.
from hlearn.
Sorry to hiijack this ticket, but when trying to install HLearn I got the same issue, however after an attempt to use the tar to get the installation done I get the following error:
next goal: hmatrix (dependency of HLearn-2.0.0.0) rejecting: hmatrix-0.16.0.6, 0.16.0.5, 0.16.0.4, 0.16.0.3, 0.16.0.2, 0.15.2.1, 0.15.2.0, 0.15.0.1, 0.15.0.0, 0.14.1.0, 0.14.0.1, 0.14.0.0, 0.13.1.0, 0.13.0.0, 0.12.0.2, 0.12.0.1, 0.12.0.0, 0.11.1.0, 0.11.0.4, 0.11.0.3, 0.11.0.1, 0.11.0.0, 0.10.0.2, 0.10.0.1, 0.10.0.0, 0.9.3.0, 0.8.3.1, 0.8.2.0, 0.8.1.1, 0.8.1.0, 0.8.0.0, 0.7.2.1, 0.7.1.0, 0.6.0.0, 0.5.2.2, 0.5.2.1, 0.5.2.0, 0.5.1.1, 0.5.0.1, 0.4.0.0, 0.3.0.0, 0.2.1.0, 0.2.0.0, 0.1.1.0, 0.1.0.0 (conflict: HLearn => hmatrix==0.15.2.2) Dependency tree exhaustively searched.
This is after trying to install the hmatrix package with cabal, which gave the following error:
cabal: Error: some packages failed to install: hmatrix-0.15.2.2 failed during the configure step. The exception was: ExitFailure 126
from hlearn.
It looks like hmatrix didn't install because the version isn't in the list you copied. Are you sure the hmatrix tarball installed fine?
from hlearn.
Well this is embarrassing, it looked like it had installed correctly, but now when I try again it comes up with an error:
Failed to install hmatrix-0.15.2.2 Build log ( /Users/<username>/.cabal/logs/hmatrix-0.15.2.2.log ): /Users/<username>/Downloads/hmatrix/dist/setup/setup: /Users/<username>/Downloads/hmatrix/dist/setup/setup: cannot execute binary file cabal: Error: some packages failed to install: hmatrix-0.15.2.2 failed during the configure step. The exception was: ExitFailure 126
The log contains exactly the same error. This is on Mac OS X mavericks.
So indeed it didn't manage to install it, would running it in a Linux VM solve this issue?
from hlearn.
hmmm... possibly, not sure. hmatrix depends on a lot of non-haskell code. Does hmatrix-0.15.2.1
on hackage install fine? The tarball is just that package with a few class instances removed.
from hlearn.
The earlier version seems to indeed install fine, while the 0.15.2.2 still errors. I've taken the alternative route and installed an Ubuntu VM, in which it worked right out of the box with Cabal 👍
from hlearn.
Related Issues (20)
- cabal sandbox init step HOT 2
- hlearn-distributions depends on constrainkinds-1.1.0.0 which fails to install HOT 8
- Interested in working on HLearn. HOT 2
- Build issues. HOT 1
- Is HLearn intentionally kept of hackage / stackage? HOT 2
- Blog post on categorical distribution has deprecated instructions
- Invalid subhask submodule HOT 6
- Naive Bayes classifier HOT 2
- Helping out? HOT 4
- A couple of questions HOT 13
- stack haddock fails
- Interested in contributing HOT 5
- Migration to ghc-8.0 with subhask-branch ghc-8.0 HOT 1
- Interested in contribution
- Example of using cover tree? HOT 1
- Contributing HOT 1
- Interested in contributing - density estimation, wavelets
- Not very easy to start with HOT 1
- SubHask build error during install script HOT 2
- Interested in contributing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hlearn.