New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cabal could not resolve dependencies #105
Comments
Most commonly when I've run into this it's an issue with matching cabal/ghc versions. Could you try with ghc 8.4.2? We definitely need to document a golden path for the build to avoid this as it comes up frequently. |
Thanks for responding. I went ahead and updated ghc and things are better.
Looks like some sort of issue with the gd library. The same error occurs if I try My current configuration
I noticed that there is a Nix recipe on the way. I'm happy to wait for that if necessary. What is the timeline on the Nix recipe? |
@austinvhuang is correct in that this is probably a ghc-8.4.2 problem -- hasktorch-codegen is just a plain parser file, and the failed constraint is A future problem you may have is that Update: It looks like |
Regarding gd, it's not the haskell library that's the issue, it's the system library libgd (can be installed w/ the package manager, gd-3000 is just a haskell binding). The gd is a library used for loading images in the examples, but we could potentially move back to juicypixels which is native haskell to reduce the dependencies. As Sam says, we're working towards cleaning up a simplified build process for the release. |
@wd15 GHC-8.4.3 support was just added to master |
Thanks for all the support. I installed libgd and it got me passed the previous error, but I wasn't building on a machine with GPU / Cuda support. I'll be back in touch after building on a more appropriate platform. |
Hi @wd15 there's a flag to disable cuda that should make it build for cpus, try |
I tried with the |
Sorry about the last comment. I'd failed to update to the current master (c67fae6). After updating to master and ghc 8.4.3 and modifying cabal.project.local things seem to work. I can compile Main.hs and it runs. One last thing though, it seems that ghci is broken,
Not sure what's going on there. BTW It would be awesome to have a nix expression for hasktorch. Is that in progress? Thanks for all the help! |
Do you run into the same issue with Thanks for your early feedback, troubleshooting now will pave the path for a clean onboarding for the initial release. |
I believe the main issue with the vanilla -- On nix support, after consulting with @tstat: this wont be possible until either nix supports To consolidate threads: #103 |
Closing this as the original issue is resolved per #105 (comment) @wd15 I'll send a slack invite - free to join there if you have other Qs. Cheers! |
I'm having some problems installing hasktorch.
Any idea what I'm doing wrong? I'm using
The text was updated successfully, but these errors were encountered: