-
Notifications
You must be signed in to change notification settings - Fork 551
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
PyMuPDF Installation Error in cPanel #2671
Comments
Thanks for the bug report. It looks like your system's C compiler thinks this code is redefining typedef 'fz_link' in MuPDF's include/mupdf/fitz/link.h:
I've never seen this on any of our test systems, so i wonder whether you could post the exact details of your C compiler - e.g. with [It's possible that we can avoid the error my modifying the above MuPDF code, changing |
Thank you for answering my question! Here's my C compiler version: |
Ok, that's really old. I don't think you're going to be able to build MuPDF or PyMuPDF unless you get a much newer compiler. Incidently, how come pip is trying to build from source instead of using a pre-built PyMuPDF wheel? There are wheels for Linux/x86_64. |
@yamina118 - any news on your problem? |
@JorjMcKie I will try to update my C compilers. To do so, I need to buy a VPS. I anticipate completing this task within the next week. I'll keep you posted on the progress. Thank you for your time and assistance! Should I close the issue? |
We actually had hoped that you can find a wheel on PyPI that suits your needs. We don't understand yet, why your Python / pip triggered an installation from sources. If you haven't: can you repeat the installation by first upgrading pip, then installing pymupdf? |
I wonder if @yamina118's system (e.g. glibc) is too old for PyMuPDF's manylinux2014 wheels. https://github.com/pypa/manylinux has information on what systems are compatible with manylinux2014 wheels. @yamina118 - what is the output of |
@julian-smith-artifex-com the output of |
Ok, i think your system is too old to work with PyMuPDF wheels, which are built with the
Also, i'm not sure you'll be able to build PyMuPDF from source even if you somehow manage to upgrade your compilers - e.g. the build automatically installs the swig and libclang packages, which in turn may not install or build themselves. So i think you need to upgrade your system. I'll close this bug now, but feel free to post again if you have more questions. |
0
I'm currently working on a Python project that involves PyMuPDF for PDF processing. I've successfully written the Python script and have it running as expected on my local development environment. Now, I'm in the process of deploying this script on cPanel. When I attempt to install Pymupdf within the cPanel terminal using the command "pip install pymupdf," I encountered the following error:
I've already upgraded pip, setuptools, and wheel using the command "pip install --upgrade pip setuptools wheel" but still get the same error. also tried pip install --only-binary=numpy numpy and pip install --only-binary=pymupdf pymupdf and pip install --only-binary=fitz fitz .
When I searched, I found that maybe I should install python-devel. However, I don't have access to use the sudo command in cPanel terminal. Are there any other solutions that I can try?
The text was updated successfully, but these errors were encountered: