-
Notifications
You must be signed in to change notification settings - Fork 571
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
"pip install PyMuPDF" failed. Python 3.8.0 32 bit. #414
Comments
pip install PyMuPDF==1.16.7 worked, but the default one and latest didn't
|
The reason is: I have not created 32-bit wheels - as I previously did. |
Thanks for looking into this. |
Uff, that was a quick close 😮
|
Hi is there any plan to change in the future? I was just curious. I ran into the same error today and used the solution proposed and it seems to work. I just wanted to know in case we use this tool in the future. |
Yes, starting with the next version, I will again upload 32bit wheels. |
Hi, Firstly when I ran "pip install PyMuPDF" I got the error bellow: After several unsuccessful tries and errors installing all sorts of packages when I ran "python setup.py install" from PyMuPDF-master I got a slightly different error: I did all the steps on the links bellow, but nothing worked. Appreciate any help on this. |
I encountered the same issue today on Windows 10 (64 bits). Installing with: Error is: Complete error message: >pip install PyMuPDF
Collecting PyMuPDF
Downloading PyMuPDF-1.19.6.tar.gz (2.3 MB)
|████████████████████████████████| 2.3 MB 3.3 MB/s
Preparing metadata (setup.py) ... done
Building wheels for collected packages: PyMuPDF
Building wheel for PyMuPDF (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\sisr\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXX\\AppData\\Local\\Temp\\pip-install-zm7rmtay\\pymupdf_28f652253f8343bc9977d329e2eabc5a\\setup.py'"'"'; __file__='"'"'C:\\Users\\XXX\\AppData\\Local\\Temp\\pip-install-zm7rmtay\\pymupdf_28f652253f8343bc9977d329e2eabc5a\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\XXX\AppData\Local\Temp\pip-wheel-zituhdbr'
cwd: C:\Users\XXX\AppData\Local\Temp\pip-install-zm7rmtay\pymupdf_28f652253f8343bc9977d329e2eabc5a\
Complete output (19 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\fitz
copying fitz\__init__.py -> build\lib.win-amd64-3.6\fitz
copying fitz\fitz.py -> build\lib.win-amd64-3.6\fitz
copying fitz\utils.py -> build\lib.win-amd64-3.6\fitz
copying fitz\__main__.py -> build\lib.win-amd64-3.6\fitz
running build_ext
building 'fitz._fitz' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\fitz
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./mupdf/include -I./mupdf/include/mupdf -I./mupdf/thirdparty/freetype/include -IC:\ProgramData\Anaconda3\envs\sisr\include -IC:\ProgramData\Anaconda3\envs\sisr\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcfitz/fitz_wrap.c /Fobuild\temp.win-amd64-3.6\Release\fitz/fitz_wrap.obj
fitz_wrap.c
fitz/fitz_wrap.c(2755): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'fitz.h'ÿ: No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for PyMuPDF
Running setup.py clean for PyMuPDF
Failed to build PyMuPDF
Installing collected packages: PyMuPDF
Running setup.py install for PyMuPDF ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\sisr\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXX\\AppData\\Local\\Temp\\pip-install-zm7rmtay\\pymupdf_28f652253f8343bc9977d329e2eabc5a\\setup.py'"'"'; __file__='"'"'C:\\Users\\XXX\\AppData\\Local\\Temp\\pip-install-zm7rmtay\\pymupdf_28f652253f8343bc9977d329e2eabc5a\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\XXX\AppData\Local\Temp\pip-record-t9w9ajgr\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\sisr\Include\PyMuPDF'
cwd: C:\Users\XXX\AppData\Local\Temp\pip-install-zm7rmtay\pymupdf_28f652253f8343bc9977d329e2eabc5a\
Complete output (19 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\fitz
copying fitz\__init__.py -> build\lib.win-amd64-3.6\fitz
copying fitz\fitz.py -> build\lib.win-amd64-3.6\fitz
copying fitz\utils.py -> build\lib.win-amd64-3.6\fitz
copying fitz\__main__.py -> build\lib.win-amd64-3.6\fitz
running build_ext
building 'fitz._fitz' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\fitz
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./mupdf/include -I./mupdf/include/mupdf -I./mupdf/thirdparty/freetype/include -IC:\ProgramData\Anaconda3\envs\sisr\include -IC:\ProgramData\Anaconda3\envs\sisr\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcfitz/fitz_wrap.c /Fobuild\temp.win-amd64-3.6\Release\fitz/fitz_wrap.obj
fitz_wrap.c
fitz/fitz_wrap.c(2755): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'fitz.h'ÿ: No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\envs\sisr\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXX\\AppData\\Local\\Temp\\pip-install-zm7rmtay\\pymupdf_28f652253f8343bc9977d329e2eabc5a\\setup.py'"'"'; __file__='"'"'C:\\Users\\XXX\\AppData\\Local\\Temp\\pip-install-zm7rmtay\\pymupdf_28f652253f8343bc9977d329e2eabc5a\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\XXX\AppData\Local\Temp\pip-record-t9w9ajgr\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\sisr\Include\PyMuPDF' Check the logs for full command output. It is kind of weird that it seeks Visual Studio in the 32bits Program Files though. As one would expect, I did not install MuPDF, as it states here that "[New in PyMuPDF-1.20: there is no need to separately build or install MuPDF; the required MuPDF source code is already in the sdist and is automatically built into PyMuPDF.]". EDIT: it seems that my |
Python 3.6 is out of its lifespan and hence no longer supported with a wheel. Therefore pip will always try to install from sources. |
@JorjMcKie Thank you very much for the quick answer. Indeed, my bad, I was trying this on my personal windows computer, which I almost never use for programming, I didn't even notice that my Python was that old xD I should have read PyMuPDF installation page more thoroughly : "PyMuPDF does not support Python versions prior to 3.7". |
No problem at all. |
Describe the bug (mandatory)
-"pip install PyMuPDF" failed
To Reproduce (mandatory)
Your configuration (mandatory)
Python 3.8.0 32 bit. Windows 10 64 bit. Fitz package installed.
Additional context (optional)
The text was updated successfully, but these errors were encountered: