Skip to content

SoS is broken on Python 3.12? #1542

@gaow

Description

@gaow

On Python 3.10 and SoS 0.25.0 this workflow:

[1]
parameter: dat = path
input: dat
print(_input)

it works well.

sos run test.sos --dat test.sos
INFO: Running 1:
test.sos
INFO: 1 is completed.
INFO: Workflow default (ID=wadc76383948ec2d8) is executed successfully with 1 completed step.

But on Python 3.12, it fails:

# sos run test.sos --dat test.sos
INFO: Running 1: 
ERROR: [1]: [1]: Failed to process input statement dat
: file_target object has no attribute traced

I have another workflow that shows a different error:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/.pixi/envs/sos/lib/python3.12/site-packages/sos/targets.py", line 128, in __getattr__
    return self._dict[name]
           ^^^^^^^^^^
  File "/root/.pixi/envs/sos/lib/python3.12/site-packages/sos/targets.py", line 132, in __getattr__
    raise AttributeError(f"{self.__class__.__name__} object has no attribute {name}") from e
AttributeError: file_target object has no attribute _dict

after we upgrade from Python 3.10 to 3.12 it seems we are crippled ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions