Skip to content

[Bug Report] In some cases, luxloader cannot find pyluxcore #1087

@howetuft

Description

@howetuft

The description has been provided by developper 'Jorn Visser' on Blender development:
https://projects.blender.org/blender/blender/issues/159751#issuecomment-1953721

Quoting:

"I've looked into the error when enabling the BlendLuxCore add-on.
The reason importing pyluxcore fails is that the /.local/lib/python3.13/site-packages directory where it got installed is only added to sys.path by Blender if it already exists. If it doesn't and gets created by luxloader, it won't be in the path yet, and the import fails.

Then, as I described in my previous post, Blender will clean up any installed wheels not declared by any add-on. Some of the things that can trigger this cleanup are an add-on failing to enable, a new add-on being installed, or a repo extension being enabled/disabled.
As BlendLuxCore doesn't declare its wheels, Blender will clear them from site-packages, but as pyluxcore_installation_info.txt will still exist, luxloader won't reinstall them. Enabling the add-on then fails on importing pyluxcore again because it was deleted by Blender.

I've also attached the install logs with Blender running with --debug-python."

install_log.txt
install_log_2.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions