我尝试按此处所述安装Minecraft 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
我到底做错了什么?
看起来你实际上无法得到这些文件。返回错误403:Forbidden us通常表示您无权访问该位置。
我建议首先:
打开fml.py(fml文件夹)
如果没有,请检查:
检查您的urlib,您可能需要配置python以允许它正确下载urllib2.urlopen上的文件更改用户代理
这不言而喻:
但显然要确保您已将所有程序和文件更新到最新版本。E、 g.Forge、Minecraft、Java、Python等。
我希望这能有所帮助,如果不是让我知道,我很乐意帮忙。谢谢,卢克
此错误的另一个原因可能如下:
根据我的经验,在运行VPN(虚拟专用网络)等连接篡改软件/硬件时,启动gradlew批处理文件会导致拒绝下载。
如果您正在使用VPN,请考虑在启动gradle和设置工作区时禁用它。