Bug 394155

Summary: python-twisted 17 needs python-attr 17
Product: [KDE Neon] neon Reporter: devel
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bryantdl7, jmb.kde, jr, neon-bugs-null, sitter
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description devel 2018-05-12 07:11:20 UTC
KDE Neon: 5.12

Please, read the discussion at https://github.com/Epoptes/epoptes/issues/55
Comment 1 James Beckett 2018-05-31 00:20:34 UTC
Also seen when installing for example graphite-carbon. Typical traceback:

>   File "/usr/lib/python2.7/dist-packages/carbon/service.py", line 18, in <module>
>     from twisted.application.internet import TCPServer, TCPClient, UDPServer
>   File "/usr/lib/python2.7/dist-packages/twisted/application/internet.py", line 54, in <module>
>     from automat import MethodicalMachine
>   File "/usr/lib/python2.7/dist-packages/automat/__init__.py", line 2, in <module>
>     from ._methodical import MethodicalMachine
>   File "/usr/lib/python2.7/dist-packages/automat/_methodical.py", line 34, in <module>
>     @attr.s(frozen=True)
> exceptions.TypeError: attributes() got an unexpected keyword argument 'frozen'

The root cause seems to be one step away from Twisted: python-twisted-code 17.9.0 depends python-automat>=0.6.0 depends python-attr, it's the latter which is broken. Twisted 16.x from xenial doesn't depend on automat at all, hence it escapes.

https://github.com/glyph/automat/issues/65 describes the issue:
> The patch for #62 in 3766391 that passes the frozen keyword to attr.s assumes attrs>=16.1.0 per python-attrs/attrs@cfa6d2e.

The initial patch for #62 made it into automat-0.6.0 (a year ago) but the fix in https://github.com/glyph/automat/pull/66 didn't, and there's been no point release since: https://github.com/glyph/automat/releases

My local workaround for now has been to downgrade Twisted to 16.0.0-1ubuntu0.2 (from xenial repo) and hold them.
Comment 2 BRYANTDL7 2025-09-09 16:04:06 UTC
This ticket has been archived due to the age of this request, in order to keep currently present issues at the forefront for proper resolution. If this issue is still present, please reopen this ticket and provide additional details related to the request.