Skip to content

PSA v1.8.3 and v1.9.2 fail to load in Blender 4.2 with ImportError: cannot import name 'tuple_to_str' from 'physical-starlight-atmosphere.helpers' #112

Description

@mattrenderedai

Describe the bug
The root cause is that the helpers.py file contains Markdown code fences (python ... ) around the Python code, making it syntactically invalid. When init.py attempts to import tuple_to_str from helpers.py, Python cannot parse the file due to these Markdown formatting markers.

Expected behavior The addon should load successfully and tuple_to_str should be importable from helpers.py.

General information
Blender version: 4.2.0 (hash a51f293548ad built 2024-07-16 06:27:02)
Addon version: 1.8.3 and 1.9.2 (both affected)
Engine: Cycles
Operating System: Linux
Other info that could be useful: Python 3.11 (Blender's bundled Python), Python 3.13 (system)

To Reproduce
Download PSA v1.8.3 or v1.9.2 from Physical Addons
Install the addon in Blender 4.2: Edit > Preferences > Add-ons > Install > Select the .zip file
Enable the addon by checking the checkbox next to "Physical Starlight and Atmosphere"
Observe the error in the console: ImportError: cannot import name 'tuple_to_str' from 'physical-starlight-atmosphere.helpers'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions