我尝试过安装Min克拉夫特Forge开发环境如前所述,但我得到了以下错误:
================ 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我做错了什么?
发布于 2014-05-25 12:37:23
看起来你似乎无法真正获得这些文件。返回错误403:禁用通常意味着您无法访问该位置。
I先记:
打开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以允许它正确下载文件在urllib2.urlopen上更改用户代理。
这是不言而喻的:
但很明显,请确保您已将所有程序和文件更新为最新版本。例如:锻造,我的世界,Java,Python等。
我希望这能有所帮助,如果不让我知道的话,我会很乐意帮忙的。谢谢,卢克
发布于 2016-11-17 11:42:36
造成此错误的另一个原因可能如下:
根据我的经验,启动gradlew批处理文件会导致在运行篡改连接的软件/硬件(如VPN (虚拟专用网))时拒绝下载。
如果您正在使用VPN,请考虑在启动gradle和设置工作区时禁用它。
https://stackoverflow.com/questions/23854695
复制相似问题