altendky / qtrio

QTrio - a library bringing Qt GUIs together with async and await via Trio
https://qtrio.readthedocs.io/
Other
40 stars 4 forks source link

Crash with qtrio 0.5.0 / qts #269

Open FredericLeRoux opened 3 years ago

FredericLeRoux commented 3 years ago

I am unable to run qtrio 0.5.0, while getting back to qtrio 0.1.0 solves the issue. I get the following msg:

installing package dependencies Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/XXX/dEAduction/src/deaduction/dui/main.py", line 34, in import qtrio File "/home/XXX/.local/lib/python3.8/site-packages/qtrio/init.py", line 20, in from ._core import ( File "/home/XXX/.local/lib/python3.8/site-packages/qtrio/_core.py", line 15, in import qts File "/home/XXX/.local/lib/python3.8/site-packages/qts/init.py", line 7, in from qts._core import ( File "/home/XXX/.local/lib/python3.8/site-packages/qts/_core.py", line 10, in @attr.frozen AttributeError: module 'attr' has no attribute 'frozen'

(This is on Ubuntu).

altendky commented 3 years ago

It looks like I didn't properly describe the version dependency for attrs.

https://github.com/altendky/qtrio/blob/43c7ff24c0be2f7a3df86eef3c6cc5dae2f7ffd3/setup.cfg#L41

attr.frozen was added in 20.1.0.

https://www.attrs.org/en/stable/api.html#attr.attr.frozen

Sorry for the trouble here. Updating attrs should fix it for now.

altendky commented 3 years ago

Or I moved too quickly and it's really over in qts... so lemme fix it there.