无法安装Minecraft Forge开发环境

时间:2014-05-25 11:13:33

标签: minecraft minecraft-forge

我已尝试安装Minecraft Forge开发环境as described here,但我收到此错误:

================ Forge ModLoader Setup Start ===================
MCP Detected already, not downloading
Setting up MCP
Patching commands.py
patching file commands.py
    Commands patch applied successfully
Copying FML conf
Creating Repackaged data
    Creating re-packaged srg
    Creating re-packaged exc
    Creating re-packaged MCP patches
Traceback (most recent call last):
  File "install.py", line 76, in <module>
    decompile=options.decompile, gen_conf=False)
  File "install.py", line 17, in fml_main
    disable_assets=disable_assets)
  File "/Users/jop/IdeaProjects/MinecraftPush Forge/forge/fml/fml.py", line 1013, in decompile_minecraft
    pre_decompile(mcp_dir, fml_dir, disable_assets=disable_assets)
  File "/Users/jop/IdeaProjects/MinecraftPush Forge/forge/fml/fml.py", line 1061, in pre_decompile
    download_minecraft(mcp_dir, fml_dir)
  File "/Users/jop/IdeaProjects/MinecraftPush Forge/forge/fml/fml.py", line 1125, in download_minecraft
    failed = download_libraries(mcp_dir, version_json['libraries'], mc_info['natives_dir']) or failed
  File "/Users/jop/IdeaProjects/MinecraftPush Forge/forge/fml/fml.py", line 1181, in download_libraries
    headers = get_headers(url)
  File "/Users/jop/IdeaProjects/MinecraftPush Forge/forge/fml/fml.py", line 173, in get_headers
    response = urllib2.urlopen(HeadRequest(url))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 438, in error
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 521, in http_error_default
urllib2.HTTPError: HTTP Error 403: Forbidden

我做错了什么?

1 个答案:

答案 0 :(得分:2)

看起来你无法真正获取文件。 错误403中的返回:禁止通常意味着您无权访问该位置。

我首先推荐:

打开fml.py(fml文件夹)

  • 搜索此:default_url = 'http://s3.amazonaws.com/Minecraft.Download/libraries'
  • 并将其用于:default_url = 'https://libraries.minecraft.net'
  • base_url = 'http://s3.amazonaws.com/Minecraft.Resources'
  • 相同
  • base_url = 'http://resources.download.minecraft.net/'

如果没有,请检查:

检查你的urlib,你可能需要配置python以允许它正确下载文件Changing user agent on urllib2.urlopen

不言而喻:

但显然要确保您已将所有程序和文件更新到最新版本。 E.g。 Forge,Minecraft,Java,Python等。

我希望这有帮助,如果不让我知道,我会很乐意提供帮助。 谢谢, 路加