GregorySchwartz / hierarchical-spectral-clustering

Hierarchical spectral clustering of a graph.
GNU General Public License v3.0
8 stars 2 forks source link

Error in 'stack install' #1

Open ysora opened 2 years ago

ysora commented 2 years ago

Hi GW, I am trying to install cluster-tree on our lab server but stuck in a problem. When I type 'stack install', the error says,

hierarchical-spectral-clustering> build (lib + exe)
Preprocessing library for hierarchical-spectral-clustering-0.1.0.0..
Building library for hierarchical-spectral-clustering-0.1.0.0..
[ 2 of 12] Compiling Math.Clustering.Hierarchical.Spectral.Types

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:29:1: error:
    Could not find module ‘Data.Clustering.Hierarchical’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
29 | import Data.Clustering.Hierarchical (Dendrogram (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:32:1: error:
    Could not load module ‘Data.Tree’
    It is a member of the hidden package ‘containers-0.6.4.1’.
    Perhaps you need to add ‘containers’ to the build-depends in your .cabal file.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
32 | import Data.Tree (Tree (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:34:1: error:
    Could not find module ‘Math.Modularity.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
34 | import Math.Modularity.Types (Q (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:35:1: error:
    Could not find module ‘Math.TreeFun.Tree’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
35 | import Math.TreeFun.Tree (leaves)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:36:1: error:
    Could not find module ‘Data.Aeson’
    Perhaps you meant Data.Version (from base-4.15.1.0)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
36 | import qualified Data.Aeson as A
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:38:1: error:
    Could not find module ‘Data.Vector’
    Perhaps you meant Data.Functor (from base-4.15.1.0)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
38 | import qualified Data.Vector as V
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

--  While building package hierarchical-spectral-clustering-0.1.0.0 (scroll up to its section to see the error) using:
      /home/sora/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.4.1.0_ghc-9.0.2 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0 build lib:hierarchical-spectral-clustering exe:hierarchical-spectral-clustering-exe --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

Could you provide solution for this problem? Thanks.

Sora

GregorySchwartz commented 1 year ago

Sorry, I did not this until now. How did you try to install? Did you do the offline version?

ysora commented 1 year ago

Yes I used the one that was installed previously on the server.


From: Gregory Schwartz @.> Sent: Tuesday, January 3, 2023, 12:59 PM To: GregorySchwartz/hierarchical-spectral-clustering @.> Cc: Yoon, Sora @.>; Author @.> Subject: [External] Re: [GregorySchwartz/hierarchical-spectral-clustering] Error in 'stack install' (Issue #1)

Sorry, I did not this until now. How did you try to install? Did you do the offline version?

— Reply to this email directly, view it on GitHubhttps://github.com/GregorySchwartz/hierarchical-spectral-clustering/issues/1#issuecomment-1370067227, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABZHMJQSTC2BGEKV75QKQWLWQRSG7ANCNFSM6AAAAAARETFNT4. You are receiving this because you authored the thread.Message ID: @.***>

GregorySchwartz commented 1 year ago

What do you mean previously installed? It was a local install for my account only, did you do a git clone of this repo?

ysora commented 1 year ago

I mean the program was on our lab server (I think I installed it in 2021), so I used the executable file.


From: Gregory Schwartz @.> Sent: Tuesday, January 3, 2023 3:03:42 PM To: GregorySchwartz/hierarchical-spectral-clustering @.> Cc: Yoon, Sora @.>; Author @.> Subject: [External] Re: [GregorySchwartz/hierarchical-spectral-clustering] Error in 'stack install' (Issue #1)

What do you mean previously installed? It was a local install for my account only, did you do a git clone of this repo?

— Reply to this email directly, view it on GitHubhttps://github.com/GregorySchwartz/hierarchical-spectral-clustering/issues/1#issuecomment-1370174572, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABZHMJWOD7UOSLJQZL4RXVTWQSAZ5ANCNFSM6AAAAAARETFNT4. You are receiving this because you authored the thread.Message ID: @.***>

ysora commented 1 year ago

I don't remember how I installed the program at that time.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Gregory Schwartz @.> Sent: Tuesday, January 3, 2023 3:03:42 PM To: GregorySchwartz/hierarchical-spectral-clustering @.> Cc: Yoon, Sora @.>; Author @.> Subject: [External] Re: [GregorySchwartz/hierarchical-spectral-clustering] Error in 'stack install' (Issue #1)

What do you mean previously installed? It was a local install for my account only, did you do a git clone of this repo?

— Reply to this email directly, view it on GitHubhttps://github.com/GregorySchwartz/hierarchical-spectral-clustering/issues/1#issuecomment-1370174572, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABZHMJWOD7UOSLJQZL4RXVTWQSAZ5ANCNFSM6AAAAAARETFNT4. You are receiving this because you authored the thread.Message ID: @.***>