15 Oct 2012, 13:49
Favicon_pragsmall

Robert G. (1 post)

Hello Guys,

In the couchdb section, when trying to run the import_from_jamendo.rb code, using the line:

zcat dbdump_artistalbumtrack.xml.gz | ruby import_from_jamendo.rb

there appears this error:

“import_from_jamendo.rb:78:in `on_end_element’: undefined method `force_encoding’ for 370255 (NoMethodError) from import_from_jamendo.rb:91:in `parse’ from import_from_jamendo.rb:91”

what could be causing this?

thank you.

Robert

16 Oct 2012, 16:49
Generic-user-small

Carlos Bergfeld (1 post)

In import_from_jamendo.rb, the following change may solve it.

From

@stack[-1][element] = @buffer.join.force_encoding('utf-8')

to
@stack[-1][element] = @buffer.join

Good luck!

  You must be logged in to comment