You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After cabal install haskell-awk on my machine running ghc-7.10.3, when I try to run hawk -m head on some output I get:
hawk: multiple package-db's found in sandbox /home/petersen/.cabal
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
hawk works okay for me through stack exec hawk.
The text was updated successfully, but these errors were encountered:
juhp
changed the title
hawk: multiple package-db's found in sandbox /home/petersen/.cabal
hawk: multiple package-db's found in sandbox ~/.cabal
Dec 9, 2016
Since hawk expressions can use functions from various libraries, Hawk needs a package database containing those libraries. To find the folder containing the package database, we use a heuristic based on the location of the hawk executable, and depending on whether you run it as hawk or stack exec hawk, this location is different. It looks like you have installed packages in your ~/.cabal using more than one version of ghc, so you have more than one package database in there, and so hawk doesn't know which one to use.
If you're no longer using your other version of ghc, I recommend deleting the old package databases. If you regularly use more than one version of ghc, then I recommend installing hawk in a sandbox, which will use its own package database.
After
cabal install haskell-awk
on my machine running ghc-7.10.3, when I try to runhawk -m head
on some output I get:hawk works okay for me through
stack exec hawk
.The text was updated successfully, but these errors were encountered: