Skip to content

TypeError: type() argument 1 must be string, not newstr #30

@clokep

Description

@clokep

Thanks for making this package! Due to #27 I just upgraded configparser and 3.7.0, unfortunately it breaks flake8 on Python 2.7.15:

Traceback (most recent call last):
  File "/Users/pcloke/.virtualenvs/my_venv/bin/flake8", line 7, in <module>
    from flake8.main.cli import main
  File "/Users/pcloke/.virtualenvs/my_venv/lib/python2.7/site-packages/flake8/main/cli.py", line 2, in <module>
    from flake8.main import application
  File "/Users/pcloke/.virtualenvs/my_venv/lib/python2.7/site-packages/flake8/main/application.py", line 14, in <module>
    from flake8.main import options
  File "/Users/pcloke/.virtualenvs/my_venv/lib/python2.7/site-packages/flake8/main/options.py", line 4, in <module>
    from flake8.main import vcs
  File "/Users/pcloke/.virtualenvs/my_venv/lib/python2.7/site-packages/flake8/main/vcs.py", line 4, in <module>
    from flake8.main import mercurial
  File "/Users/pcloke/.virtualenvs/my_venv/lib/python2.7/site-packages/flake8/main/mercurial.py", line 7, in <module>
    import configparser
  File "/Users/pcloke/.virtualenvs/my_venv/lib/python2.7/site-packages/configparser.py", line 12, in <module>
    from backports.configparser import (
  File "/Users/pcloke/.virtualenvs/my_venv/lib/python2.7/site-packages/backports/configparser/__init__.py", line 139, in <module>
    from backports.configparser.helpers import OrderedDict as _default_dict
  File "/Users/pcloke/.virtualenvs/my_venv/lib/python2.7/site-packages/backports/configparser/helpers.py", line 193, in <module>
    dict(__metaclass__=abc.ABCMeta),
  File "/Users/pcloke/.virtualenvs/my_venv/bin/../lib/python2.7/abc.py", line 87, in __new__
    cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
TypeError: type() argument 1 must be string, not newstr

Let me know if I can provide any other information! This seems to break on both Linux and macOS. Rolling back to 3.5.3 fixed this issue for me.

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