Skip to content

Reading from CSV error - TypeError: expected string or bytes-like object #41

@yuva670

Description

@yuva670

Traceback (most recent call last):
File "csv_parse.py", line 14, in
parsed_text = CommonRegex({row[2]})
File "/Users/mviraktamath/.pyenv/versions/3.8.6/lib/python3.8/site-packages/commonregex.py", line 53, in init
setattr(self, key, method())
File "/Users/mviraktamath/.pyenv/versions/3.8.6/lib/python3.8/site-packages/commonregex.py", line 39, in regex_method
return [x.strip() for x in self.regex.findall(text or self.obj.text)]
TypeError: expected string or bytes-like object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions