pdflib icon indicating copy to clipboard operation
pdflib copied to clipboard

Installation on macOS

Open waingram opened this issue 4 years ago • 0 comments

Hi — is this able to be installed on a mac? I'm getting errors when I try to pip install pdflib.

Collecting pdflib
  Using cached pdflib-0.1.2.tar.gz (49 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/local/anaconda3/envs/chapter-extraction/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/kp/03rd6_8x1835gg33z1lg18vm0000gp/T/pip-install-hx2shit4/pdflib_6966299fddf3403c86746bcd924e7ff7/setup.py'"'"'; __file__='"'"'/private/var/folders/kp/03rd6_8x1835gg33z1lg18vm0000gp/T/pip-install-hx2shit4/pdflib_6966299fddf3403c86746bcd924e7ff7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/kp/03rd6_8x1835gg33z1lg18vm0000gp/T/pip-pip-egg-info-a9e9_nrp
         cwd: /private/var/folders/kp/03rd6_8x1835gg33z1lg18vm0000gp/T/pip-install-hx2shit4/pdflib_6966299fddf3403c86746bcd924e7ff7/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/kp/03rd6_8x1835gg33z1lg18vm0000gp/T/pip-install-hx2shit4/pdflib_6966299fddf3403c86746bcd924e7ff7/setup.py", line 54, in <module>
        ext_modules=cythonize([poppler_ext]),
      File "/usr/local/anaconda3/envs/chapter-extraction/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 965, in cythonize
        module_list, module_metadata = create_extension_list(
      File "/usr/local/anaconda3/envs/chapter-extraction/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 815, in create_extension_list
        for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
      File "/usr/local/anaconda3/envs/chapter-extraction/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 114, in nonempty
        raise ValueError(error_msg)
    ValueError: 'pdflib/poppler.pyx' doesn't match any files

I have poppler installed and $POPPLER_ROOT exported.

waingram avatar Mar 12 '21 22:03 waingram