apple_cloud_notes_parser icon indicating copy to clipboard operation
apple_cloud_notes_parser copied to clipboard

database.rb:199:in `execute': wrong number of arguments (given 3, expected 1..2) (ArgumentError)

Open AlexGrafe opened this issue 6 months ago • 7 comments

Describe the bug Running ruby notes_cloud_ripper.rb --mac ../Backup\ 2024.07 (pointing to a specific directory of the Apple Notes backup), returns error

Starting Apple Notes Parser at Fri Aug  2 15:06:33 2024
Storing the results in ./output/2024_08_02-15_06_33

Created a new AppleBackup from Mac backup: ../Backup 2024.07
Guessed Notes Version: 17
/Users/myUsername/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/sqlite3-2.0.3-arm64-darwin/lib/sqlite3/database.rb:199:in `execute': wrong number of arguments (given 3, expected 1..2) (ArgumentError)
	from /Users/myUsername/Development/apple_cloud_notes_parser-0.16.2/lib/AppleNoteStore.rb:689:in `rip_notes'
	from /Users/myUsername/Development/apple_cloud_notes_parser-0.16.2/lib/AppleNoteStore.rb:232:in `rip_all_objects'
	from /Users/myUsername/Development/apple_cloud_notes_parser-0.16.2/lib/AppleBackup.rb:243:in `block in rip_notes'
	from /Users/myUsername/Development/apple_cloud_notes_parser-0.16.2/lib/AppleBackup.rb:240:in `each'
	from /Users/myUsername/Development/apple_cloud_notes_parser-0.16.2/lib/AppleBackup.rb:240:in `rip_notes'
	from notes_cloud_ripper.rb:194:in `<main>'

To Reproduce As above

Expected behavior Should have run normally.

Screenshots None

Desktop (please complete the following information):

  • OS: macOS
  • Version: Sonoma 14.5
  • Ruby Version: ruby 3.3.4 (2024-07-09 revision be1089c8ec) [arm64-darwin23] (through rbenv)

Smartphone Source (please complete the following information, if applicable): None

Command used ruby notes_cloud_ripper.rb --mac ../Backup\ 2024.07

Please confirm the following

  • Error occurs on the latest version of this program on GitHub: Y
  • You have run bundle install: Y

Additional context None

AlexGrafe avatar Aug 02 '24 13:08 AlexGrafe