# Disqus importer fails - undefined method

**URL:** <https://meta.discourse.org/t/disqus-importer-fails-undefined-method/36200>\
**Category:** Bug\
**Created:** [1 ديسمبر 2015، 2:54م UTC](https://meta.discourse.org/t/disqus-importer-fails-undefined-method/36200 "2015-12-01T14:54:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![yyhmsg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yyhmsg/32/115542_2.png) [@yyhmsg](https://meta.discourse.org/u/yyhmsg)\
**Post date:** [1 ديسمبر 2015، 2:54م UTC](https://meta.discourse.org/t/disqus-importer-fails-undefined-method/36200/1 "2015-12-01T14:54:22Z")

</div>

This may very well be something that I’m doing wrong, but I have a dev setup of discourse on vagrant (that is running fine). I’m now trying to use the disqus.rb import script to bring in my disqus xml comments dump.

Here is what I get:

> ruby disqus.rb --file=/vagrant/disqus-forumfixes.xml --post\_as=eviltrout --dry\_run

```
disqus.rb:155:in `block in normalize': undefined method `strip!' for nil:NilClass (NoMethodError)
	from disqus.rb:148:in `each'
	from disqus.rb:148:in `normalize'
	from disqus.rb:13:in `initialize'
	from disqus.rb:198:in `new'
	from disqus.rb:198:in `<main>'

```

Thinking that the error could be sidestepped by adding something for --strip, I tried the following and got:

> ruby disqus.rb --file=/vagrant/disqus-forumfixes.xml --post\_as=eviltrout --dry\_run --strip=‘juxtapose’

```
disqus.rb:154:in `block in normalize': undefined method `gsub!' for nil:NilClass (NoMethodError)
	from disqus.rb:148:in `each'
	from disqus.rb:148:in `normalize'
	from disqus.rb:13:in `initialize'
	from disqus.rb:198:in `new'
	from disqus.rb:198:in `<main>'

```

Is there something obvious I’m missing? Any guidance on getting this script to run would be greatly appreciated.

---

_[View the full topic](https://meta.discourse.org/t/disqus-importer-fails-undefined-method/36200)._
