Skip to content

Cannot parse packup files with multiple versions #6

@IcEarthlight

Description

@IcEarthlight

I'm trying to parse a .rpp-bak file with rpp.load or rpp.loads, and neither of them works. The structure of this file is like:

image

It always raise a ValueError. Though split these versions before parsing can be an alternative, I hope this module can handle loading and saving this kind of file. Thank you!

Version of Python: 3.12.4
Version of rpp: 0.5
Version of attrs: 24.2.0
Version of ply: 3.11
System: Windows 11 23H2 22631.4037
Reproduce:

rpp.loads("""<REAPER_PROJECT 0.1 "7.22/win64" 1725545821
>
<REAPER_PROJECT 0.1 "7.22/win64" 1725545830
>
<REAPER_PROJECT 0.1 "7.22/win64" 1725545839
>""")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions