SMF2 Import error

Hello, I am not sure where to begin to troubleshoot this. I’m following this guide and running the import script at this point.

su discourse -c "bundle exec ruby script/import_scripts/smf2.rb ...

Traceback (most recent call last):
6: from script/import_scripts/smf2.rb:627:in `<main>'
5: from script/import_scripts/smf2.rb:19:in `run'
4: from script/import_scripts/smf2.rb:447:in `parse!'
3: from script/import_scripts/smf2.rb:502:in `parser'
2: from script/import_scripts/smf2.rb:502:in `new'
1: from /usr/local/lib/ruby/2.6.0/optparse.rb:1089:in `initialize'
script/import_scripts/smf2.rb:504:in `block in parser': can't modify frozen String (FrozenError)
2 Likes

It seems like removing a recent commit in Github allowed the import to function.

2: # frozen_string_literal: true

2 Likes

Hi, how are you resolve this problem?

up
Ok. I set false and that works)