Description

The BlueprintFileUtilsBPLibrary API is not accessible through python scripts run in the editor.

Attempting to run a script utilizing BplueprintFileUtilsBPLibrary results in:

LogPython: Error: Traceback (most recent call last):
LogPython: Error:   File "C:/Users/alex.berryhill/Documents/Unreal Projects/MyProject17/Content/Python/importunrealtest.py", line 2, in <module>
LogPython: Error:     unreal.BlueprintFileUtilsBPLibrary()
LogPython: Error: AttributeError: 'module' object has no attribute 'BlueprintFileUtilsBPLibrary'

This occurs in //UE4/Release-4.22 cl 8065155 so this is not a regression.

Solution:
The Blueprint File Utilities plugin is no longer enabled in projects by deafult. It can be enabled by going to Window > Plugins and searching for 'Blueprint File Utilities'

Steps to Reproduce
  1. Create a new project
  2. Enable the Python Script Plugin
  3. Restart the project
  4. Using idle, create a new python script with the following lines:
    • import unreal
    • unreal.BlueprintFileUtilsBPLibrary()
  5. Select File > Save As
  6. Navigate to your projects content folder
  7. Create a new folder named "Python"
  8. Save the python script there as "importtest.py"
  9. In the editor, open the output log
    • Window > Developer Tools > Output Log
  10. Select the dropdown menu in the bottom left corner of the output log
  11. Select Python
  12. In the field next to the dropdown type:
    • importtest.py

Result
The module is inaccessible

Expected
The module is accessible through python script

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-100724 in the post.

1
Login to Vote

Non-Issue
ComponentUE - Editor - Workflow Systems
Affects Versions4.224.234.244.254.26
CreatedOct 7, 2020
ResolvedOct 9, 2020
UpdatedJan 22, 2024
View Jira Issue