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

fix: python 3.8 compiled with libffi6 does not fit ubuntu 20.04 #56

Open
tristanrobert opened this issue Jan 10, 2022 · 0 comments
Open

Comments

@tristanrobert
Copy link

scalingo-20 is ubuntu 20.04 (focal) and libffi is 7.
python-buildpack installs v3.8 compiled with libffi6.

requirements with ofxparse 0.21 (latest) has error:

Collecting ofxparse==0.21
         Downloading ofxparse-0.21.tar.gz (53 kB)
         Preparing metadata (setup.py): started
         Preparing metadata (setup.py): finished with status 'error'
         ERROR: Command errored out with exit status 1:
          command: /app/.scalingo/python/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zu_8qni9/ofxparse_3a3f4dc08deb4d8793c9d5abf8d16581/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zu_8qni9/ofxparse_3a3f4dc08deb4d8793c9d5abf8d16581/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'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-xt67u2tf
              cwd: /tmp/pip-install-zu_8qni9/ofxparse_3a3f4dc08deb4d8793c9d5abf8d16581/
         Complete output (11 lines):
         Traceback (most recent call last):
           File "<string>", line 1, in <module>
           File "/app/.scalingo/python/lib/python3.8/site-packages/setuptools/__init__.py", line 18, in <module>
             from setuptools.dist import Distribution
           File "/app/.scalingo/python/lib/python3.8/site-packages/setuptools/dist.py", line 38, in <module>
             from setuptools import windows_support
           File "/app/.scalingo/python/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module>
             import ctypes
           File "/app/.scalingo/python/lib/python3.8/ctypes/__init__.py", line 7, in <module>
             from _ctypes import Union, Structure, Array
         ImportError: libffi.so.6: cannot open shared object file: No such file or directory

Is it possible to install python 3.8 compiled with libffi7 in ubuntu focal?

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

No branches or pull requests

1 participant