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

从零开始配环境时一个bug,想问一下怎么解决 #5

Open
danye0 opened this issue Jan 14, 2025 · 0 comments
Open

从零开始配环境时一个bug,想问一下怎么解决 #5

danye0 opened this issue Jan 14, 2025 · 0 comments

Comments

@danye0
Copy link

danye0 commented Jan 14, 2025

执行uv pip install -e .

结果:
Using Python 3.10.16 environment at: /data/zjren/project/Optimus-1/.venv error: The build backend returned an error Caused by: Call to setuptools.build_meta:legacy.build_editable` failed (exit status: 1)

[stdout]
Starting a Gradle Daemon (subsequent builds will be faster)

Task :mcp:downloadConfig

Task :mcp:setupMCP
Setting up MCP environment
Initializing steps
Executing steps
Running 'downloadManifest'
Running 'downloadJson'
Running 'downloadClient'
Running 'downloadServer'
Running 'stripClient'
Running 'stripServer'
Running 'merge'
Running 'rename'
Running 'mcinject'
Running 'listLibraries'
Running 'decompile'
Running 'inject'
Running 'patch'
MCP environment setup is complete

Task :applyPatches
Task :downloadMappings
Task :srg2mcp
Task :extractMapped
Task :setup

BUILD SUCCESSFUL in 1m 19s
6 actionable tasks: 6 executed

Configure project :


These are the repositories after plugins have been applied:
| - MavenRepo -> https://repo.maven.apache.org/maven2/
| - BintrayJCenter -> https://jcenter.bintray.com/
| - maven -> https://repo.spongepowered.org/maven/
| - maven2 -> https://maven.minecraftforge.net/
| - BUNDELED_1168911866 -> downloads to: /home/zjren/.gradle/caches/forge_gradle/bundeled_repo/
| - maven3 -> https://libraries.minecraft.net/


Repositories after removing proxied repos:
| - MavenRepo -> https://repo.maven.apache.org/maven2/
| - BintrayJCenter -> https://jcenter.bintray.com/
| - maven -> https://repo.spongepowered.org/maven/
| - maven2 -> https://maven.minecraftforge.net/
| - BUNDELED_1168911866 -> downloads to: /home/zjren/.gradle/caches/forge_gradle/bundeled_repo/
| - maven3 -> https://libraries.minecraft.net/


Task :verifyRepos
Checking BuildScript Repositories:
| - [ OK ]: MavenLocal -> file:/home/zjren/.m2/repository
| - [FAIL]: MavenRepo -> https://repo.maven.apache.org/maven2/
| - [FAIL]: BintrayJCenter -> https://jcenter.bintray.com/
| - [FAIL]: maven -> https://repo.spongepowered.org/maven/
Checking Project Repositories:
| - [FAIL]: MavenRepo -> https://repo.maven.apache.org/maven2/
| - [FAIL]: BintrayJCenter -> https://jcenter.bintray.com/
| - [FAIL]: maven -> https://repo.spongepowered.org/maven/
| - [FAIL]: maven2 -> https://maven.minecraftforge.net/
| - [ OK ]: BUNDELED_1168911866 (accepted custom MC repo)
| - [FAIL]: maven3 -> https://libraries.minecraft.net/

Task :downloadMCMeta
Task :downloadAssets

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 19s
3 actionable tasks: 3 executed

Configure project :


These are the repositories after plugins have been applied:
| - MavenRepo -> https://repo.maven.apache.org/maven2/
| - BintrayJCenter -> https://jcenter.bintray.com/
| - maven -> https://repo.spongepowered.org/maven/
| - maven2 -> https://maven.minecraftforge.net/
| - BUNDELED_391237778 -> downloads to: /home/zjren/.gradle/caches/forge_gradle/bundeled_repo/
| - maven3 -> https://libraries.minecraft.net/


Repositories after removing proxied repos:
| - MavenRepo -> https://repo.maven.apache.org/maven2/
| - BintrayJCenter -> https://jcenter.bintray.com/
| - maven -> https://repo.spongepowered.org/maven/
| - maven2 -> https://maven.minecraftforge.net/
| - BUNDELED_391237778 -> downloads to: /home/zjren/.gradle/caches/forge_gradle/bundeled_repo/
| - maven3 -> https://libraries.minecraft.net/


Task :verifyRepos
Checking BuildScript Repositories:
| - [ OK ]: MavenLocal -> file:/home/zjren/.m2/repository
| - [FAIL]: MavenRepo -> https://repo.maven.apache.org/maven2/
| - [FAIL]: BintrayJCenter -> https://jcenter.bintray.com/
| - [FAIL]: maven -> https://repo.spongepowered.org/maven/
Checking Project Repositories:
| - [FAIL]: MavenRepo -> https://repo.maven.apache.org/maven2/
| - [FAIL]: BintrayJCenter -> https://jcenter.bintray.com/
| - [FAIL]: maven -> https://repo.spongepowered.org/maven/
| - [FAIL]: maven2 -> https://maven.minecraftforge.net/
| - [ OK ]: BUNDELED_391237778 (accepted custom MC repo)
| - [FAIL]: maven3 -> https://libraries.minecraft.net/

Task :clean
Task :deleteSchemas
Task :copySchemas
Task :jaxb

Task :compileJava

Task :compileJava FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.1/userguide/command_line_interface.html#sec:command_line_warnings
6 actionable tasks: 6 executed

[stderr]
Cloning into 'MCP-Reborn'...
Note: checking out '1.16.5-20210115'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at 1e71be5 Update README.md
patch: **** Failed to set the permissions of file src/main/java/net/minecraft/client/MouseHelper.java.oKKvyxI : Too many open files
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:622: error: cannot find symbol
private static MouseHelper.State constructMouseState(String actions) {
^
symbol: class State
location: class MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:14: error: cannot find symbol
import net.minecraft.client.ReplaySender;
^
symbol: class ReplaySender
location: package net.minecraft.client
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:318: error: cannot find symbol
public void setMouseKeyboardState(MouseHelper.State mouseState, KeyboardListener.State keyboardState) {
^
symbol: class State
location: class MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:412: error: cannot find symbol
InputStream inputstream = new JavaResourcePack().getResourceStream(ResourcePackType.CLIENT_RESOURCES, new ResourceLocation("icons", "icon_16x16.png"));
^
symbol: class JavaResourcePack
location: class Minecraft
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:413: error: cannot find symbol
InputStream inputstream1 = new JavaResourcePack().getResourceStream(ResourcePackType.CLIENT_RESOURCES, new ResourceLocation("icons", "icon_32x32.png"));
^
symbol: class JavaResourcePack
location: class Minecraft
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:941: error: cannot find symbol
ReplaySender.getInstance().tick();
^
symbol: variable ReplaySender
location: class Minecraft
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:946: error: cannot find symbol
integratedServer.runSyncTick(profiler);
^
symbol: method runSyncTick(IProfiler)
location: variable integratedServer of type IntegratedServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1061: error: cannot find symbol
if (!this.gameTimeTracker.isTracking()) {
^
symbol: method isTracking()
location: variable gameTimeTracker of type TimeTracker
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1063: error: cannot find symbol
this.gameTimeTracker.startTracking();
^
symbol: method startTracking()
location: variable gameTimeTracker of type TimeTracker
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1068: error: cannot find symbol
this.gameTimeTracker.stopTracking();
^
symbol: method stopTracking()
location: variable gameTimeTracker of type TimeTracker
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1071: error: cannot find symbol
this.profiler = LongTickDetector.getProfiler(this.gameTimeTracker.getProfiler(), detector);
^
symbol: method getProfiler()
location: variable gameTimeTracker of type TimeTracker
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1080: error: cannot find symbol
this.profilerResult = this.gameTimeTracker.getResults();
^
symbol: method getResults()
location: variable gameTimeTracker of type TimeTracker
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1085: error: cannot find symbol
this.profiler = this.gameTimeTracker.getProfiler();
^
symbol: method getProfiler()
location: variable gameTimeTracker of type TimeTracker
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1674: error: cannot find symbol
loadWorld(savePath, worldName, DynamicRegistries.getImpl(),Minecraft::loadDataPackCodec,Minecraft::loadWorld,false,Minecraft.WorldSelectionType.BACKUP);
^
symbol: method getImpl()
location: class DynamicRegistries
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1694: error: method getLevelSave in class SaveFormat cannot be applied to given types;
saveformat$levelsave = this.saveFormat.getLevelSave(savePath, worldName);
^
required: String
found: Path,String
reason: actual and formal argument lists differ in length
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/Minecraft.java:1746: error: cannot find symbol
integratedServer.runTickAndTasks();
^
symbol: method runTickAndTasks()
location: variable integratedServer of type IntegratedServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/KeyboardListener.java:263: error: cannot find symbol
if (mc.mouseHelper.getHumanInput()) {
^
symbol: method getHumanInput()
location: variable mouseHelper of type MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/net/minecraft/client/KeyboardListener.java:382: error: cannot find symbol
if (mc.mouseHelper.getHumanInput()) {
^
symbol: method getHumanInput()
location: variable mouseHelper of type MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/microsoft/Malmo/Utils/JSONWorldDataHelper.java:130: error: cannot find symbol
for(Stat<?> stat : statisticsManager.getKeys()) {
^
symbol: method getKeys()
location: variable statisticsManager of type StatisticsManager
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/microsoft/Malmo/Utils/JSONWorldDataHelper.java:173: error: cannot find symbol
for(Stat stat : statisticsManager.getKeys()) {
^
symbol: method getKeys()
location: variable statisticsManager of type StatisticsManager
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/FakeMouseCursor.java:79: error: cannot find symbol
IResourcePack resourcePack = new JavaResourcePack();
^
symbol: class JavaResourcePack
location: class FakeMouseCursor
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:261: error: cannot find symbol
mc.getSession().setUsername(missionInit.getMission().getAgentSection().get(0).getName());
^
symbol: method setUsername(String)
location: class Session
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:330: error: cannot find symbol
Minecraft.getInstance().getSession().setUsername(username);
^
symbol: method setUsername(String)
location: class Session
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:376: error: cannot find symbol
ReplaySender.getInstance().loadWorldFromZip(saveZipFile);
^
symbol: variable ReplaySender
location: class EnvServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:414: error: cannot find symbol
MinecraftServer.setSpawnBiomePredicate( b -> b.getCategory().getName().equals(spawnBiome) );
^
symbol: method setSpawnBiomePredicate((b)->b.get[...]iome))
location: class MinecraftServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:418: error: cannot find symbol
MinecraftServer.setSpawnInVillage(true);
^
symbol: method setSpawnInVillage(boolean)
location: class MinecraftServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:423: error: cannot find symbol
DimensionGeneratorSettings dms = DimensionGeneratorSettings.fromDynamicRegistries(DynamicRegistries.getImpl(), seed, generateFeatures, bonusChest);
^
symbol: method getImpl()
location: class DynamicRegistries
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:424: error: cannot find symbol
mc.createWorld(worldName, worldSettings, DynamicRegistries.getImpl(), dms);
^
symbol: method getImpl()
location: class DynamicRegistries
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:428: error: cannot find symbol
Set biomeCategories = DynamicRegistries.getImpl().getRegistry(Registry.BIOME_KEY).getEntries().stream()
^
symbol: method getImpl()
location: class DynamicRegistries
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:601: error: cannot find symbol
MouseHelper.State mouseState = constructMouseState(actions);
^
symbol: class State
location: class MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:603: error: cannot find symbol
ReplaySender.getInstance().addAction(mouseState, keysState);
^
symbol: variable ReplaySender
location: class EnvServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:650: error: cannot find symbol
return new MouseHelper.State(0, 0, dx, dy, dwheel, buttonsPressed, Collections.emptyList());
^
symbol: class State
location: class MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/env/EnvServer.java:705: error: cannot find symbol
ReplaySender.getInstance().stop();
^
symbol: variable ReplaySender
location: class EnvServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:140: error: cannot find symbol
is.saveAndUploadWorld(filename + ".zip");
^
symbol: method saveAndUploadWorld(String)
location: variable is of type IntegratedServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:141: error: cannot find symbol
is.setUploadPath(azurePath);
^
symbol: method setUploadPath(String)
location: variable is of type IntegratedServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:142: error: cannot find symbol
is.setAutosavePeriod(saveStatePeriod);
^
symbol: method setAutosavePeriod(int)
location: variable is of type IntegratedServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:143: error: cannot find symbol
is.setWorldZipPrefix(filename);
^
symbol: method setWorldZipPrefix(String)
location: variable is of type IntegratedServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:147: error: cannot find symbol
if (ReplaySender.getInstance().getMode() == ReplaySender.Mode.OFF) {
^
symbol: variable ReplaySender
location: class PlayRecorder
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:147: error: package ReplaySender does not exist
if (ReplaySender.getInstance().getMode() == ReplaySender.Mode.OFF) {
^
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:148: error: cannot find symbol
ReplaySender.getInstance().sendFromEnv();
^
symbol: variable ReplaySender
location: class PlayRecorder
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:186: error: cannot find symbol
mc.mouseHelper.setHumanInput(true);
^
symbol: method setHumanInput(boolean)
location: variable mouseHelper of type MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:189: error: cannot find symbol
mc.mouseHelper.setHumanInput(false);
^
symbol: method setHumanInput(boolean)
location: variable mouseHelper of type MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:200: error: cannot find symbol
mc.mouseHelper.clearState();
^
symbol: method clearState()
location: variable mouseHelper of type MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:218: error: cannot find symbol
mouseState = gson.toJsonTree(mc.mouseHelper.getState());
^
symbol: method getState()
location: variable mouseHelper of type MouseHelper
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:241: error: cannot find symbol
actions.addProperty("serverTickDurationMs", mc.getIntegratedServer().getTickTimeRaw());
^
symbol: method getTickTimeRaw()
location: class IntegratedServer
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:243: error: cannot find symbol
if (ReplaySender.getInstance().getMode() == ReplaySender.Mode.EXEC_CMD && mc.gameSettings.envPort == 0) {
^
symbol: variable ReplaySender
location: class PlayRecorder
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:243: error: package ReplaySender does not exist
if (ReplaySender.getInstance().getMode() == ReplaySender.Mode.EXEC_CMD && mc.gameSettings.envPort == 0) {
^
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:244: error: cannot find symbol
ReplaySender.getInstance().addAction(actions);
^
symbol: variable ReplaySender
location: class PlayRecorder
/data/zjren/project/Optimus-1/minerl/minerl/MCP-Reborn/src/main/java/com/minerl/multiagent/recorder/PlayRecorder.java:287: error: cannot find symbol
mc.mouseHelper.setHumanInput(true);
^
symbol: method setHumanInput(boolean)
location: variable mouseHelper of type MouseHelper
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
49 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 44s
Traceback (most recent call last):
File "", line 14, in
File "/home/zjren/.cache/uv/builds-v0/.tmpdzobyE/lib/python3.10/site-packages/setuptools/build_meta.py", line 483, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
File "/home/zjren/.cache/uv/builds-v0/.tmpdzobyE/lib/python3.10/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "/home/zjren/.cache/uv/builds-v0/.tmpdzobyE/lib/python3.10/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/home/zjren/.cache/uv/builds-v0/.tmpdzobyE/lib/python3.10/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "/home/zjren/.cache/uv/builds-v0/.tmpdzobyE/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 222, in
File "", line 206, in prep_mcp
File "/home/zjren/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./gradlew', 'clean', 'build', 'shadowJar']' returned non-zero exit status 1.

hint: This usually indicates a problem with the package or the build environment.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant