cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|

cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Stanislaw Findeisen
Hi

Could anyone explain this to me, please?

$ cabal install snap-server-0.9.5.1
Resolving dependencies...
Configuring snap-server-0.9.5.1...
cabal: At least the following dependencies are missing:
attoparsec >=0.10 && <0.13 && ==0.13.0.1
cabal: Error: some packages failed to install:
snap-server-0.9.5.1 failed during the configure step. The exception was:
ExitFailure 1

Where does this unsatisfiable dependency come from? snap-server-0.9.5.1
seems to require just attoparsec (>=0.10 && <0.14):
http://hackage.haskell.org/package/snap-server-0.9.5.1 . And attoparsec
0.13.0.1 is already installed:

$ cabal list --installed attoparsec
* attoparsec
    Synopsis: Fast combinator parsing for bytestrings and text
    Default available version: 0.13.0.1
    Installed versions: 0.13.0.1
    Homepage: https://github.com/bos/attoparsec
    License:  BSD3

* attoparsec-enumerator
    Synopsis: Pass input from an enumerator to an Attoparsec parser.
    Default available version: 0.3.4
    Installed versions: 0.3.4
    Homepage: https://john-millikin.com/software/attoparsec-enumerator/
    License:  MIT

I am trying to install hakyll 4.6.*, and snap-server seems to be one of
the requirements. Hakyll 4.6.* is an old version but AFAIR I need that
due to conflicting versions of containers.

Thanks!

--
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/

OpenPGP: 9EC2 5620 2355 B1DC 4A8F  8C79 0EC7 C214 E5AE 3B4E


_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

signature.asc (853 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Imants Cekusins
> snap-server-0.9.5.1 failed during the configure step.


just a guess:

________

https://hackage.haskell.org/package/snap-server-0.9.5.1/src/snap-server.cabal

attoparsec                >= 0.10     && < 0.13,

________

this line seems odd:
attoparsec >=0.10 && <0.13 && ==0.13.0.1

particularly this part:
<0.13 && ==0.13.0.1

maybe try to use sandbox?
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Stanislaw Findeisen
On 2015-07-10 14:14, Imants Cekusins wrote:
> https://hackage.haskell.org/package/snap-server-0.9.5.1/src/snap-server.cabal
>
> attoparsec                >= 0.10     && < 0.13,

But this:
https://hackage.haskell.org/package/snap-server-0.9.5.1/snap-server.cabal (no
"src/" here) says:

attoparsec                >= 0.10     && < 0.14,

WTF?!?

Shouldn't these 2 files be the same?

--
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/

OpenPGP: 9EC2 5620 2355 B1DC 4A8F  8C79 0EC7 C214 E5AE 3B4E


_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

