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

KLayout 0.27: package "tf_import 1.0" dies with error message #7

Open
refob opened this issue Jun 2, 2021 · 2 comments
Open

KLayout 0.27: package "tf_import 1.0" dies with error message #7

refob opened this issue Jun 2, 2021 · 2 comments

Comments

@refob
Copy link

refob commented Jun 2, 2021

I installed klayout-0.27-0.x86_64.rpm on CentOS7 and used the Salt Package Manager to install the the package "
tf_import 1.0". Then I ran this command:

klayout -rd tf_file=df2/NCSU_Techlib_tsmc02_laydefs.tf -rd lyp_file=out.lyp fifo.gds

Which outputs this error:

ERROR: /home/reinhard/.klayout/salt/tf_import/ruby/import_tf.rb:70: uninitialized constant TechfileToKLayout::StringIO
/home/reinhard/.klayout/salt/tf_import/ruby/import_tf.rb:70:in read_skill_file_as_ruby_expr' /home/reinhard/.klayout/salt/tf_import/ruby/import_tf.rb:195:in import_techfile'
/home/reinhard/.klayout/salt/tf_import/macros/import_tf_standalone.rb:35:in <module:TechfileToKLayout>' /home/reinhard/.klayout/salt/tf_import/macros/import_tf_standalone.rb:24:in

' (class NameError)

Executing File>Import Cadence Techfile in the gui showed this error:

ERROR: /home/reinhard/.klayout/salt/tf_import/ruby/import_tf.rb:70: uninitialized constant TechfileToKLayout::StringIO
/home/reinhard/.klayout/salt/tf_import/ruby/import_tf.rb:70:in read_skill_file_as_ruby_expr' /home/reinhard/.klayout/salt/tf_import/ruby/import_tf.rb:195:in import_techfile'
/home/reinhard/.klayout/salt/tf_import/macros/import_tf.lym:32:in <module:TechfileToKLayout>' /home/reinhard/.klayout/salt/tf_import/macros/import_tf.lym:17:in

' (class NameError)

@ffetsred
Copy link

I have the same error on Windows portable version of KLayout.
It looks like ruby requires an explicit "require 'stringio'". Once I add it it works fine for me.

Change needs to be implemented in the following files:
salt/tf_import/macros/import_tf.lym
salt/tf_import/macros/import_tf_standalone.rb

From:

...
require "import_tf"
...

To:

...
require 'stringio'
require "import_tf"
...

@tobidelbruck
Copy link

Thanks! That fixed it for me too. You need to restart (or otherwise reload) this useful tf_import package!
Then all I needed was techfile.tf and display.drf, both found in our vendors PDK installation (not in our main chip design cadence folder)

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

3 participants