cbrunet / python-poppler

Python binding to Poppler-cpp pdf library
GNU General Public License v2.0
95 stars 15 forks source link

installation issue: can't build wheel for python-poppler #88

Open bzr1 opened 3 months ago

bzr1 commented 3 months ago

im runing on mac intel

the output is :

Defaulting to user installation because normal site-packages is not writeable Collecting python-poppler==0.3.0 Using cached python-poppler-0.3.0.tar.gz (823 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: python-poppler Building wheel for python-poppler (pyproject.toml) ... error ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3.6 /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/7z/f5yrvy6d489ctt6jnncd9yn40000gn/T/tmpgpdvlixh cwd: /private/var/folders/7z/f5yrvy6d489ctt6jnncd9yn40000gn/T/pip-install-oc4qvs72/python-poppler_d930c1d82b0346c29cf6165469df5d7f Complete output (85 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.6 creating build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/toc.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/pagetransition.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/destination.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/_version.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/pagerenderer.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/init.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/page.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/font.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/document.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/rectangle.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/embeddedfile.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/utilities.py -> build/lib.macosx-10.9-x86_64-3.6/poppler copying src/poppler/image.py -> build/lib.macosx-10.9-x86_64-3.6/poppler creating build/lib.macosx-10.9-x86_64-3.6/poppler/cpp copying src/poppler/cpp/init.py -> build/lib.macosx-10.9-x86_64-3.6/poppler/cpp running egg_info writing src/python_poppler.egg-info/PKG-INFO writing dependency_links to src/python_poppler.egg-info/dependency_links.txt writing top-level names to src/python_poppler.egg-info/top_level.txt reading manifest file 'src/python_poppler.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'src/python_poppler.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "setup.py", line 24, in run out = subprocess.check_output(["cmake", "--version"]) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 336, in check_output *kwargs).stdout File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 403, in run with Popen(popenargs, **kwargs) as process: File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in init restore_signals, start_new_session) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1344, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'

During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in main() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main json_out['return_val'] = hook(hook_input['kwargs']) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 262, in build_wheel metadata_directory) File "/private/var/folders/7z/f5yrvy6d489ctt6jnncd9yn40000gn/T/pip-build-env-_l32gwp0/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 231, in build_wheel wheel_directory, config_settings) File "/private/var/folders/7z/f5yrvy6d489ctt6jnncd9yn40000gn/T/pip-build-env-_l32gwp0/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir self.run_setup() File "/private/var/folders/7z/f5yrvy6d489ctt6jnncd9yn40000gn/T/pip-build-env-_l32gwp0/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 268, in run_setup self).run_setup(setup_script=setup_script) File "/private/var/folders/7z/f5yrvy6d489ctt6jnncd9yn40000gn/T/pip-build-env-_l32gwp0/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup exec(compile(code, file, 'exec'), locals()) File "setup.py", line 108, in zip_safe=False, File "/private/var/folders/7z/f5yrvy6d489ctt6jnncd9yn40000gn/T/pip-build-env-_l32gwp0/overlay/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(attrs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/var/folders/7z/f5yrvy6d489ctt6jnncd9yn40000gn/T/pip-build-env-_l32gwp0/overlay/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "setup.py", line 28, in run

TheMadMoose commented 5 days ago

Getting a similar issue. Tried several versions, still not working. PIP indicates its a problem with the package :S