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

Bug in Python 3.6.0 and 3.7.0 #17

Closed
anthonyjclark opened this issue Mar 12, 2019 · 3 comments
Closed

Bug in Python 3.6.0 and 3.7.0 #17

anthonyjclark opened this issue Mar 12, 2019 · 3 comments

Comments

@anthonyjclark
Copy link

I ran into this bug while using ffpass:
configparser.ConfigParser.read() does not accept Pathlib path as a single argument.

Fix this error by upgrading your Python version. I'm leaving this issue here so that others can find it and solve the problem.

Specifically, with Python 3.6.0 (and from the link above it looks like it also affects some versions of 3.7+) I ran into the following error:

ffpass import -f cpwds.csv
Traceback (most recent call last):
  File "/Users/ajc/miniconda3/bin/ffpass", line 11, in <module>
    sys.exit(main())
  File "/Users/ajc/miniconda3/lib/python3.6/site-packages/ffpass/__init__.py", line 329, in main
    guessed_dir = guessDir()
  File "/Users/ajc/miniconda3/lib/python3.6/site-packages/ffpass/__init__.py", line 223, in guessDir
    config.read(path / "profiles.ini")
  File "/Users/ajc/miniconda3/lib/python3.6/configparser.py", line 693, in read
    for filename in filenames:
TypeError: 'PosixPath' object is not iterable

In my case upgrading from 3.6.0 to 3.6.8 fixed the issue.

@louisabraham
Copy link
Owner

louisabraham commented Mar 18, 2019

Hi, thanks for reporting this.

If it is OK with you, I'm going to close this issue and link to it from the readme.

@anthonyjclark
Copy link
Author

Please do as you see fit.

louisabraham added a commit that referenced this issue Mar 18, 2019
@louisabraham
Copy link
Owner

Done by aa7f67f

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