Skip to content
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

Package not installing under ActiveState Python 2.7.13 32bit #424

Closed
ignaciordc opened this issue Dec 27, 2019 · 6 comments
Closed

Package not installing under ActiveState Python 2.7.13 32bit #424

ignaciordc opened this issue Dec 27, 2019 · 6 comments
Assignees
Labels

Comments

@ignaciordc
Copy link

Package not installing under ActiveState Python 2.7.13 32bit

Typing "pip install PyMuPDF" under Python 2.7.13 I get the following error:

Building wheel for PyMuPDF (setup.py)
ERROR:
...
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./mupdf/include -I./mupdf/include/mupdf -IC:\Python32\include -IC:\Python32\PC /Tc./fitz/fitz_wrap.c /Fobuild\temp.win32-2.7\Release./fitz/fitz_wrap.obj
fitz_wrap.c
c:\python32\include\pyport.h(190) : fatal error C1189: #error : "Python needs a typedef for Py_ssize_t in pyport.h."

@JorjMcKie
Copy link
Collaborator

I am no longer uploading wheels for 32bit Python versions.
So your pip tries to generate the package from sources. Which in turn won't work without MuPDF being installed.

Please use a 64bit Python.
I am also recommending to upgrade to Python version 3.

However, if you have absolutely no way to do any of this I am willing to send you a 32bit wheel.

@ignaciordc
Copy link
Author

ignaciordc commented Dec 27, 2019 via email

@ignaciordc
Copy link
Author

ignaciordc commented Dec 27, 2019 via email

@JorjMcKie
Copy link
Collaborator

Por favor, descargalo de aquí: https://github.com/pymupdf/PyMuPDF/releases/tag/1.16.10

@ignaciordc
Copy link
Author

ignaciordc commented Dec 27, 2019 via email

@JorjMcKie
Copy link
Collaborator

Not sure if I fully understand.
PyMuPDF only supports 3 colorspaces, gray, rgb and cmyk i.e. 1, 3 or 4 bytes per pixel). Each with or without transparency.
It makes no assumption like you are indicating.

The versions I am currently publishing also contain no ICC support (although this would be possible in MuPDF). The main reason for this is that in rare occasions (of ill structured PDFs), the sublibrary will bring down the Python interpreter - and I have yet not found a way to prevent this.
This support gap only has minor consequences, see #397.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants