Python: Why can't I use pandoc in replit like I can when I use jupyter notebook?

I am moving over some projects from my jupyter notebook to replit and I’m testing out this scraper I built with Chat-GPT, but the code runs into an error. Any thoughts?

Traceback (most recent call last):
  File "main.py", line 291, in <module>
    breezy_jobs_to_airtable(company)
  File "main.py", line 236, in breezy_jobs_to_airtable
    p = subprocess.Popen(['pandoc', '--from=html', '--to=markdown'],
  File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/subprocess.py", line 1847, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pandoc'

Here’s a link to my repli: https://replit.com/@MarkYi1/EdTech-Jobs-Scraper?v=1

Hey, @MarkYi1! Welcome to the community!

It seems that some of the files that allow python to run did not load correctly or was not even installed.

You can try re-transfering the projects again with a better internet connection or manually install the missing files.

2 Likes

@MarkYi1 Try adding pandoc using nixpkgs.

2 Likes