Ticket #545 (closed defect: fixed)

Opened 4 years ago

Last modified 15 months ago

Uninformative error message when cabal install download fails

Reported by: abayley Owned by:
Priority: normal Milestone: cabal-install-0.8
Component: cabal-install tool Version: 1.6.0.1
Severity: normal Keywords:
Cc: Difficulty: very easy (<1 hour)
GHC Version: Platform:

Description

"cabal install binary" fails on my WinXP machine with this error:

Resolving dependencies... Downloading binary-0.4.4... cabal: Error: some packages failed to install: binary-0.4.4 failed while downloading the package.

Suspect it's related to proxy configuration, but the error message could be more informative.

Change History

Changed 4 years ago by duncan

  • difficulty changed from unknown to very easy (<1 hour)
  • summary changed from Uninformative error message when cabal-install fails on WinXP to Uninformative error message when cabal install download fails
  • milestone set to cabal-install-0.8

See also #448, though it can be improved without doing all of that.

Changed 3 years ago by duncan

Tue Dec 22 13:25:26 GMT 2009  Duncan Coutts <duncan@haskell.org>
  * Display the exception for failed downloads
  Not great but better than nothing.

Now we get:

cabal install foo
Resolving dependencies...
Downloading foo-1.0...
cabal: Error: some packages failed to install:
foo-1.0 failed while downloading the package. The exception was:
user error (openTCPConnection: host lookup failure for "null.haskell.org")

Changed 19 months ago by gtirloni

As of Nov 9th 2011, cabal-install provides a lot of details:

...
cabal: Error: some packages failed to install:
GLURaw-1.1.0.1 depends on OpenGLRaw-1.1.0.2 which failed to install.
GLUT-2.2.2.1 depends on containers-0.4.2.0 which failed to install.
OpenGL-2.4.0.2 depends on Tensor-1.0.0.1 which failed to install.
OpenGLRaw-1.1.0.2 failed during the building phase. The exception was:
ExitFailure 1
Tensor-1.0.0.1 failed during the building phase. The exception was:
ExitFailure 1
containers-0.4.2.0 failed during the building phase. The exception was:
ExitFailure 1
directory-1.1.0.1 failed during the building phase. The exception was:
ExitFailure 1
foo-1.0 depends on time-1.2.0.5 which failed to install.
haskell98-2.0.0.0 depends on time-1.2.0.5 which failed to install.
process-1.1.0.0 depends on directory-1.1.0.1 which failed to install.
time-1.2.0.5 failed during the configure step. The exception was:
user error (The package requires Cabal library version -any && >=1.6 but no
suitable version is installed.)

Does it satisfy this ticket's request?

Changed 15 months ago by kosmikus

  • status changed from new to closed
  • resolution set to fixed

I consider this to be closed.

Note: See TracTickets for help on using tickets.