Skip to content

Add Python 3.13 support and Debian 13 compatibility#1038

Merged
DavidePrincipi merged 13 commits intomainfrom
sdl-7608
Jan 26, 2026
Merged

Add Python 3.13 support and Debian 13 compatibility#1038
DavidePrincipi merged 13 commits intomainfrom
sdl-7608

Conversation

@stephdl
Copy link
Contributor

@stephdl stephdl commented Jan 23, 2026

Summary

This PR adds support for Python 3.13 and Debian 13 to NS8 Core, while maintaining backward compatibility with Python 3.11 and Debian 12.

Changes

  • Python 3.13 support: Creates new requirements file (pyreq3_13.txt) with updated dependencies
  • Dynamic Python version detection: Modified installation script to automatically detect and use Python 3.13 if available, falling back to Python 3.11
  • Debian 13 compatibility: Updated platform detection to support both Debian 12 and Debian 13
  • Systemd configuration: Added XDG_STATE_HOME environment variable configuration for user sessions

Testing

  • Verified on systems with Python 3.13
  • Backward compatibility with Python 3.11 and Debian 12 maintained
  • All dependencies updated to stable versions compatible with Python 3.13

Related Issue

NethServer/dev#7608

Install on debian 13

apt install curl
curl https://raw.githubusercontent.com/NethServer/ns8-core/sdl-7608/core/install.sh > install.sh 
bash install.sh ghcr.io/nethserver/core:sdl-7608

@mrmarkuz
Copy link
Member

mrmarkuz commented Jan 23, 2026

On the settings page of WebTop or Mattermost following error on Debian 13 with a direct install of the new core is thrown:

Traceback (most recent call last):
  File "/home/webtop2/.config/actions/get-configuration/20readconfig", line 15, in <module>
    "request_https_certificate": agent.get_route(os.environ['MODULE_ID']).get('lets_encrypt', False),
                                 ^^^^^^^^^^^^^^^
AttributeError: module 'agent' has no attribute 'get_route'

Is it an issue with the new certificate workflow?

@stephdl
Copy link
Contributor Author

stephdl commented Jan 23, 2026

it should be good now, the main has been merged into this branch

@DavidePrincipi DavidePrincipi merged commit dde6798 into main Jan 26, 2026
3 checks passed
@DavidePrincipi DavidePrincipi deleted the sdl-7608 branch January 26, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Start test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants