Forum Discussion

ImNohbody's avatar
ImNohbody
Seasoned Newcomer
2 days ago

Portal SDK "Portal Setup" upgrading pip failed

Hi! I extracted the sdk, ran Godot_v4.4.1-stable_win64, dragged project.godot into godot, clicked the main bf6 project option, waited for godot to build a level (aftermath), and then without making changes tried to click the Portal Setup button and then while it is setting up I get this error below.

Things I've tried:

  • deleting the pip-24.0.dist-info folder and the setup still fails.
  • deleted the pip-24.0.dist-info folder and then ran "python.exe -m pip install --upgrade pip" and it installs pip-25.2.dist-info which seems great but then the portal setup still fails because my pipv25 folder gets deleted during setup and the same issue happens again but now on a newly created pipv24
  • tried setting full access permissions on my entire sdk folder, still no success.
  • tried turning my computer on and off after a portal setup error

 

Is there something wrong with how the pip setup works? Is it finding an existing installation of pip on my machine somewhere and having issues? Please let me know what I need to do! I believe this is also stopping me from exporting my level. Thanks!

Installing packages to virtual environment...
  ERROR: ["Requirement already satisfied: pip in c:\\users\\stefan\\desktop\\bf6portal\\venv\\lib\\site-packages (24.0)\r\nCollecting pip\r\n  Using cached pip-25.2-py3-none-any.whl.metadata (4.7 kB)\r\nUsing cached pip-25.2-py3-none-any.whl (1.8 MB)\r\nInstalling collected packages: pip\r\n  Attempting uninstall: pip\r\n    Found existing installation: pip 24.0\r\n    Uninstalling pip-24.0:\r\nERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: \'c:\\\\users\\\\stefan\\\\desktop\\\\bf6portal\\\\venv\\\\lib\\\\site-packages\\\\pip-24.0.dist-info\\\\AUTHORS.txt\'\r\nCheck the permissions.\r\n\r\n\r\n[notice] A new release of pip is available: 24.0 -> 25.2\r\n[notice] To update, run: C:\\Users\\Stefan\\Desktop\\bf6portal\\venv\\Scripts\\python.exe -m pip install --upgrade pip\r\n"]
  ERROR: Upgrading pip failed

1 Reply

  • ImNohbody's avatar
    ImNohbody
    Seasoned Newcomer
    24 hours ago

    Issue has been resolved!

    Here was my solution for those who might have the same problem:

    1. make sure godot is closed
    2. (possibly optional) install python globally on your machine (windows) I installed python 3.12 via https://apps.microsoft.com/search?query=python&hl=en-US&gl=US 
    3. go into this file GodotProject\addons\bf_portal\portal_tools\portal_tools_dock.gd and remove this code starting around line 122:     exit_code = OS.execute(python_venv, ["-m", "pip", "install", "--upgrade", "pip"], output, true)
          if exit_code != 0:
              printerr(output)
              printerr("Upgrading pip failed")
              call_deferred("_setup_error", "Upgrading pip failed")
              return
          output.pop_back()
    4. now open godot and run the bf6 portal project as normal, open a level, wait for the load, and then click setup portal button

    i was then able to export the level and was then able to upload it to the portal website. I have yet to load up the experience in bf6 but I think that's because there's like a day wait on the servers.

About Battlefield 6 Technical Issues

Having issues with Battlefield 6? Join here to find help with connectivity, performance issues, crashes and more.1,389 PostsLatest Activity: 2 minutes ago