cabal install hledger-web gives StaticFiles error #63

Closed
simonmichael opened this Issue Apr 8, 2013 · 9 comments

Projects

None yet

1 participant

@simonmichael
Owner

Original author: simon@joyful.com (September 06, 2011 18:32:35)

<Clint> sm: when i do cabal install hledger-web i get [07:46]
<Clint> Hledger/Web/StaticFiles.hs:1:1:
<Clint> Exception when trying to run compile-time code:
<Clint> ./.hledger/web/static: getDirectoryContents: does not exist (No
such file or directory)
<Clint> Code: staticFiles staticdir
<Clint> cabal: Error: some packages failed to install:

Original issue: http://code.google.com/p/hledger/issues/detail?id=63

@simonmichael
Owner

From simon@joyful.com on September 11, 2011 22:01:07
This seems to happen every time when installing hledger-web from hackage. The only workaround is to get the source and cabal install from inside the hledger-web directory. With luck yesod 0.9 will make it possible to do away with the hard-coded path for web files.

@simonmichael
Owner

From simon@joyful.com on September 14, 2011 02:38:25
Strange, I remember posting this..

Fixed in darcs, though not tested with an actual hackage server install.

@simonmichael
Owner

From simon@joyful.com on September 16, 2011 17:06:13
For those who don't want to jump to yesod 0.9 yet, this should also work to get hledger-web-0.15.2 installed:

$ cabal update
$ cabal unpack hledger-web
$ cd hledger-web-0.15.2
$ cabal install

@simonmichael
Owner

From simon@joyful.com on September 21, 2011 01:27:06
Workaround update: apparently it's not quite that simple, however building the latest version from darcs certainly works.

@simonmichael
Owner

From simon@joyful.com on October 02, 2011 16:27:04
I told a lie, it totally doesn't work yet. I'm confused.

$ cabal install hledger-web
Resolving dependencies...
Configuring hledger-web-0.16...
Building hledger-web-0.16...
Preprocessing executable 'hledger-web' for hledger-web-0.16...
[1 of 8] Compiling Hledger.Web.Settings ( Hledger/Web/Settings.hs, dist/build/hledger-web/hledger-web-tmp/Hledger/Web/Settings.o )
...
[2 of 8] Compiling Hledger.Web.Settings.StaticFiles ( Hledger/Web/Settings/StaticFiles.hs, dist/build/hledger-web/hledger-web-tmp/Hledger/Web/Settings/StaticFiles.o )

Hledger/Web/Settings/StaticFiles.hs:1:1:
Exception when trying to run compile-time code:
./static: getDirectoryContents: does not exist (No such file or directory)
Code: staticFiles staticDir
cabal: Error: some packages failed to install:
hledger-web-0.16 failed during the building phase. The exception was:
ExitFailure 1

@simonmichael
Owner

From jamonation@gmail.com on October 03, 2011 17:21:53
Seeing this as well, any ETA on a fix?

@simonmichael
Owner

From simon@joyful.com on October 03, 2011 18:14:20
ETA is today if I can manage it.

@simonmichael
Owner

From simon@joyful.com on October 03, 2011 20:07:54
New ETA: tomorrow. I believe I have the right fix.

@simonmichael
Owner

From simon@joyful.com on October 05, 2011 01:06:32
I declare this one fixed as of hledger-web 0.16.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment