8000 Ubuntu 20.10: references to old Ubuntu packages · Issue #188 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content
Ubuntu 20.10: references to old Ubuntu packages #188
Closed
@tobiasdiez

Description

@tobiasdiez

Describe the bug
On Ubuntu 20.10 the Python installation is referencing some old Ubuntu packages that are missing. In more detail, if used with

container: 
      image: ubuntu:20.10

then one gets errors such as

     Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/__w/sagetrac-mirror/sagetrac-mirror/src/.venv/lib/python3.8/site-packages/setuptools/__init__.py", line 18, in <module>
        from setuptools.dist import Distribution
      File "/__w/sagetrac-mirror/sagetrac-mirror/src/.venv/lib/python3.8/site-packages/_virtualenv.py", line 89, in exec_module
        old(module)
      File "/__w/sagetrac-mirror/sagetrac-mirror/src/.venv/lib/python3.8/site-packages/setuptools/dist.py", line 32, in <module>
        from setuptools import windows_support
      File "/__w/sagetrac-mirror/sagetrac-mirror/src/.venv/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module>
        import ctypes
      File "/__t/Python/3.8.7/x64/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

or

import readline
ImportError: libreadline.so.7: cannot open shared object file: No such file or directory

These can be fixed by manually downloading the corresponding packages from the old Ubuntu distribution, e.g. bionic.

Which version of the action are you using?

  • v1
  • v2
  • Some other tag (such as v2.0.1 or master)

Environment

  • self-hosted
  • Linux
  • Windows
  • Mac

If applicable, please specify if you're using a container: ubuntu:20.10

Python Versions
3.8 and 3.9, at least

To Reproduce
Steps to reproduce the behavior:

  1. Use setup-python in a ubuntu:20.10 container
  2. Import something from _ctypes or readline
  3. Get error

Run/Repo Url
https://github.com/sagemath/sagetrac-mirror/runs/1870813916?check_suite_focus=true
and
https://github.com/sagemath/sagetrac-mirror/runs/1862181456?check_suite_focus=true

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0