signature.asc (853 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Vlatko Basic
In reply to this post by Stanislaw Findeisen
Most of such problems can be solved with LTS (Long Term Support) from Stackage.

https://www.stackage.org/

Take a look.


-------- Original Message  --------
Subject: [Haskell-beginners] cabal install snap-server-0.9.5.1: At least the
following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1
From: Stanislaw Findeisen <[hidden email]>
To: [hidden email]
Date: 10/07/15 13:49

> Hi
>
> Could anyone explain this to me, please?
>
> $ cabal install snap-server-0.9.5.1
> Resolving dependencies...
> Configuring snap-server-0.9.5.1...
> cabal: At least the following dependencies are missing:
> attoparsec >=0.10 && <0.13 && ==0.13.0.1
> cabal: Error: some packages failed to install:
> snap-server-0.9.5.1 failed during the configure step. The exception was:
> ExitFailure 1
>
> Where does this unsatisfiable dependency come from? snap-server-0.9.5.1
> seems to require just attoparsec (>=0.10 && <0.14):
> http://hackage.haskell.org/package/snap-server-0.9.5.1 . And attoparsec
> 0.13.0.1 is already installed:
>
> $ cabal list --installed attoparsec
> * attoparsec
>      Synopsis: Fast combinator parsing for bytestrings and text
>      Default available version: 0.13.0.1
>      Installed versions: 0.13.0.1
>      Homepage: https://github.com/bos/attoparsec
>      License:  BSD3
>
> * attoparsec-enumerator
>      Synopsis: Pass input from an enumerator to an Attoparsec parser.
>      Default available version: 0.3.4
>      Installed versions: 0.3.4
>      Homepage: https://john-millikin.com/software/attoparsec-enumerator/
>      License:  MIT
>
> I am trying to install hakyll 4.6.*, and snap-server seems to be one of
> the requirements. Hakyll 4.6.* is an old version but AFAIR I need that
> due to conflicting versions of containers.
>
> Thanks!
>
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Imants Cekusins
In reply to this post by Stanislaw Findeisen
> attoparsec                >= 0.10     && < 0.14,

you could try to change the source cabal file or you could use cabal sandbox.

Sandboxes are easy. They allow to install exact versions required by
the package. Take a look:
http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Imants Cekusins
In reply to this post by Vlatko Basic
> Stackage

Cheers Vlatko

I was not aware of this initiative. Learnt something new today.
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Vlatko Basic
There is also a stack tool, new tool that might be considered a cabal
replacement, developed for solving install problems, and much more. You might
find it interesting. It is stable now and has very active community.

https://github.com/commercialhaskell/stack

It might be worth spending some time and master it.


-------- Original Message  --------
Subject: Re: [Haskell-beginners] cabal install snap-server-0.9.5.1: At least the
following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1
From: Imants Cekusins <[hidden email]>
To: [hidden email], The Haskell-Beginners Mailing List - Discussion of
primarily beginner-level topics related to Haskell <[hidden email]>
Date: 10/07/15 15:30

>> Stackage
>
> Cheers Vlatko
>
> I was not aware of this initiative. Learnt something new today.
>
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Imants Cekusins
> There is also a stack tool,

Thank you. It is very interesting.

Why were new tools introduced instead of adding new functionality to cabal?

A mix of packaging tools may lead to confusion.
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Bjørn Øivind Bjørnsen
On 10/07/15 16:30, Imants Cekusins wrote:
>> There is also a stack tool,
>
> Thank you. It is very interesting.
>
> Why were new tools introduced instead of adding new functionality to cabal?
>
> A mix of packaging tools may lead to confusion.

Hi,

There is a blog post over at FP complete that attempts to answer these
questions:
        https://www.fpcomplete.com/blog/2015/06/why-is-stack-not-cabal

Bjørn Øivind


_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Imants Cekusins
Thank you very much Bjørn.

Are Stackage packages - a subset of Hackage packages? Do packages get
uploaded to Hackage and then get transferred to Stackage?

It would be nice to agree to merge Hackage & Stackage, cabal-install &
stack one day. Without this merge the "DLL-mess" might get worse.
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Brandon Allbery
On Fri, Jul 10, 2015 at 10:48 AM, Imants Cekusins <[hidden email]> wrote:
Are Stackage packages - a subset of Hackage packages? Do packages get
uploaded to Hackage and then get transferred to Stackage?

Stackage is a curated subset of Hackage. (Sadly, the main criterion for curation is "works with Yesod", so you get to take your chances if you're not using Yesod.) It's more an alternative to the Haskell Platform, since Yesod always wants newer stuff.

(De facto the Haskell Platform is irrelevant, since everyone is rushing pell-mell to tie themselves to Yesod via Stackage. We're Ruby now! When the ecosystem is defined by a web platform, the ecosystem *becomes* the web platform. This might even work for you; for me, it's a cliff rushing ever closer.)

--
brandon s allbery kf8nh                               sine nomine associates
[hidden email]                                  [hidden email]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Bjørn Øivind Bjørnsen
In reply to this post by Imants Cekusins
On 10/07/15 16:48, Imants Cekusins wrote:
> Thank you very much Bjørn.
>
> Are Stackage packages - a subset of Hackage packages? Do packages get
> uploaded to Hackage and then get transferred to Stackage?
>
> It would be nice to agree to merge Hackage & Stackage, cabal-install &
> stack one day. Without this merge the "DLL-mess" might get worse.

My experience from playing around with stack the last couple of nights
have been that Stackage is indeed a subset of Hackage packages, but that
it is possible (and fairly easy - if not very documented) to use
packages from Hackage with stack as well. One caveat - depending on how
you look at it - is that you end up specifying these packages with
specific versions in the stack.yaml file for your project.

I personally believe that both a curated subset of "known good" packages
like Stackage and the complete set of packages like Hackage can co-exist
to their mutual benefit. I can certainly see the appeal of stack - I
rather like it so far.

Bjørn Øivind



_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Imants Cekusins
Well if Stackage packages ⊂ Hackage packages, there is choice:

If you need the added benefits Stackage gives, "upgrade". Otherwise
can stay with Hackage.

?
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Bjørn Øivind Bjørnsen
On 10/07/15 17:06, Imants Cekusins wrote:
> Well if Stackage packages ⊂ Hackage packages, there is choice:
>
> If you need the added benefits Stackage gives, "upgrade". Otherwise
> can stay with Hackage.
>
> ?

There's nothing stopping you from using Stackage in addition to Hackage.
As an example, I used stack to create a new app-skeleton last night. One
of the packages I wanted to use was the FFT package not available in
Stackage. I just added it to the .cabal file, and ran "stack solver":

% stack solver
This command is not guaranteed to give you a perfect build plan
It's possible that even with the changes generated below, you will still
need to do some manual tweaking
Asking cabal to calculate a build plan, please wait
flags:
  carray:
    bytestringinbase: false
extra-deps:
- carray-0.1.5.2
- fft-0.1.8.1
- ix-shapable-0.1.0

Resulting in the following stack.yaml file:
% cat stack.yaml
flags:
  carray:
    bytestringinbase: false
packages:
- '.'
extra-deps:
- carray-0.1.5.2
- fft-0.1.8.1
- ix-shapable-0.1.0
resolver: nightly-2015-07-08

When building using "stack build", it automatically downloaded,
configured and installed all my dependencies. No worrying about
sandboxes (because stack handles this gracefully by default as far as I
can tell) and no problems getting this simple skeleton up and running.

Note that I used the nightly resolver simply because I wanted to use GHC
7.10 which I already had installed. There are multiple resolvers
available (for GHC 7.8 and an LTS version with GHC 7.10 looks to arrive
shortly after GHC 7.10.2 has been released:
https://groups.google.com/forum/#!topic/stackage/Ux7ideofwIA)

Bjørn Øivind




_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Imants Cekusins
.. does stack also allow to reference local packages (not on Hackage)?

I just began to learn cabal so maybe it is early for me to switch to
stack yet. One thing at a time :)
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Bjørn Øivind Bjørnsen
On 10/07/15 17:33, Imants Cekusins wrote:
> .. does stack also allow to reference local packages (not on Hackage)?
>
> I just began to learn cabal so maybe it is early for me to switch to
> stack yet. One thing at a time :)

I believe so, but I have not tried it yet.
Check out the wiki on Github:
        https://github.com/commercialhaskell/stack/wiki/FAQ#i-need-to-use-a-package-or-version-of-a-package-that-is-not-available-on-hackage-what-should-i-do

Maybe that works for you?

I must admit that I am still quite green at Haskell
infrastructure/tooling stuff, but I have still had a fair amount of
trouble with cabal-install, so trying stack was a no-brainer for me at
least :)

