Skip to content
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

TypeError: 'PosixPath' object is not iterable #13

Open
valicika-e opened this issue Jan 30, 2019 · 1 comment
Open

TypeError: 'PosixPath' object is not iterable #13

valicika-e opened this issue Jan 30, 2019 · 1 comment

Comments

@valicika-e
Copy link

valicika-e commented Jan 30, 2019

I get this error "TypeError: 'PosixPath' object is not iterable"
The file logme.ini is added into the root folder of the project.
Here is the error trace:

File "/opt/app/pip/logme/__init__.py", line 34, in log
  return _get_logger_decorator(scope, config=config, name=name)
File "/opt/app/pip/logme/__init__.py", line 63, in _get_logger_decorator
  provider = LogProvider(callable_, config=config, name=name)
File "/opt/app/pip/logme/providers.py", line 40, in __init__
  config_dict = get_logger_config(module_obj.__file__, name=config)
File "/opt/app/pip/logme/utils.py", line 67, in get_logger_config
  return get_config_content(caller_file_path, name=name)
File "/opt/app/pip/logme/utils.py", line 94, in get_config_content
  config = ConfigParser.from_files(init_file_path)
File "/opt/app/pip/bnmutils/configparser.py", line 29, in from_files
  obj.read(filenames, encoding)
File "/opt/app/pip/backports/configparser/__init__.py", line 702, in read
  for filename in filenames:
TypeError: 'PosixPath' object is not iterable
@BNMetrics
Copy link
Owner

Hi there,
sorry for the late response.
This seems to be a problem with python versioning. Since in anything below python3.6.2 does not seem to check if the filename passed is a os.PathLike.
May I ask which version of python you are using? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants