question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build Failed - no such version exists

See original GitHub issue

Hi,

I’ve been using Malmo (0.34) for more than a month now, and suddenly this morning I get a build failed error when I run the launchClient.bat:

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\Malmo\Minecraft\build.gradle' line: 42

* What went wrong:
A problem occurred evaluating root project 'Minecraft'.
> No such version exists!

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6.225 secs

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\Malmo\Minecraft\build.gradle' line: 42

* What went wrong:
A problem occurred evaluating root project 'Minecraft'.
> No such version exists!

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4.053 secs

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\Malmo\Minecraft\build.gradle' line: 42

* What went wrong:
A problem occurred evaluating root project 'Minecraft'.
> No such version exists!

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4.011 secs

I tried on another computer where Malmo was running yesterday and I have the same error. Both my computers are running Windows 10 and have Java 1.8.0_201 installed.

Do you have any idea where that could come from ? Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
MadcowDcommented, Feb 15, 2019

Yep! So here is what is up: If your Malmo installation suddenly stopped working one day read this.

People over at MinecraftForge updated a certain file used by the ./launchClient.sh(bat) script for building (and launching) the Malmo mod that caused a certain dependency (ForgeGradle) to no longer be found. This causes your launchClient script to fail, without fail.

Since then, MinecraftForge has fixed the dependency (ForgeGradle) to no longer rely on this file. However your current instillation is caching and older version of the dependency (ForgeGradle) that your Malmo Mod has been using for months now!

To get it to use the newer non-breaking version you’ll need to get your hands dirty. Run the following in your Malmo’s /Minecraft folder.

./gradlew  setupDecompWorkspace --refresh-dependencies
./gradlew runClient

good luck dawgs

1reaction
MadcowDcommented, Feb 15, 2019

Currently the maven repo that Gradle (java package manger) uses for MinecraftForge (the mod of minecraft which decompiles it and lets malmo use deobfuscated game code) is down.

This is not a Malmo issue and it effects the whole Minecraft modding community. This is currently being fixed:

http://www.minecraftforge.net/forum/topic/68782-1122-setupdecompworkspace-no-such-version/

In the mean time, I’ll look into making a gradle script which skips rebuilding each time you run your client.

If you’re desperate to run Malmo rn, one fix that works for our team is the following:

  1. Install Minecraft on your computer the normal way (from the MC website),
  2. download forge for MC version 1.11.2 (from the forge website),
  3. run the installer.
  4. open the MC launcher and create a new launch profile which uses forge 1.11.2,
  5. record the directory that this launch profile is going to run in (on linux this is ~/.minecraft, on mac and windows its hidden in some shitty ApplicationData folder or something like this),
  6. go to that Minecraft directory that you just took note of and create a mods sub folder (on linux this will be ~/.minecraft/mods),
  7. then take the MalmoMod jar (which lives in the <path to ur malmo repo>/Minecraft/build/libs/MalmoMod-<ur version bro>.jar) and put it in your <path to ur minecraft folder specified by the launch profile u just made folder>/mods folder.

Now every time u want to use malmo u can launch Minecraft with that launch profile and malmo will automatically load. It should be on port 10000 unless that port is already taken in which it will be 10000 + n where 10000 + (n-1) is taken. After Minecraft is launched you can now run whaterver python script or (C++) script u normally do which references MalmoPython (or if ur downstream, maybe gym_minecraft) and it will use the minecraft client u just launched.

Hope this helps dawg.

// IJCAI deadline here we come!!!1

Update (Solution): See https://github.com/Microsoft/malmo/issues/795#issuecomment-464209772

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: ENOENT: no such file or directory index.js.map · Issue #84
I just received the same error for ./node_modules/rxjs/_esm5/index.js which DOES exist. I simply touched the file and then the error went away ...
Read more >
Gradle build fail with Cannot run program No such file or ...
Try stopping the gradle daemon with ./gradlew --stop. I had the same problem with something as simple as: commandLine = [ "node", "--version"]....
Read more >
Docker build strategy has failed: no such image
Moving this to Test Infrastructure - `no such image` suggests that the requested base image does not exist, or an image layer got...
Read more >
Errors – Vercel Docs
A list of errors provided by Vercel CLI or the REST API, with details on how they occur and how to resolve them....
Read more >
Troubleshoot EC2/On-Premises deployment issues
Effective October 17, 2016, deployments fail if a version of the CodeDeploy agent ... No such file or directory @ dir_s_mkdir - C:\...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found