Skip to content

Fails with NumPy < 1.7.0 #73

@darkxanthos

Description

@darkxanthos

I tried the first example in the readme:

>>> from xlwings import Workbook, Sheet, Range, Chart
>>> wb = Workbook()  # Creates a connection with a new workbook
>>> Range('A1').value = 'Foo 1'

It fails with error code

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/xlwings/main.py", line 430, in value
    if hasattr(np, 'ndarray') and np.isnan(data):
NotImplementedError: Not implemented for this type

It works if I make it an array:

>>> Range('A1').value = [['Foo 1']]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions