Jump to content

[Solved] Error while installing Minecraft Forge Source 4.0.0.239


Recommended Posts

Posted

OK... I might be being a bit stupid here, but I have tried everything I can think of.

 

What I am doing:

----------------------

1) I get a clean MCP 7.2 folder.

2) Into the mcp72\jars\ folder, I put clean minecraft bin & resource folders, and clean minecraft_server.jar, version 1.3.2.

3) I extract the latest forge source folder 4.0.0.200 into MCP.

4) I then run mcp72\forge\install.cmd.

 

This is the readout I get from this:

  Quote

C:\T7-D510\JavaWorkspace\mcp72\forge>install.cmd

================ Forge ModLoader Setup Start ===================

Setting up MCP

> Backing up commands.py

Patching file C:\T7-D510\JavaWorkspace\mcp72\runtime\commands.py

patching file commands.py

Commands patch applied successfully

Copying FML conf

Fixing MCP Workspace

Traceback (most recent call last):

  File "install.py", line 40, in <module>

    main()

  File "install.py", line 18, in main

    setup_mcp(fml_dir, mcp_dir, True)

  File "C:\T7-D510\JavaWorkspace\mcp72\forge\fml\fml.py", line 608, in setup_mcp

 

    shutil.copytree(os.path.join(fml_dir, 'eclipse'), mcp_eclipse)

  File "shutil.pyc", line 174, in copytree

  File "os.pyc", line 157, in makedirs

WindowsError: [Error 5] Access is denied: 'C:\\T7-D510\\JavaWorkspace\\mcp72\\ec

lipse'

Press any key to continue . . .

 

WindowsError: [Error 5] Access is denied: 'C:\\T7-D510\\JavaWorkspace\\mcp72\\eclipse'

 

Now there is a very good reason why access is denied. This folder exists before I run the .cmd, but disappears afterwards.

So, as far as I can tell, the install.cmd deletes it (or moves it), and then subsequently has a problem accessing it.

 

Am I doing something wrong, or am I missing something important?

 

Thanks in advance

- Tom

Posted

Hmmm.... I'm still getting exactly the same error with 4.0.0.239 (I assume this is the latest?)

 

(Except, instead of fml.py failing on line 608, it fails on line 615 now... although its clearly the same actual line of code)

 

Does anyone have any thoughts on this?

Posted

WindowsError: [Error 5] Access is denied: 'C:\\T7-D510\\JavaWorkspace\\mcp72\\ec
lipse'

 

Looks like there are no writing rights for the eclipse folder. To solve this, right-click on your MCp folder -> Properties -> Remove the tick / filled square, so there's nothing in the checkbox -> Apply -> be sure that the 2nd checkbox is checked (apply changes for the folder, all subfolders and files) -> wait a bit until it's done -> click OK on the property window and try again.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Yay! My first post on this forum!

 

Anyway, I had this problem before. You could really easy resolve this with LockHunter! Just go to http://lockhunter.com/ and download it. Then after installing it, make a fresh installation of MCP and put the Forge source in it. When that's done, you go to the main folder where your mcp installation is, meaning that if I installed MCP in c:\mcp72\ for example, you'll have to go to c:\ in your explorer. Then right-click on your mcp folder. There will be an option there called "What is locking this folder?". Click that and a GUI will popup. In the GUI you'll click unlock and close the program. Forge should install correctly now.

 

It's a completely other solution than SanAndreasP gave here, but by far the best one. Why? Because it unlocks the folder from explorer.exe. The reason why you get this error, is because the folder is opened in the memory of explorer.exe. LockHunter simply unloads it. Don't worry, you can still go to the forge folder with explorer to click on install.cmd.

 

LockHunter is also a really nice utility for deleting/renaming files when they don't want to. Do exactly the same, and you'll be able to delete/rename what you want deleted/renaming. There are even options to do this directly in the program.

Posted

Actually, typically this just means that he has eclipse open, he should close it.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Many thanks for the responses... none of them was quite what I was looking for, but they gave me a bit of a clue where to start looking.

So, I dug about in the python for a bit!

 

Turns out, that in the setup_mcp() method in fml.py (called by install.py) it calls the line:

shutil.copytree(os.path.join(fml_dir, 'eclipse'), mcp_eclipse)

Now, shutil.copytree requires that the 2nd parameter is for a directory path which does not yet exist.

 

So... all I needed to do was run the forge install after deleting the eclipse directory in mcp72!

 

It worked like a charm! Lovely!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

ร—   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

ร—   Your link has been automatically embedded.   Display as a link instead

ร—   Your previous content has been restored.   Clear editor

