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

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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

One other thought, can you please try rake test to see if any tests fail out?

Thanks, I’ll take a look. I edited your comment to remove the protobuff output from it.

Thanks a lot. I’m on vacation and will check next week once I’m back. 🏝️

Ok, I thought this looked familiar. It is the same issue as #111, although there the focus was on creating a Gemfile. I recall while digging into this I also was poking at how to fix the error regardless of the versioning, but never got around to committing that because I wanted to make sure I was happy it wouldn’t introduce other bugs. I’ll leave both of these tickets open to shame me into fixing it.

Thanks for sharing this. I will give it a test on my Mac to reproduce. Personal issues have taken me away from this project for a little bit, so it wouldn’t surprise me if a few of the changes I had in the works need to be pushed to fix this.