zipline icon indicating copy to clipboard operation
zipline copied to clipboard

wrong number of arguments (given 2, expected 0)

Open OGsoundFX opened this issue 4 years ago • 6 comments

I have been looking around for solutions but couldn't find any. I hope it's OK to ask here. I have been getting this error message while trying to implement zipline: wrong number of arguments (given 2, expected 0)

Here is my very simple method, as stated in the readme file: require 'zipline'

def zipline tracks = [['https://www.ogsoundfx.com/NeWsfXsHoPbAmSfx/testing/Aggressive_Beast_1.mp3', "Aggressive_Beast_1.mp3"], ['https://www.ogsoundfx.com/NeWsfXsHoPbAmSfx/testing/Aggressive_Beast_2.mp3', "Aggressive_Beast_2.mp3"], ['https://www.ogsoundfx.com/NeWsfXsHoPbAmSfx/testing/Aggressive_Beast_3.mp3', "Aggressive_Beast_1.mp3"]] zipline(tracks, 'tracks.zip') end

Sorry if this is a stupid question, I am pretty new to all this. Thanks! Olivier

OGsoundFX avatar Mar 29 '21 14:03 OGsoundFX

@OGsoundFX This is probably it. https://github.com/fringd/zipline/issues/75

In the meantime, I'd recommend using https://github.com/WeTransfer/zip_tricks, which powers zipline.

Petercopter avatar Apr 06 '21 00:04 Petercopter

Thank you very much I will definitely look into that!

OGsoundFX avatar Apr 09 '21 08:04 OGsoundFX

I have the same issue. @OGsoundFX did you ever solve this? 👀

courtsimas avatar Sep 10 '22 05:09 courtsimas

No I didn't, I ended up using rubyzip gem instead :)

OGsoundFX avatar Sep 10 '22 17:09 OGsoundFX

I’ll have to do the same. Thanks @OGsoundFX

courtsimas avatar Sep 10 '22 17:09 courtsimas

Let me know if you run into any problems. I haven't touched that part of the code in a long time but maybe I can help :)

OGsoundFX avatar Sep 10 '22 18:09 OGsoundFX