ร—   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Verified users can now unlock a $100 OFF Temu Coupon Code using the verified promo code [ALF401700]. This Temu $100 OFF code works for both new and existing customers and can be used to redeem up to 50% off your next order. Our exclusive Temu coupon code [ALF401700] delivers a flat $100 OFF on top of existing deals. First-time customers using code ALF401700 can save an extra 100% off select items. Returning users also qualify for an automatic $100 OFF discount just by applying this code at checkout. But waitโ€”thereโ€™s more. With our Temu coupon codes for 2025, users can score up to 90% OFF on clearance items. Whether youโ€™re shopping in the USA, Canada, UK, or elsewhere, Temu promo code ALF401700 unlocks extra discounts tailored to your account. Some users are saving 100% on items using this 2025 Temu promo code. ๐Ÿ”ฅ Temu Coupon Highlights Using Code [ALF401700]: Temu new user code โ€“ ALF401700: Save 50% off your first order + $100 OFF. Temu promo for existing customers โ€“ ALF401700: Enjoy flat $100 OFF instantly. Global availability: Works in the USA, UK, Canada, Germany, France, Japan, Chile, Colombia, Malaysia, Mexico, South Korea, Philippines, Saudi Arabia, Qatar, Pakistan, and more. Top 2025 Coupon Deal: Get $200 OFF plus 100% bonus discounts using code ALF401700. Top-Ranked Temu Deals for 2025 (Coupon Code: ALF401700): โœ… Temu $100 OFF Memorial Day Sale โ€” Use ALF401700 โœ… Temu First Order Coupon โ€” Use ALF401700 for 50% + $100 OFF โœ… Temu USA Coupon Code โ€” Save $100 instantly with ALF401700 โœ… Temu Japan, Germany, Chile Codes โ€” All support ALF401700 โœ… Temu Reddit Discount โ€“ $100 OFF: Valid for both new and old users โœ… Temu Coupon Bundle 2025 โ€” $100 OFF + up to 50% slash โœ… 100% OFF Free Gift Code โ€” Use ALF401700, no invite needed โœ… Temu Sign-Up Bonus Promo โ€” Get a welcome $100 OFF instantly โœ… Free Temu Code for New Users โ€” Use ALF401700, no referral required  Temu Clearance Codes 2025 โ€” Use ALF401700 for 85โ€“100% discounts Why ALF401700 is the Best Temu Code in 2025 Using Temu code ALF401700 is your ticket to massive savings, free shipping, first-order discounts, and stackable coupon bundles. Whether you're browsing electronics, fashion, home goods, or beauty products, this verified Temu discount code offers real savingsโ€”up to 90% OFF + $100 OFF on qualified orders. ๐Ÿ’ก Pro Tip: Apply ALF401700 during checkout in the Temu app or website to activate your instant $100 discount, even if youโ€™re not a new user. Temu $100 OFF Code by Country (All Use ALF401700): ๐Ÿ‡บ๐Ÿ‡ธ Temu USA โ€“ ALF401700 ๐Ÿ‡ฏ๐Ÿ‡ต Temu Japan โ€“ ALF401700 ๐Ÿ‡ฒ๐Ÿ‡ฝ Temu Mexico โ€“ ALF401700 ๐Ÿ‡จ๐Ÿ‡ฑ Temu Chile โ€“ ALF401700 ๐Ÿ‡จ๐Ÿ‡ด Temu Colombia โ€“ ALF401700 ๐Ÿ‡ฒ๐Ÿ‡พ Temu Malaysia โ€“ ALF401700 ๐Ÿ‡ต๐Ÿ‡ญ Temu Philippines โ€“ ALF401700 ๐Ÿ‡ฐ๐Ÿ‡ท Temu Korea โ€“ ALF401700 ๐Ÿ‡ต๐Ÿ‡ฐ Temu Pakistan โ€“ ALF401700 ๐Ÿ‡ซ๐Ÿ‡ฎ Temu Finland โ€“ ALF401700 ๐Ÿ‡ธ๐Ÿ‡ฆ Temu Saudi Arabia โ€“ ALF401700 ๐Ÿ‡ถ๐Ÿ‡ฆ Temu Qatar โ€“ ALF401700 ๐Ÿ‡ซ๐Ÿ‡ท Temu France โ€“ ALF401700 ๐Ÿ‡ฉ๐Ÿ‡ช Temu Germany โ€“ ALF401700 ๐Ÿ‡ฎ๐Ÿ‡ฑ Temu Israel โ€“ ALF401700 Temu Coupon Code [ALF401700] Summary for SEO: Temu $100 OFF Code  Temu First Order Discount Code 2025  Temu Verified Promo Code ALF401700  Temu 50% OFF + $100 Bonus  Temu 100% OFF Code 2025  Temu App Promo ALF401700  Temu Working Discount Code 2025 
    • Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
    • Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
    • You can check the config of Geckolib and Mowzie's Mobs - maybe there is a way to disable some render features
    • You can use the .requires() function  the server also has a permission level of 4, which is the highest permission level.
  • Topics

ร—
ร—
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.