Skip to content

COMPAT: openpyxl >= 2.2 failing #10125

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

Closed
jlec opened this issue May 13, 2015 · 12 comments
Closed

COMPAT: openpyxl >= 2.2 failing #10125

jlec opened this issue May 13, 2015 · 12 comments
Labels
IO Excel read_excel, to_excel Testing pandas testing functions or related to the test suite
Milestone

Comments

@jlec
Copy link
Contributor

jlec commented May 13, 2015

xref #8342, #11008, #9747

a branch to repro on travis: jreback@262c5f1

nosetests pandas.io.tests.test_excel
E...................S./usr/lib64/python3.4/site-packages/openpyxl/styles/styleable.py:111: UserWarning: Use formatting objects such as font directly
  warn("Use formatting objects such as font directly")
/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
ES/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E./usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E.....S...................S../usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
E/usr/lib64/python3.4/site-packages/openpyxl/styles/__init__.py:52: UserWarning: Call to deprecated function or class copy (Copy formatting objects like font directly).
  def copy(self):
ESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.....S.................................................
======================================================================
ERROR: test_creating_and_reading_multiple_sheets (pandas.io.tests.test_excel.ExcelReaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 474, in test_creating_and_reading_multiple_sheets
    for sheetname, df in dfs.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 475, in test_creating_and_reading_multiple_sheets
    df.to_excel(ew,sheetname)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 619, in __exit__
    self.close()
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 623, in close
    return self.save()
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 651, in save
    return self.book.save(self.path)
  File "/usr/lib64/python3.4/site-packages/openpyxl/workbook/workbook.py", line 298, in save
    save_workbook(self, filename)
  File "/usr/lib64/python3.4/site-packages/openpyxl/writer/excel.py", line 196, in save_workbook
    writer.save(filename, as_template=as_template)
  File "/usr/lib64/python3.4/site-packages/openpyxl/writer/excel.py", line 179, in save
    self.write_data(archive, as_template=as_template)
  File "/usr/lib64/python3.4/site-packages/openpyxl/writer/excel.py", line 65, in write_data
    archive.writestr(ARC_WORKBOOK_RELS, write_workbook_rels(self.workbook))
  File "/usr/lib64/python3.4/site-packages/openpyxl/writer/workbook.py", line 319, in write_workbook_rels
    i += 1
UnboundLocalError: local variable 'i' referenced before assignment

======================================================================
ERROR: test_basics_with_nan (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 641, in test_basics_with_nan
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_bool_types (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 688, in test_bool_types
    frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_colaliases (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 734, in test_colaliases
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_datetimes (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1218, in test_datetimes
    write_frame.to_excel(path, 'Sheet1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_duplicated_columns (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1178, in test_duplicated_columns
    write_frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_date_datetime_format (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 864, in test_excel_date_datetime_format
    df.to_excel(writer1, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_roundtrip_datetime (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 838, in test_excel_roundtrip_datetime
    tsf.to_excel(path, 'test1', merge_cells=self.merge_cells)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_roundtrip_indexname (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 820, in test_excel_roundtrip_indexname
    df.to_excel(path, merge_cells=self.merge_cells)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_sheet_by_name_raise (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 552, in test_excel_sheet_by_name_raise
    gt.to_excel(pth)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excelwriter_contextmanager (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 564, in test_excelwriter_contextmanager
    self.frame.to_excel(writer, 'Data1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_float_types (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 676, in test_float_types
    frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_inf_roundtrip (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 698, in test_inf_roundtrip
    frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_int_types (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 656, in test_int_types
    frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_mixed (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 621, in test_mixed
    self.mixed_frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_roundtrip (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 579, in test_roundtrip
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_roundtrip_indexlabels (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 755, in test_roundtrip_indexlabels
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_sheets (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 709, in test_sheets
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_swapped_columns (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1192, in test_swapped_columns
    write_frame.to_excel(path, 'test1', columns=['B', 'A'])
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_float_format (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 969, in test_to_excel_float_format
    df.to_excel(filename, 'test1', float_format='%.2f')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_multiindex (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 905, in test_to_excel_multiindex
    frame.to_excel(path, 'test1', header=False)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_multiindex_dates (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 927, in test_to_excel_multiindex_dates
    tsframe.to_excel(path, 'test1', merge_cells=self.merge_cells)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_multiindex_no_write_index (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 952, in test_to_excel_multiindex_no_write_index
    frame2.to_excel(path, 'test1', index=False)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_output_encoding (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 987, in test_to_excel_output_encoding
    df.to_excel(filename, sheet_name='TestSheet', encoding='utf8')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_periodindex (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 889, in test_to_excel_periodindex
    xp.to_excel(path, 'sht1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_unicode_filename (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1005, in test_to_excel_unicode_filename
    df.to_excel(filename, 'test1', float_format='%.2f')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_tsframe (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 632, in test_tsframe
    df.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_write_cells_merge_styled (pandas.io.tests.test_excel.Openpyxl2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1229, in wrapped
    orig_method(self, *args, **kwargs)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1382, in test_write_cells_merge_styled
    writer.write_cells(initial_cells, sheet_name=sheet_name)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_basics_with_nan (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 641, in test_basics_with_nan
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_bool_types (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 688, in test_bool_types
    frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_colaliases (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 734, in test_colaliases
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_datetimes (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1218, in test_datetimes
    write_frame.to_excel(path, 'Sheet1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_duplicated_columns (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1178, in test_duplicated_columns
    write_frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_010_hemstring (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1139, in test_excel_010_hemstring
    res = roundtrip(df)
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1128, in roundtrip
    df.to_excel(path, header=header, merge_cells=self.merge_cells)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_date_datetime_format (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 864, in test_excel_date_datetime_format
    df.to_excel(writer1, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_roundtrip_datetime (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 838, in test_excel_roundtrip_datetime
    tsf.to_excel(path, 'test1', merge_cells=self.merge_cells)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_roundtrip_indexname (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 820, in test_excel_roundtrip_indexname
    df.to_excel(path, merge_cells=self.merge_cells)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excel_sheet_by_name_raise (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 552, in test_excel_sheet_by_name_raise
    gt.to_excel(pth)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_excelwriter_contextmanager (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 564, in test_excelwriter_contextmanager
    self.frame.to_excel(writer, 'Data1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_float_types (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 676, in test_float_types
    frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_inf_roundtrip (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 698, in test_inf_roundtrip
    frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_int_types (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 656, in test_int_types
    frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_mixed (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 621, in test_mixed
    self.mixed_frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_roundtrip (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 579, in test_roundtrip
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_roundtrip_indexlabels (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 755, in test_roundtrip_indexlabels
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_sheets (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 709, in test_sheets
    self.frame.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_swapped_columns (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1192, in test_swapped_columns
    write_frame.to_excel(path, 'test1', columns=['B', 'A'])
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_float_format (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 969, in test_to_excel_float_format
    df.to_excel(filename, 'test1', float_format='%.2f')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_multiindex (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 905, in test_to_excel_multiindex
    frame.to_excel(path, 'test1', header=False)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_multiindex_dates (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 927, in test_to_excel_multiindex_dates
    tsframe.to_excel(path, 'test1', merge_cells=self.merge_cells)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_multiindex_no_write_index (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 952, in test_to_excel_multiindex_no_write_index
    frame2.to_excel(path, 'test1', index=False)
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_output_encoding (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 987, in test_to_excel_output_encoding
    df.to_excel(filename, sheet_name='TestSheet', encoding='utf8')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_periodindex (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 889, in test_to_excel_periodindex
    xp.to_excel(path, 'sht1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_to_excel_unicode_filename (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 1005, in test_to_excel_unicode_filename
    df.to_excel(filename, 'test1', float_format='%.2f')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

======================================================================
ERROR: test_tsframe (pandas.io.tests.test_excel.OpenpyxlTests_NoMerge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/src/opensource/pandas/pandas/io/tests/test_excel.py", line 632, in test_tsframe
    df.to_excel(path, 'test1')
  File "/local/src/opensource/pandas/pandas/core/frame.py", line 1267, in to_excel
    startrow=startrow, startcol=startcol)
  File "/local/src/opensource/pandas/pandas/io/excel.py", line 778, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib64/python3.4/site-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

----------------------------------------------------------------------
Ran 216 tests in 3.809s
FAILED (SKIP=60, errors=55)
@jlec jlec changed the title pandas.io.tests.test_excel fail with openpyxl-2.2.2 "Call to deprecated function or class copy" pandas.io.tests.test_excel fail with openpyxl-2.2.2 TypeError: copy() got an unexpected keyword argument 'font' May 13, 2015
@jlec
Copy link
Contributor Author

jlec commented May 13, 2015

@Themanwithoutaplan perhaps you can help here.

@talp101
Copy link

talp101 commented May 18, 2015

For fast solution replace this
xcell.style = xcell.style.copy(**style_kwargs)
with
pass

openpyxl upgraded their api and pandas also need to be updated for support openpyxl

@jreback
Copy link
Contributor

jreback commented May 18, 2015

currently support for > 2.0 in openpyxl is experimental, mainly because the API keeps changing :).

All that said would be nice to have fixes for this. (Note that travis is not testing > 2.0.3) because conda hasn't accepted the updates to openpyxl (for good reason).

You could remove openpyxl from the ci/requirements-3.4.txt and specifically pip install. We don't want to actually specify versions for these builds, to always get the latest.

@jreback jreback added Testing pandas testing functions or related to the test suite IO Excel read_excel, to_excel labels May 18, 2015
@jreback jreback added this to the Next Major Release milestone May 18, 2015
@Themanwithoutaplan
Copy link
Contributor

The styles API had to change for reliable functionality: individual cell styles are actually shared so changes had unpleasant side-effects. The Style object is essentially deprecated in favour of direct manipulation of Font, Fill, etc. attributes. It is a denormalised aggregate that really only has relevance in the file format, or in specific named styles, which we don't support yet. The specification is also a bit vague at this point.

In most other cases the API has become more standard and we do emit deprecation warnings. Test coverage has improved significantly but there are almost certainly still bugs in which case we need bug reports, ideally with relevant tests for the relevant parts of the library.

@yarikoptic
Copy link
Contributor

FWIW... I have blindly (since forgotten that pandas uses openpyxl) uploaded fresh openpyxl beta release (2.3.0~b1) to debian sid and now enjoying similar failures

======================================================================
ERROR: test_creating_and_reading_multiple_sheets (pandas.io.tests.test_excel.ExcelReaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«BUILDDIR»/pandas-0.16.2+git65-g054821d/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_excel.py", line 475, in test_creating_and_reading_multiple_sheets
    df.to_excel(ew,sheetname)
  File "/«BUILDDIR»/pandas-0.16.2+git65-g054821d/debian/tmp/usr/lib/python2.7/dist-packages/pandas/core/frame.py", line 1277, in to_excel
    startrow=startrow, startcol=startcol)
  File "/«BUILDDIR»/pandas-0.16.2+git65-g054821d/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/excel.py", line 798, in write_cells
    xcell.style = xcell.style.copy(**style_kwargs)
  File "/usr/lib/python2.7/dist-packages/openpyxl/compat/__init__.py", line 67, in new_func
    return obj(*args, **kwargs)
TypeError: copy() got an unexpected keyword argument 'font'

full build log https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=s390x&ver=0.16.2%2Bgit65-g054821d-1&stamp=1435856037&file=log

widdowquinn added a commit to widdowquinn/pyani that referenced this issue Aug 4, 2015
@NapalmHorn
Copy link

After a quick test in virtualenv This seems to work with openpyxl<=2.1.5 higher versions fail due to the style api changes. Personally, I'm setting my requirements.txt to include "openpyxl==1.8.6" until the 2 series API becomes stable.

@jreback
Copy link
Contributor

jreback commented Sep 11, 2015

so here is a travis setup that can repro this: jreback@262c5f1
ideally we can fix this gracefully

@jreback jreback changed the title pandas.io.tests.test_excel fail with openpyxl-2.2.2 TypeError: copy() got an unexpected keyword argument 'font' COMPAT: openpyxl > 2.1 failing Sep 11, 2015
@jreback jreback changed the title COMPAT: openpyxl > 2.1 failing COMPAT: openpyxl >= 2.2 failing Sep 11, 2015
@yarikoptic
Copy link
Contributor

I would appreciate a fix as well. 2.3.0b2 is out and unlikely that API would break again I guess, so looking forward would be wise to get pandas ready

@jreback jreback modified the milestones: 0.17.0, Next Major Release Sep 21, 2015
jreback pushed a commit to jreback/pandas that referenced this issue Sep 22, 2015
Create separate environments for testing openpyxl.

Subclass Openpyxl2Writer for >= 2.2

Add openpyxl >= 2.2 specific tests.

Use class decorator for skipping TestClass

Invert order for reading number format.

Update docs.

Allow openpyxl to handle the formatting for dates and times.

Make function call clearer.

Add version flag.

Remove comments.

Add a naive cache for styles.
@jreback
Copy link
Contributor

jreback commented Sep 22, 2015

closed via c6bcc99

@jreback jreback closed this as completed Sep 22, 2015
@yarikoptic
Copy link
Contributor

AWESOME, thank you @jreback I will give it a shot!

@jlec
Copy link
Contributor Author

jlec commented Sep 22, 2015

Great, thanks @jreback . Looking forward to the next release.

@invisibleroads
Copy link
Contributor

Thanks, @jreback

yarikoptic added a commit to neurodebian/pandas that referenced this issue Oct 11, 2015
* commit 'v0.17.0rc1-92-gc6bcc99': (29 commits)
  CI: tests latest versions of openpyxl
  COMPAT: openpyxl >= 2.2 support, pandas-dev#10125
  Tests demonstrating how to use sqlalchemy.text() objects in read_sql()
  TST: Capture warnings in _check_plot_works
  COMPAT/BUG: color handling in scatter
  COMPAT: Support for matplotlib 1.5
  ERR/API: Raise NotImplementedError when Panel operator function is not implemented, pandas-dev#7692
  DOC: minor doc formatting fixes
  PERF: nested dict DataFrame construction
  DEPR: deprecate SparsePanel
  BLD: dateutil->python-dateutil in conda recipe
  BUG/API: GH11086 where freq is not inferred if both freq is None
  ENH: add merge indicator to DataFrame.merge
  PERF: improves performance in groupby.size
  BUG: DatetimeTZBlock.fillna raises TypeError
  PERF: infer_datetime_format without padding pandas-dev#11142
  PERF: improves performance in SeriesGroupBy.transform
  TST: Verify fix for buffer overflow in read_csv with engine='c' (GH pandas-dev#9735)
  DEPR: Series.is_timeseries
  BUG: nested construction with timedelta pandas-dev#11129
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Excel read_excel, to_excel Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants