Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/Library/Ruby/Gems/2.6.0/gems/pandoc-ruby-2.1.7/lib/pandoc-ruby.rb:306:in `execute': pandoc: input/roam/: withBinaryFile: does not exist (No such file or directory) (RuntimeError) #4

Open
gatlee opened this issue Aug 9, 2023 · 4 comments

Comments

@gatlee
Copy link

gatlee commented Aug 9, 2023

Followed all the steps. Running convert.rb fails

❯ ./convert.rb                                                                                                                                                    ~/Documents/sources/orgroam_to_obsidian
/Library/Ruby/Gems/2.6.0/gems/pandoc-ruby-2.1.7/lib/pandoc-ruby.rb:306:in `execute': pandoc: input/roam/: withBinaryFile: does not exist (No such file or directory) (RuntimeError)
	from /Library/Ruby/Gems/2.6.0/gems/pandoc-ruby-2.1.7/lib/pandoc-ruby.rb:275:in `execute_pandoc'
	from /Library/Ruby/Gems/2.6.0/gems/pandoc-ruby-2.1.7/lib/pandoc-ruby.rb:269:in `convert_string'
	from /Library/Ruby/Gems/2.6.0/gems/pandoc-ruby-2.1.7/lib/pandoc-ruby.rb:205:in `convert'
	from /Library/Ruby/Gems/2.6.0/gems/pandoc-ruby-2.1.7/lib/pandoc-ruby.rb:241:in `block (2 levels) in <class:PandocRuby>'
	from ./convert.rb:39:in `input_file_to_md'
	from ./convert.rb:17:in `initialize'
	from ./convert.rb:61:in `new'
	from ./convert.rb:61:in `block in initialize'
	from ./convert.rb:60:in `each'
	from ./convert.rb:60:in `initialize'
	from ./convert.rb:96:in `new'
	from ./convert.rb:96:in `<main>'
@CharlesEkkel
Copy link
Contributor

Could you print out the contents of input and input/roam? If I were to guess, it seems like the roam folder is missing? Perhaps you've copied the contents of the roam folder directly into input/?

@goshatch
Copy link
Owner

goshatch commented Dec 2, 2023

I'm going to close this issue for now. If anyone else runs into this issue, please let me know and I will reopen it.

@goshatch goshatch closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2023
@hakanserce
Copy link

I ran into the same issue, and in my case the problem was this line

@input_file ||= "input/roam/#{@row.file.partition('roam/').last}"

Note that here the code doesn't only expect the files to be under input/roam folder, but also expects the original files to be under a roam subfolder somewhere. In my case, my files where under a differently named folder, so changing that in the code fixed the issue. Taking original org-roam folder path as an argument and using that instead of expecting the name to be roam would fix the issue.

@goshatch goshatch reopened this Dec 21, 2023
@goshatch
Copy link
Owner

Thank you @hakanserce! Would you be willing to prepare a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants