Skip to content

pyinfra_windows.files.put raises AttributeError #20

@rod7760

Description

@rod7760
pyinfra @winrm/192.168.1.244 --user Ricky --password **** --port 5986 pyinfra_windows.operations.files.put src=test-file dest=test-file

Output:

 File ".venv/lib/python3.13/site-packages/pyinfra/context.py", line 55, in __getattr__
    return getattr(self._get_module(), key)
AttributeError: 'State' object has no attribute 'get_temp_filename'

Verbose output shows the source of the error is this:

File ".venv/lib/python3.13/site-packages/pyinfra_windows/operations/files.py", line 212, in put
    remote_temp_filename=state.get_temp_filename(dest),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions