[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Import issues with Python310 pre-releases due to CPython changes
From:       Thomas Caswell <tcaswell () gmail ! com>
Date:       2021-06-07 12:57:20
Message-ID: CAA48SF_-JcM9ZiGbgazUa95yi=MGW5KbvLatEGoF7VUX31vBvw () mail ! gmail ! com
[Download RAW message or body]

Folks,

There were changes in the default behavior of IntEnum and it's subclasses
in Python 3.10.0a5 release that caused class-definition-time errors if all
of the single-bit flags were not named.  This breaks PyQt6 and a number of
other projects and is being treated as a regression/release blocker by
upstream [1].  I do not think any action is needed on the PyQt6 side.

See [2][3] for details about the change that caused this regression.

Python 3.10.0b2+ (heads/3.10:d0991e2db3, Jun  1 2021, 11:42:08) [GCC
11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt6.QtCore
>>> PyQt6.QtCore.PYQT_VERSION_STR
'6.1.1.dev2105301600'
>>> PyQt6.QtCore.Qt.Key
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/tcaswell/.pybuild/bleeding/lib/python3.10/enum.py", line 615,
in __call__
    return cls._create_(
  File "/home/tcaswell/.pybuild/bleeding/lib/python3.10/enum.py", line 762,
in _create_
    return metacls.__new__(metacls, class_name, bases, classdict,
boundary=boundary)
  File "/home/tcaswell/.pybuild/bleeding/lib/python3.10/enum.py", line 544,
in __new__
    raise TypeError(
TypeError: invalid Flag 'DropAction' -- missing values: 8, 16, 32, 64, 128,
32768
>>>


Tom

[1] https://bugs.python.org/issue44242
[2] https://github.com/python/cpython/pull/24215
[3] https://bugs.python.org/issue38250

-- 
Thomas Caswell
tcaswell@gmail.com

[Attachment #3 (text/html)]

<div dir="ltr"><div>Folks,</div><div><br></div><div>There were changes in the default \
behavior of IntEnum and it&#39;s subclasses in Python  3.10.0a5 release that caused \
class-definition-time errors if all of the single-bit flags were not named.   This \
breaks PyQt6 and a number of other projects and is being treated as a \
regression/release blocker by upstream [1].   I do not think any action is needed on \
the PyQt6 side.</div><div><br></div><div>See [2][3] for details about the change that \
caused this regression.</div><div><br></div>Python 3.10.0b2+ (heads/3.10:d0991e2db3, \
Jun   1 2021, 11:42:08) [GCC 11.1.0] on linux<br>Type &quot;help&quot;, \
&quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more \
information.<br>&gt;&gt;&gt; import PyQt6.QtCore<br>&gt;&gt;&gt; \
PyQt6.QtCore.PYQT_VERSION_STR<br>&#39;6.1.1.dev2105301600&#39;<br>&gt;&gt;&gt; \
PyQt6.QtCore.Qt.Key<br>Traceback (most recent call last):<br>   File \
&quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>   File \
&quot;/home/tcaswell/.pybuild/bleeding/lib/python3.10/enum.py&quot;, line 615, in \
__call__<br>      return cls._create_(<br>   File \
&quot;/home/tcaswell/.pybuild/bleeding/lib/python3.10/enum.py&quot;, line 762, in \
_create_<br>      return metacls.__new__(metacls, class_name, bases, classdict, \
boundary=boundary)<br>   File \
&quot;/home/tcaswell/.pybuild/bleeding/lib/python3.10/enum.py&quot;, line 544, in \
__new__<br>      raise TypeError(<br>TypeError: invalid Flag &#39;DropAction&#39; -- \
missing values: 8, 16, 32, 64, 128, 32768<br>&gt;&gt;&gt;  <br \
clear="all"><div><br></div><div></div><div><br></div><div>Tom</div><div><br></div><div>[1] \
<a href="https://bugs.python.org/issue44242">https://bugs.python.org/issue44242</a><br></div><div>[2] \
<a href="https://github.com/python/cpython/pull/24215" target="_blank" \
style="">https://github.com/python/cpython/pull/24215</a></div><div>[3]  <a \
href="https://bugs.python.org/issue38250" \
target="_blank">https://bugs.python.org/issue38250</a></div><div><br></div>-- \
<br><div dir="ltr" data-smartmail="gmail_signature">Thomas Caswell<br><a \
href="mailto:tcaswell@gmail.com" target="_blank">tcaswell@gmail.com</a></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic