Skip to content

comtypes numpy support for version > 1.1.11 #17

@BALOGHBence

Description

@BALOGHBence

I experienced this erro on Python 3.10 using comtypes 1.2.0

---------------------------------------------------------------------------
ArgumentError                             Traceback (most recent call last)
Cell In[12], line 9
      7 factors = np.random.rand(nC)
      8 name = 'Combination {}'.format(i+1)
----> 9 axm.LoadCombinations.Add(name, ctULS1, factors, caseIDs)

ArgumentError: argument 3: : Argument [0.43154583 0.00095536 0.69861531 0.85974925 0.40414348] appears to be a numpy.ndarray, but comtypes numpy support has not been enabled. Please try calling comtypes.npsupport.enable_numpy_interop() before passing ndarrays as parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions