You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple pip install jpegtran-cffi fails if cffi isn't installed already:
Downloading/unpacking jpegtran-cffi
Downloading jpegtran-cffi-0.5.tar.gz (42kB): 42kB downloaded
Running setup.py egg_info for package jpegtran-cffi
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_maik/jpegtran-cffi/setup.py", line 4, in <module>
import jpegtran.lib
File "jpegtran/__init__.py", line 1, in <module>
from jpegtran.transform import JPEGImage
File "jpegtran/transform.py", line 5, in <module>
import jpegtran.lib as lib
File "jpegtran/lib.py", line 9, in <module>
from cffi import FFI
ImportError: No module named cffi
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_maik/jpegtran-cffi/setup.py", line 4, in <module>
import jpegtran.lib
File "jpegtran/__init__.py", line 1, in <module>
from jpegtran.transform import JPEGImage
File "jpegtran/transform.py", line 5, in <module>
import jpegtran.lib as lib
File "jpegtran/lib.py", line 9, in <module>
from cffi import FFI
ImportError: No module named cffi
In the setup.py it is listed correctly as dependency but already at line 4 it tries to import jpegtran.lib which fails as it needs cffi.
The text was updated successfully, but these errors were encountered:
Setuptools has the "setup_requires" keyword that allows you to specify early
dependencies. But pip doesn't honor it. So I'm not sure it can be fixed. Pip
seems to install dependencies after the package itself. But setup.py would
need to have access to cffi to install the extension.
Argh, unhappiness :-( It seems that on this front, we cannot really
do better that what you did, which is to explain to the user that he
needs to run "pip install cffi" explicitly first...
However, another person on that mailing list thread seems to have found a rather hacky workaround, I'll see if I can use it in our case.
A simple
pip install jpegtran-cffi
fails if cffi isn't installed already:In the setup.py it is listed correctly as dependency but already at line 4 it tries to import jpegtran.lib which fails as it needs cffi.
The text was updated successfully, but these errors were encountered: