RichardEvans / apperception

70 stars 13 forks source link

Error when trying to generate latex-readable descriptions of the output #3

Open dsikar opened 3 years ago

dsikar commented 3 years ago

System details

Code to replicate error

# updated system
$ sudo apt update
$ sudo apt upgrade

# cloned repo
$ git clone git@github.com:RichardEvans/apperception.git
$ cd apperception

# Installed Haskell
$ curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

# Installed Clingo
$ sudo add-apt-repository ppa:potassco/stable
$ sudo apt-get update
$ sudo apt-get install clingo

# Ran compilation as per:
# https://github.com/RichardEvans/apperception#compilation-instructions

# Set flag_output_latex = True in Interpretation.hs
# Ran script:
$ bash scripts/compile_solve.sh
$ . scripts/compile_solve.sh 
[ 1 of 11] Compiling HouseTypes       ( HouseTypes.hs, HouseTypes.o )

HouseTypes.hs:12:1: error:
    Could not find module ‘System.Random’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
12 | import qualified System.Random as Random
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

# when running code inside compile_solve.sh
$ ghc -o solve -O2 Solve

<no location info>: error: module ‘Solve’ cannot be found locally
TaraPesman commented 3 years ago

I have the same error indeed. Thanks for opening an Issue for this, dsikar.

dsikar commented 3 years ago

I tried compiling the shell script, then running the executable. Same error.