python3.4 package missing threading module in trusty-security

Bug #1589288 reported by bugchecker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python3.4 (Ubuntu)
Expired
High
Unassigned

Bug Description

Someone forgot to add threading.py module in libpython3.4-mininal_3.4.0-2ubuntu1.1 package. I fail when trying to work with python3.4 in trusty-security environment.

How to reproduce:
1. Install new Ubuntu Trusty WITHOUT online updates or downgrade all packages to trusty-security.
2. Disable *-updates repositories, update apt cache:
# sed -i -e'/-updates/s/^/# /' /etc/apt/sources.list && apt-get update
3. Upgrade python3 packages:
# apt-get install python3 python3-minimal python3.4 python3.4-minimal libpython3.4-minimal libpython3.4-stdlib
4. Try to import threading module (will fail):
# python3 -c 'import threading'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'threading'

Without threading.py `pip3 install` and `add-apt-repository` will fail. Extended terminal output (including apt-cache policy) is in python3.4_trusty_bug_terminal_output.txt . This problem has occured in https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1503382/comments/4 , but hasn't been articulated or resolved.

I compared packages in security and updates and found significant differencies:
1. [debian/pymindeps.py] subprocess key in excluded_imports is threading in security and dummy_threading in updates.
2. [debian/PVER-minimal.README.Debian.in] Information about threading module differs.

I made patch libpython3.4-minimal_3.4.0-2ubuntu1.1custompatch1.patch and applied to python3.4_3.4.0-2ubuntu1.1 . The result is available in https://launchpad.net/~bugchecker/+archive/ubuntu/python3-threading-trusty-sec . This patch may be incorrect but it works for me.

Also I attached docker context for any experiments.

Revision history for this message
bugchecker (bugchecker) wrote :
Revision history for this message
bugchecker (bugchecker) wrote :
Revision history for this message
bugchecker (bugchecker) wrote :
description: updated
bugchecker (bugchecker)
summary: - python-3.4 package missing threading module in trusty-security
+ python3.4 package missing threading module in trusty-security
bugchecker (bugchecker)
description: updated
description: updated
bugchecker (bugchecker)
description: updated
bugchecker (bugchecker)
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "libpython3.4-minimal_3.4.0-2ubuntu1.1custompatch1.patch" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Mathew Hodson (mhodson)
Changed in python3.4 (Ubuntu):
importance: Undecided → High
bugchecker (bugchecker)
description: updated
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

I can't reproduce this issue at all. The threading module definitely is in the libpython3.4-stdlib package, for both the release pocket, and the -security pocket:

$ dpkg -c libpython3.4-stdlib_3.4.0-2ubuntu1_amd64.deb | grep threading.py
-rw-r--r-- root/root 48898 2014-04-11 10:13 ./usr/lib/python3.4/threading.py
-rw-r--r-- root/root 2815 2014-04-11 10:13 ./usr/lib/python3.4/dummy_threading.py

$ dpkg -c libpython3.4-stdlib_3.4.0-2ubuntu1.1_amd64.deb | grep threading.py
-rw-r--r-- root/root 2815 2015-06-19 11:33 ./usr/lib/python3.4/dummy_threading.py
-rw-r--r-- root/root 48898 2015-06-19 11:33 ./usr/lib/python3.4/threading.py

I've attempted to reproduce using the steps in the bug description, but it's working fine for me in a newly-installed trusty VM.

I'm not sure why you're seeing this issue. Your log file seems to indicate you have the libpython3.4-stdlib package installed, but the threading.py file is missing in your /usr/lib/python3.4 directory. That seems to be an issue in your environment, as that file is definitely in the package.

Are you able to reproduce this with a cleanly installed VM?

Changed in python3.4 (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

Unsubscribing sponsors while this is being investigated. Please re-subscribe once there's an agreed-upon patch.

Revision history for this message
bugchecker (bugchecker) wrote :

I found that apt cannot downgrade stdlib package. Only dpkg installation works. I don't know maybe it is apt bug. I reproduce it with a cleanly installed VM.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python3.4 (Ubuntu) because there has been no activity for 60 days.]

Changed in python3.4 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.