Bjørn Øivind


_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Michael Snoyman
If you have questions getting started, feel free to ask them over on the stack mailing list[1], you'll find many very helpful people over there. From quickly scanning this thread, I don't see any use cases that aren't handled well by stack, but I'd rather not spam the beginner mailing list with details of how to make it all happen.

I would also recommend reading the wiki pages, which give quite a bit of information on various use cases.

On Fri, Jul 10, 2015 at 8:39 AM Bjørn Øivind Bjørnsen <[hidden email]> wrote:
On 10/07/15 17:33, Imants Cekusins wrote:
> .. does stack also allow to reference local packages (not on Hackage)?
>
> I just began to learn cabal so maybe it is early for me to switch to
> stack yet. One thing at a time :)

I believe so, but I have not tried it yet.
Check out the wiki on Github:
        https://github.com/commercialhaskell/stack/wiki/FAQ#i-need-to-use-a-package-or-version-of-a-package-that-is-not-available-on-hackage-what-should-i-do

Maybe that works for you?

I must admit that I am still quite green at Haskell
infrastructure/tooling stuff, but I have still had a fair amount of
trouble with cabal-install, so trying stack was a no-brainer for me at
least :)

Bjørn Øivind

_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

amindfv
In reply to this post by Stanislaw Findeisen
It looks like the package bounds were changed on hackage though. Your install will probably work with an empty sandbox. Also try asking #snapframework on freenode -- they're very helpful!

Tom


El Jul 10, 2015, a las 8:25, Stanislaw Findeisen <[hidden email]> escribió:

> On 2015-07-10 14:14, Imants Cekusins wrote:
>> https://hackage.haskell.org/package/snap-server-0.9.5.1/src/snap-server.cabal
>>
>> attoparsec                >= 0.10     && < 0.13,
>
> But this:
> https://hackage.haskell.org/package/snap-server-0.9.5.1/snap-server.cabal (no
> "src/" here) says:
>
> attoparsec                >= 0.10     && < 0.14,
>
> WTF?!?
>
> Shouldn't these 2 files be the same?
>
> --
> http://people.eisenbits.com/~stf/
> http://www.eisenbits.com/
>
> OpenPGP: 9EC2 5620 2355 B1DC 4A8F  8C79 0EC7 C214 E5AE 3B4E
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Stanislaw Findeisen
In reply to this post by Imants Cekusins
On 2015-07-10 14:36, Imants Cekusins wrote:
> you could use cabal sandbox.

I went along these lines:

$ cabal update
$ cabal install cabal-install
$ ~/.cabal/bin/cabal sandbox init
$ ~/.cabal/bin/cabal install --only-dependencies --max-backjumps=-1

Then I still had to resolve:

Loading package transformers-0.4.3.0 ... ghc: mmap 1400832 bytes at
(nil): Operation not permitted
ghc: Try specifying an address with +RTS -xm<addr> -RTS
Failed to install vector-0.10.12.3

(and similar) but finally made it work.

Thanks!

--
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/

OpenPGP: 9EC2 5620 2355 B1DC 4A8F  8C79 0EC7 C214 E5AE 3B4E


_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

signature.asc (853 bytes) Download Attachment