liqd / aula

An online platform for political participation in schools in Germany (not in active development)
https://liqd.net
Other
27 stars 5 forks source link

Could not find module ‘Paths_aula’ #945

Closed decentral1se closed 7 years ago

decentral1se commented 8 years ago

Coming to the final step after the Getting Started with Docker section, I got the following error:

root@f845c1d5515b:/liqd/aula# make aula-server 
`test -d .stack-work/ && echo "stack exec --" || echo "cabal exec --"` runhaskell -j5 -isrc -itests -iexec -idist/build/autogen ./exec/Aula.hs

src/Config.hs:72:18:
    Could not find module ‘Paths_aula’
    it is a hidden module in the package ‘aula-0.24.4@aula_Bw0IDGj4DsfJC1QtgFP2Co’
    Use -v to see a list of the files searched for.
make: *** [aula-server] Error 1
fisx commented 8 years ago

thanks for reporting this.

i think the issue is that stack install does not keep the build artifacts under ./dist where runhaskell is looking for them. so you can try any of these two things:

  1. call the $HOME/.local/bin/aula-server executable instead of make aula-server
  2. run stack build ... instead of (or after) the stack install ... from the instructions.

let me know if that works and i'll fix the README. of course another PR would be appreciated as well. (-: