Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in WidgetManager, TypeError: unsupported operand type(s) for |: 'type' and '_GenericAlias' #48

Open
JJIASI opened this issue Sep 13, 2023 · 2 comments

Comments

@JJIASI
Copy link

JJIASI commented Sep 13, 2023

Description:
Raises error when importing WidgetManager.

--> 107 WidgetParam = vtkAbstractWidget | Type[vtkAbstractWidget]
    108 RepresentationParam = vtkWidgetRepresentation | Type[vtkWidgetRepresentation]
    111 class WidgetManager:

TypeError: unsupported operand type(s) for |: 'type' and '_GenericAlias'

I'm not sure do you wanna use or here?
Reproduce the issue:

from trame_vtk.modules.vtk.widget import WidgetManager
@jourdain
Copy link
Collaborator

Which version of Python are you using? I think that specific module expects a fairly recent one...

FYI @alesgenova

@JJIASI
Copy link
Author

JJIASI commented Sep 14, 2023

Which version of Python are you using? I think that specific module expects a fairly recent one...

Thanks for the prompt reply.
I've tested with different python versions.

  • ❌ Python 3.8.10
  • ❌ Python 3.9.13
  • ❌ Python 3.10.5
  • ✅ Python 3.11.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants