I am sorry, Jay. I am not quite sure what you mean by that? Could you please give me some pointers here? I hope that you don’t mean by rewriting the importer script of question2answer.
If I can log in remotely to the machine where you’re running the import it’ll help, as I’ll be able to see whether it works without sending it to you, having you import, tell me what’s wrong, and trying again.
It seems the question2answer importer was written for a case where there is an additional set of tables in the database for another app that was integrated with it. That is what the MAIN_APP_DB_NAME refers to.
We have done an import for a standalone q2a site recently and we have a modified version of the script which does not depend on this extra database. @RGJ was going to clean it up and submit it back in the next few weeks.
正在加载现有群组...
正在加载现有用户...
正在加载现有分类...
正在加载现有帖子...
正在加载现有主题...
正在导入用户
**回溯**(最近一次调用在前):
11: from script/import_scripts/question2answer.rb:601:in `<main>'
10: from /var/www/discourse/script/import_scripts/base.rb:47:in `perform'
9: from script/import_scripts/question2answer.rb:70:in `execute'
8: from script/import_scripts/question2answer.rb:89:in `import_users'
7: from /var/www/discourse/script/import_scripts/base.rb:881:in `batches'
6: from /var/www/discourse/script/import_scripts/base.rb:881:in `loop'
5: from /var/www/discourse/script/import_scripts/base.rb:882:in `block in batches'
4: from script/import_scripts/question2answer.rb:106:in `block in import_users'
3: from /var/www/discourse/script/import_scripts/base.rb:247:in `create_users'
2: from /var/www/discourse/script/import_scripts/base.rb:247:in `each'
1: from /var/www/discourse/script/import_scripts/base.rb:278:in `block in create_users'
/var/www/discourse/script/import_scripts/base.rb:866:in `print_status': **undefined method `to_f' for #<Mysql2::Result:0x000056370b7c1f80> (** **NoMethodError** **)**
**可能的替代方法:to_s**
**to_a**
**to_h**