jobukkit
jobukkit

Reputation: 2670

Can't install Minecraft Forge development environment

I have tried to install Minecraft Forge development environment as described here, but I get this error:

================ 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

What am I doing wrong?

Upvotes: 0

Views: 1141

Answers (2)

user7109736
user7109736

Reputation:

Another reason for this error could be as follows:

In my experience, launching the gradlew batch file has led to denial of download when running connection-tampering software/hardware such as a VPN (Virtual Private Network).

If you are using a VPN, consider disabling it whilst launching gradle and setting up your workspace.

Upvotes: 0

Luke Brown
Luke Brown

Reputation: 1892

It appears like you are unable to actually get the files. Returns in Error 403: Forbidden usaually means you don't have access to the that location.

I reccomend first:

Open the fml.py (fml folder)

  • search this: default_url = 'http://s3.amazonaws.com/Minecraft.Download/libraries'
  • and put it for: default_url = 'https://libraries.minecraft.net'
  • same with: base_url = 'http://s3.amazonaws.com/Minecraft.Resources'
  • base_url = 'http://resources.download.minecraft.net/'

If not then check:

check your urlib, you may need to configure python to allow it to correctly download the files Changing user agent on urllib2.urlopen

This goes without saying:

But obviously make sure you have updated all your programs and files to their latest version. E.g. Forge, Minecraft, Java, Python ect.

I hope this helps, if not let me know and I'd be happy to help. Thanks, Luke

Upvotes: 2

Related Questions