Skip to content

RawPlutusData deepcopy error #224

Closed
Closed
@juliusfrost

Description

@juliusfrost

Describe the bug

setattr(tmp_builder, f.name, deepcopy(getattr(self, f.name)))

During a deepcopy in the line above I get
TypeError: cannot pickle '_cbor2.CBORTag' object

This is because in my tx_builder one UTxO's datum is 'RawPlutusData(data=CBORTag(121, [1000]))'

To Reproduce

git clone https://github.com/OpShin/opshin-pioneer-program.git
git checkout 81e0400 
poetry install
poetry run python src/week06/tests/test_negative_r_timed.py

Logs
https://github.com/OpShin/opshin-pioneer-program/actions/runs/4780231723/jobs/8497846594

Expected behavior
Shouldn't pickle should work on CBORTag? It doesn't look like a very complex data type.

Environment and software version (please complete the following information):

  • OS: Windows/Linux
  • PyCardano Version: latest

Additional context
Part of OpShin/opshin-pioneer-program#43

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