Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to install pandoc-cli from cabal #9046

Closed
chelgrian opened this issue Sep 1, 2023 · 5 comments
Closed

Failure to install pandoc-cli from cabal #9046

chelgrian opened this issue Sep 1, 2023 · 5 comments
Labels

Comments

@chelgrian
Copy link

As of 1st of September 2023 on a fully up to date Ubuntu 22.04 I tried to do:

cabal update
cabal install pandoc-cli

This attempted to install pandoc 3.1.2 (rather than 3.1.7 which seems to be the latest today) however it failed with the following error

src/Text/Pandoc/Lua/Init.hs:29:29: error:
Module
‘Text.Pandoc.Logging’
does not export
‘LogMessage(ScriptingWarning)’
|
29 | import Text.Pandoc.Logging (LogMessage (ScriptingWarning))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (edited)

@chelgrian chelgrian added the bug label Sep 1, 2023
@jgm
Copy link
Owner

jgm commented Sep 1, 2023

That's weird. When I try this I get:

Build profile: -w ghc-9.4.4 -O1
In order, the following will be built (use -v for more details):
 - blaze-builder-0.4.2.3 (lib) (requires download & build)
 - unicode-collation-0.1.3.5 (lib) (requires download & build)
 - http-client-0.7.14 (lib) (requires build)
 - blaze-markup-0.8.2.8 (lib) (requires build)
 - http-client-tls-0.3.6.3 (lib) (requires build)
 - blaze-html-0.9.1.2 (lib) (requires build)
 - xml-conduit-1.9.1.3 (lib:xml-conduit) (requires build)
 - wai-app-static-3.1.7.4 (lib) (requires build)
 - typst-0.3.2.0 (lib) (requires build)
 - skylighting-core-0.14 (lib) (requires download & build)
 - pandoc-3.1.7 (lib:xml-light) (requires download & build)
 - citeproc-0.8.1 (lib) (requires build)
 - servant-server-0.20 (lib) (requires build)
 - skylighting-format-ansi-0.1 (lib) (requires build)
 - skylighting-format-latex-0.1 (lib) (requires build)
 - skylighting-format-context-0.1.0.2 (lib) (requires build)
 - skylighting-format-blaze-html-0.1.1.1 (lib) (requires download & build)
 - skylighting-0.14 (lib) (requires download & build)
 - pandoc-3.1.7 (lib) (requires download & build)
 - pandoc-server-0.1.0.3 (lib) (requires download & build)
 - pandoc-lua-engine-0.2.1.2 (lib) (requires download & build)
 - pandoc-cli-0.1.1.1 (exe:pandoc) (requires download & build)

Try cabal clean first. And also try adding --constraint 'pandoc == 3.1.7.

@jgm
Copy link
Owner

jgm commented Sep 1, 2023

Looks like pandoc-lua-engine should bump its lower bound for pandoc, as well.

jgm added a commit that referenced this issue Sep 1, 2023
@chelgrian
Copy link
Author

So the obvious difference is that Ubuntu 22.04 LTS has GHC 8.8.4. If I try a constrained install then I get

$ cabal install pandoc-cli --constraint "pandoc == 3.1.7"
--minimize-conflict-set
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: pandoc-cli-0.1.1.1 (user goal)
[__1] trying: pandoc-3.1.7 (dependency of pandoc-cli)
[__2] trying: typst-0.3.2.0 (dependency of pandoc)
[__3] next goal: base (dependency of pandoc-cli)
[__3] rejecting: base-4.13.0.0/installed-4.1... (conflict: typst =>
base>=4.14
&& <=5)
[__3] rejecting: base-4.18.0.0, base-4.17.2.0, base-4.17.1.0, base-4.17.0.0,
base-4.16.4.0, base-4.16.3.0, base-4.16.2.0, base-4.16.1.0, base-4.16.0.0,
base-4.15.1.0, base-4.15.0.0, base-4.14.3.0, base-4.14.2.0, base-4.14.1.0,
base-4.14.0.0, base-4.13.0.0, base-4.12.0.0, base-4.11.1.0, base-4.11.0.0,
base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0,
base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0,
base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0,
base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1,
base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1
(constraint from non-upgradeable package requires installed instance)
[__3] fail (backjumping, conflict set: base, pandoc-cli, typst)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: pandoc, base, typst, pandoc-cli

@jgm
Copy link
Owner

jgm commented Sep 1, 2023

Recent versions of pandoc require ghc >= 8.10. (I've just updated tested-with to reflect that.)

@jgm
Copy link
Owner

jgm commented Sep 1, 2023

Some of our dependencies might require more recent versions that that.

@jgm jgm closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants