← Back to issue list

undefined symbol: _Py_RefTotal

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1675545
Type
issue
State
open
Author
~evarlast
Labels
—
Created
Updated
Closed
—

Current evaluation

User on snapcraft 2.27.1 (2018) asks whether the python plugin supports C extension modules with python-version: python2 after a Cheetah .so failed with 'undefined symbol: _Py_RefTotal'. Unanswered; py2 support no longer exists in snapcraft.

Suggested action: close stale

Reason: The report is against snapcraft 2.27.1 (2018) and is a support question ('Does the python plugin support C modules with python-version set to python2?') that received no maintainer response. The code path it targets no longer exists: current sources contain zero occurrences of 'python2' (grep across the tree), commit 958b58615 'plugins: remove the python2 and python3 plugin when using a base (#2325)' plus 319b27a82 'remove py2 and 3 plugs' deleted the py2/py3 plugins, and ffb164b7a 'chore: remove snapcraft_legacy' removed the 2.x-era codebase this was filed against; today's PythonPlugin is a thin wrapper over craft-parts' python3-only plugin. With Python 2 EOL and the legacy plugin permanently removed, there is nothing left to fix or answer.

Evaluated by: mr-cal-bot

Impact: 10 Quick Win: 0 Complexity: 65 Confidence: 88 Actionability: 10

Issue body

snapcraft v. 2.27.1 python2 module. snapcraft.yaml like this: parts: charm-tools: source: https://github.com/juju/charm-tools.git source-tag: v2.2.0 plugin: python python-version: python3 build-packages: - build-essential - python3-dev python-packages: - urllib3 - simplejson stage-packages: - git - bzr - mercurial The Cheetah python package builds a C module Cheetah._namemapper.so. This C module claims undefined symbols when loading in snap context: ImportError: /snap/charm/x5/lib/python2.7/site-packages/Cheetah/_namemapper.so: undefined symbol: _Py_RefTotal Does the python plugin support C modules with python-version set to python2?

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 10
Quick Win: 0
Complexity: 65
Confidence: 88
Actionability: 10
close stale User on snapcraft 2.27.1 (2018) asks whether the python plugin supports C extension modules with python-version: python2 after a Cheetah .so failed with 'undefined symbol: _Py_RefTotal'. Unanswered; py2 support no longer exists in snapcraft.
stealth/space-bunny-alpha
Impact: 10
Quick Win: 0
Complexity: 85
Confidence: 88
Actionability: 20
close stale Report from snapcraft 2.27.1: C extension fails with undefined symbol _Py_RefTotal because python-version: python2 is unsupported. python-version and the python2 plugin were removed long ago; plugin is now Python 3.10/3.12 only. No maintainer reply since 2018.
qwen/qwen3.6-35b-a3b
Impact: 0
Quick Win: 0
Complexity: 0
Confidence: 95
Actionability: 0
close stale User asks about Python 2 C module support in snapcraft v2.27.1. Error indicates build mismatch. Issue is 9 years old and Python 2 is EOL.
qwen/qwen3.8-27b
Impact: 10
Quick Win: 6
Staleness: 98
Complexity: 35
Confidence: 70
Support Request: 80
close stale Reports undefined symbol _Py_RefTotal when loading the Cheetah C extension built for python2 inside a snap, asking whether the python plugin supports python2 C modules. No labels, no comments, no maintainer response; ~9.4 years old and python2 is EOL.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 95
Support Request: 40
close stale Reports a build/runtime error with snapcraft 2.27.1 where a Python 2 C extension fails to load due to an undefined _Py_RefTotal symbol. Issue is 9 years old, unlabelled, and has no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 20
Confidence: 90
Support Request: 80
close stale Snapcraft python plugin fails to build C extensions for Python 2, reporting undefined symbol _Py_RefTotal. Issue is 9 years old, unlabelled, and has zero maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 92
Support Request: 75
close stale Report about C extension build failure with Python 2 in snapcraft v2.27.1. Open for 9+ years with no maintainer response. Python 2 is deprecated and the tool version is long outdated.

Update history

Date Change
created

Related work

  • Related To: canonical/snapcraft#2325 (confidence 70%)

    Commit 958b58615 'plugins: remove the python2 and python3 plugin when using a base (#2325)' removed the plugin family this issue asks about, so the question is no longer applicable to current snapcraft.

Related issues

No related issues found above the similarity threshold.