/examples project does not build

Hello I was trying to run plutus locally in order to be able to develop smart contracts that use libraries that I cannot use in the plutus playground.

I have:

  • Installed Nix (2.3.10)
  • Setup the IOHK binary cache
  • Used nix-shell in the root directory

I am able to build plutus-core from the root using: $nix build -f default.nix plutus.haskell.packages.plutus-core and docs.site using $nix build -f default.nix docs.site

After doing the steps mentioned above, I followed the steps in the example folder to build the project.

Developing with nix I have the following error:

cabal: Error parsing project file /home/afonso/plutus/example/cabal.project:9:
"<eitherParsec>" (line 1, column 13):
unexpected 'p'
expecting space or end of input

Developing with Docker and VSCode I get:

HEAD is now at 9435a76 Merge pull request #72 from input-output-hk/erikd/fix-warnings
HEAD is now at fa3a9b1c3 SCP-1589 - Static analysis for finding which Close constructs return money (#2641)
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: playground-common-0.1.0.0 (user goal)
[__1] unknown package: iots-export (dependency of playground-common)
[__1] fail (backjumping, conflict set: iots-export, playground-common)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: playground-common, iots-export

Does anybody know what I can be doing wrong?
Thank you in advance!

@Phantom_of_the_Opera I got exactly the same error while trying to run via Docker. Any update/news?

I believe that the easiest way to use Playground at the moment is to use it in the browser: https://playground.plutus.iohkdev.io/

No updates unfortunatelly :frowning:
I think we should stick with @adatainment advice and just use the browser for the time being.

Would you able to inform us on a deadline as to when this problem could be resolved?

Sorry, I can not provide a deadline for this. Did you open an issue in the Plutus repo? In my opinion, this is the best way to get it fixed. Please feel free to link the issue here so that it gets more traction.

1 Like

I will open one!
I did not open previously because when one opens an issue on github it mentions that the team is only solving bugs from the playground

The link to the github issue: /examples project does not build · Issue #2764 · input-output-hk/plutus · GitHub

@adatainment @Phantom_of_the_Opera

I’ve also found this closed issue about the same problem.

I’ve managed to build locally using the PR requested described in the solution.

2 Likes

Awesome, this is the way! Thank you for letting us know.

1 Like

I got a response on the issue I have opened yesterday!
I have not tested it out and I’m not sure when I will have time to do so but just wanted to give a status update

1 Like