Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError when converts IF to json #162

Open
zhilix opened this issue Jun 28, 2022 · 0 comments
Open

AttributeError when converts IF to json #162

zhilix opened this issue Jun 28, 2022 · 0 comments

Comments

@zhilix
Copy link

zhilix commented Jun 28, 2022

I built the repo and ran the command trying to convert a physical netlist IF to a .json file:

    --schema_dir "/home/local/eda15/zhilix/projects/RapidWright/interchange/fpga-interchange-schema/interchange" \
    --schema physical \
    --input_format capnp \
    --output_format json \
    FPGA01_postroute_interchange.phys \
    FPGA01_postroute_interchange.json

But I got error message like this:

  File "/home/polaris/zhilix/.pyenv/versions/3.8.4/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/polaris/zhilix/.pyenv/versions/3.8.4/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/local/eda15/zhilix/projects/python-fpga-interchange/fpga_interchange/convert.py", line 208, in <module>
    main()
  File "/home/local/eda15/zhilix/projects/python-fpga-interchange/fpga_interchange/convert.py", line 201, in main
    message = read_format(schema, args.input_format, in_f)
  File "/home/local/eda15/zhilix/projects/python-fpga-interchange/fpga_interchange/convert.py", line 105, in read_format
    message = message.as_builder()
AttributeError: '_GeneratorContextManager' object has no attribute 'as_builder'

This is due to the from_bytes() in pycapnp library:
https://github.com/capnproto/pycapnp/issues/287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant