New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: unhashable type: 'Color'
during Qt resource compilation
#4995
Comments
I can confirm this on my M1 arm64 env, in python 3.9 arm64 env. |
also brand new for you? |
Yea. I make napari envs a lot too, but usually via mamba. |
@alisterburt please check if downgrade pydantic to |
thank you @Czaki, that solves the issue! What do you think we should do, pin and potentially update deps for 0.4.16? |
Yeah, looks like all our CI is broken by this. 馃う |
From 4 hours it will fail also on conda: conda-forge/pydantic-feedstock#64 @jaimergp it is possible to patch napari conda feedstock to block pydantic 1.10.0 for a few last releases if fix time will increase? |
Also breaks CI for stardist-napari: https://github.com/stardist/stardist-napari/actions/runs/2958470116 |
@uschmidt83 It will break all CI that depends on napari. But pydantic maintainer agrees that this is deprecation that should be fixed. pydantic/pydantic#4454 (comment) And I have prepared PR with fix pydantic/pydantic#4455, so hopefully, it will be fast merged, and a bugfix release will be created. We need to wait. If you cannot wait, then add |
Thanks so much for reporting this. The issue is fixed and a patch release As per pydantic/pydantic#4359 I'm trying to test popular packages which make extensive use of pydantic against pre-releases before making new releases to reduce the risk of breaking changes (like this 馃う). Prior to future releases I'd love support from the community to test new pydantic versions with napari. |
We have pre-releases test, that even catches this problem, but it fails so often that, unfortunately, we, unintentionally, start to ignore it. We need to find a better way to handle pre-release failure and will be happy to take additional care when pydantic pre-release is available. |
Thank you for sorting this out so quickly @samuelcolvin and @Czaki! @Czaki pointed out this morning that our pre-tests did actually catch this... 8 days ago: https://github.com/napari/napari/runs/7963696182?check_suite_focus=true we haven't been good about catching issues like this because they fail so often - we will put in place some process to make sure problems like this are caught earlier in future! 馃檪 |
That would be great, thanks so much. |
1.10.1 landed on pypi 馃殌 |
The bug is caused by It would be also worth updating the type signature for the second argument of def get_colorized_svg(path_or_xml: Union[str, Path], color: str = None, opacity=1) -> str:
... to def get_colorized_svg(path_or_xml: Union[str, Path], color: Optional[Union[str, Tuple[str, str]]] = None, opacity=1) -> str:
... |
???
|
@samuelcolvin Thank you for pointing out the current status of |
@gtamazian, there are still changes required (update signature or update call), but I address them in #4997 Close this Issue as solved. Thanks, @samuelcolvin, for the fast reaction. |
馃悰 Bug
Came across a bug after a fresh install of napari today, pyqt was installed through conda, napari from pip
To Reproduce
Steps to reproduce the behavior:
Expected behavior
succesful napari launch
Environment
Additional context
I have other working environments on this machine with 0.4.16 so the problem is likely somewhere slightly upstream...
The text was updated successfully, but these errors were encountered: