Skip to content

sparc test_read_dta10: KeyError: 0 self.dtyplist = [self.DTYPE_MAP[typ] for typ in typlist] #4222

Closed
@yarikoptic

Description

@yarikoptic
======================================================================
ERROR: test_read_dta10 (pandas.io.tests.test_stata.StataTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 205, in test_read_dta10
    written_and_read_again = self.read_dta(path)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 41, in read_dta
    return read_stata(file, convert_dates=True)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 38, in read_stata
    reader = StataReader(filepath_or_buffer, encoding)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 305, in __init__
    self._read_header()
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 331, in _read_header
    self.dtyplist = [self.DTYPE_MAP[typ] for typ in typlist]
KeyError: 0

on 0.12.0~rc1+git43-g7b2eaa4-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions