You are not logged in.

#1 2010-01-04 16:13:26

luuuciano
Member
Registered: 2007-01-27
Posts: 310

[solved] ruby script do not work (in arch)

Hi!
I want to change my csv blinklist exported data to a html bookmarks format (to import it to delicious)

I installed ruby, and used this script: http://rubenlaguna.com/wp/2010/01/03/mi … v-to-html/

but it shows this error:

$ ruby change.rub
/usr/lib/ruby/1.9.1/csv.rb:1329:in `initialize': can't convert String into Integer (TypeError)
        from /usr/lib/ruby/1.9.1/csv.rb:1329:in `open'
        from /usr/lib/ruby/1.9.1/csv.rb:1329:in `open'
        from change.rub:18:in `block in <main>'
        from change.rub:6:in `open'
        from change.rub:6:in `<main>'


the csv file looks like this:
http://pastebin.ca/1737483

any idea what is wrong?

friends, that do not uses arch, tested it and it worked in their machines...

Last edited by luuuciano (2010-01-04 19:15:35)


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#2 2010-01-04 18:51:04

Bralkein
Member
Registered: 2004-10-26
Posts: 354

Re: [solved] ruby script do not work (in arch)

Hi, the problem is that Arch Linux uses the newer Ruby 1.9.x version which is incompatible with that script. I have tried to fix the script for you, it seems to work but I don't even know what delicious is so you'll have to just try it and see tongue
http://pastebin.ca/1737706

Offline

#3 2010-01-04 19:15:12

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: [solved] ruby script do not work (in arch)

wow, thanks a lot Bralkein!

I have changed it a bit, to include the description field
http://pastebin.ca/1737736

Then I have tested it importing the bookmarks.html to delicious and it works!

thanks a lot!
now I can save all my blinks (blinklist service is dying)


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

Board footer

Powered by FluxBB