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

[SR-11566] can't install python in the swift docker image #287

Open
kevints mannequin opened this issue Oct 3, 2019 · 3 comments
Open

[SR-11566] can't install python in the swift docker image #287

kevints mannequin opened this issue Oct 3, 2019 · 3 comments

Comments

@kevints
Copy link
Mannequin

kevints mannequin commented Oct 3, 2019

Previous ID SR-11566
Radar None
Original Reporter @kevints
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Docker
Labels Bug
Assignee None
Priority Medium

md5: f0bd5ba8d7b9a3b6aad25bfd68c4d670

Issue Description:

The swift toolchain comes with some Python bindings for LLDB, but the docker image is laid out in a way that makes using them impossible. If you run apt update && apt install python in the docker image you get the following error:

Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.15-4ubuntu4~18.04.1 [1293 kB]
Fetched 1293 kB in 0s (9272 kB/s)         
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 20262 files and directories currently installed.)
Preparing to unpack .../python2.7-minimal_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
new installation of python2.7-minimal; /usr/lib/python2.7/site-packages is a directory
which is expected a symlink to /usr/local/lib/python2.7/dist-packages.
please find the package shipping files in /usr/lib/python2.7/site-packages and
file a bug report to ship these in /usr/lib/python2.7/dist-packages instead
aborting installation of python2.7-minimal
dpkg: error processing archive /var/cache/apt/archives/python2.7-minimal_2.7.15-4ubuntu4~18.04.1_amd64.deb (--unpack):
 new python2.7-minimal package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python2.7-minimal_2.7.15-4ubuntu4~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems like we need to install the lldb bindings elsewhere

@belkadan
Copy link

belkadan commented Oct 4, 2019

@shahmishal, is this for you?

@swift-ci
Copy link

Comment by David Jones (JIRA)

I think this is a duplicate of https://bugs.swift.org/browse/SR-10344

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from swiftlang/swift May 5, 2022
@MaxDesiatov
Copy link
Contributor

MaxDesiatov commented Dec 7, 2022

@shahmishal I think this can be closed.

This is not reproducible with either swift:5.7-bionic or swift:5.7-jammy. Both apt update && apt install -y python3 and apt update && apt install -y python2 run successfully for me with these images.

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

No branches or pull requests

3 participants