lzhoang2801 / OpCore-Simplify

A tool designed to simplify the creation of OpenCore EFI
https://lzhoang2801.github.io/gathering-files/opencore-efi
BSD 3-Clause "New" or "Revised" License
390 stars 32 forks source link

AttributeError: 'NoneType' object has no attribute 'split' #13

Closed vendor-dlkm closed 1 month ago

vendor-dlkm commented 1 month ago
Traceback (most recent call last):
  File "C:\Users\vendor_dlkm\Desktop\OPCS\OpCore-Simplify-main\OpCore-Simplify.py", line 300, in <module>
    o.main()
    ~~~~~~^^
  File "C:\Users\vendor_dlkm\Desktop\OPCS\OpCore-Simplify-main\OpCore-Simplify.py", line 289, in main
    self.build_opencore_efi(hardware_report, unsupported_devices, smbios_model, macos_version)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\vendor_dlkm\Desktop\OPCS\OpCore-Simplify-main\OpCore-Simplify.py", line 120, in build_opencore_efi
    acpi_load = getattr(self.ac, patch.function_name)()
  File "C:\Users\vendor_dlkm\Desktop\OPCS\OpCore-Simplify-main\Scripts\acpi_guru.py", line 1578, in add_system_management_bus_device
    pci_bus_device = ".".join(self.lpc_bus_device.split(".")[:2])
lzhoang2801 commented 1 month ago

Make sure the ACPI tables are present in the ACPITables folder, and that you're using the correct path to the ACPITables folder. Dumping the ACPITables again is also a temporary solution until I can check the error accurately

vendor-dlkm commented 1 month ago

I did check that the necessary .aml files are present and also checked that I'm using the correct path. Tried dumping the tables again too, but made no difference.

Forgot to mention that it fails to load the ACPI tables in the Hardware Report step, but lets me continue the setup until I get the same error I mentioned above.

Please drag and drop ACPI Tables folder here: C:\Users\vendor_dlkm\Desktop\OPCS\HS\Results\ACPITables
Gathering valid tables from ACPITables...

 - apic.aml
 - dsdt.aml
 - ssdt1.aml
 - ssdt2.aml
 - ssdt3.aml
 - ssdt4.aml
 - ssdt5.aml
 - ssdt.aml

Disassembling dsdt.aml to verify if pre-patches are needed...

Disassembled successfully!

Loading valid tables in C:\Users\vendor_dlkm\Desktop\OPCS\HS\Results\ACPITables...

Failed to load tables in C:\Users\vendor_dlkm\Desktop\OPCS\HS\Results\ACPITables:

 - apic.aml
 - ssdt1.aml
 - ssdt2.aml
 - ssdt3.aml
 - ssdt4.aml
 - ssdt5.aml
 - ssdt.aml

Press Enter to continue...
lzhoang2801 commented 1 month ago

Please try again with the latest commit and let me know the result

vendor-dlkm commented 1 month ago

There's no error in loading the ACPI tables or creating the EFI anymore. Issue's solved. 👍