Stream has unknown format: data in Layout.add_pcell_variant

Hello,
I have made a windows executable (using pyInstaller) that's built on top of klayout.
One of my scripts is utilizing from pcells.

When I execute it from the source code it works fine, however when I execute it from the compiled executable I get the following error:
RuntimeError: Stream has unknown format: data in Layout.add_pcell_variant

Maybe there is a missing binary that I need to add. (I have already added all of the dll files in db_plugins)
Do you have any idea on what is going wrong ?
Thanks!

Comments

  • @Ege_Bey The stream readers/writers are dynamically loaded. You have to supply them separately I assume. If pyInstaller does what I think it does, it will analyze the DLLs and package all dependencies. I cannot know about dynamically loaded libraries.

    The "db" core library will try to locate them next to itself in a folder called "db_plugins".

    So look for a folder called "db_plugins" and make sure the files there are installed too, at the same place as "klayout_db.dll" (the "db" core library).

    Matthias

Sign In or Register to comment.