Skip to content

Failed to import MDSplus #5

@renierts

Description

@renierts

When trying to import MDSplus, I got the following error:

from mdsthin import MDSplus
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/.venv/lib64/python3.9/site-packages/mdsthin/MDSplus/__init__.py", line 33, in <module>
    from ..ext import Tree, TreeNode, setDefaultConnection, getDefaultConnection
  File "/home/user/.venv/lib64/python3.9/site-packages/mdsthin/ext/__init__.py", line 3, in <module>
    from .tree import Tree, TreeNode, setDefaultConnection, getDefaultConnection
  File "/home/user/.venv/lib64/python3.9/site-packages/mdsthin/ext/tree.py", line 29, in <module>
    from ..internals.usagedef import *
  File "/home/user/.venv/lib64/python3.9/site-packages/mdsthin/internals/usagedef.py", line 144, in <module>
    def usage_to_string(usage: usage_t | int) -> str:
TypeError: unsupported operand type(s) for |: '_ctypes.PyCSimpleType' and 'type'

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions