You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, with python <= 3.11, a deprecation warning is issued when instantiating SafeConfigParser object.
SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
In python 3.12+, it now fails as it has been removed and this library can no longer work on Ubuntu 24.04 as it uses python3.12:
$ python setup.py --command-packages=stdeb.command bdist_deb
Traceback (most recent call last):
File "<...>/setup.py", line 5, in <module>
from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
(.venv) alexandre@alexandre-ThinkPad-X1-Carbon-Gen-9:~/ws/wedge-agent-oss-playground/src/python-wedge-sdk$ pip install setuptools
Collecting setuptools
Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
Using cached setuptools-75.8.0-py3-none-any.whl (1.2 MB)
Installing collected packages: setuptools
Successfully installed setuptools-75.8.0
(.venv) alexandre@alexandre-ThinkPad-X1-Carbon-Gen-9:~/ws/wedge-agent-oss-playground/src/python-wedge-sdk$ python setup.py --command-packages=stdeb.command bdist_deb
running bdist_deb
running sdist_dsc
running egg_info
writing wedge.egg-info/PKG-INFO
writing dependency_links to wedge.egg-info/dependency_links.txt
writing top-level names to wedge.egg-info/top_level.txt
reading manifest file 'wedge.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'wedge.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "<...>/setup.py", line 44, in <module>
setup(
File "<...>/.venv/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<...>/.venv/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "<...>/.venv/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "<...>/.venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
self.run_command(cmd)
File "<...>/.venv/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "<...>/.venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "<...>/.venv/lib/python3.12/site-packages/stdeb/command/bdist_deb.py", line 34, in run
self.run_command('sdist_dsc')
File "<...>/.venv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
self.distribution.run_command(command)
File "<...>/.venv/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "<...>/.venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "<...>/.venv/lib/python3.12/site-packages/stdeb/command/sdist_dsc.py", line 30, in run
debinfo = self.get_debinfo()
^^^^^^^^^^^^^^^^^^
File "<...>/.venv/lib/python3.12/site-packages/stdeb/command/common.py", line 197, in get_debinfo
debinfo = DebianInfo(
^^^^^^^^^^^
File "<...>/.venv/lib/python3.12/site-packages/stdeb/util.py", line 804, in __init__
cfg = ConfigParser.SafeConfigParser(cfg_defaults)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
Resolution
Replace SafeConfigParser with ConfigParser or handle pre python3.2 configparser version.
The text was updated successfully, but these errors were encountered:
Situation
Currently, with python <= 3.11, a deprecation warning is issued when instantiating
SafeConfigParser
object.In python 3.12+, it now fails as it has been removed and this library can no longer work on Ubuntu 24.04 as it uses python3.12:
Resolution
Replace
SafeConfigParser
withConfigParser
or handle pre python3.2 configparser version.The text was updated successfully, but these errors were encountered: