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

keyword argument error in conf.py #30

Open
threynol opened this issue Oct 29, 2016 · 1 comment
Open

keyword argument error in conf.py #30

threynol opened this issue Oct 29, 2016 · 1 comment

Comments

@threynol
Copy link
Contributor

threynol commented Oct 29, 2016

I just tried pygooglevoice for the first time, and version 0.5.2 (from pip) gave me an error when it tried to read my email out of the .gvoice config file. (For what it's worth, I'm using Python 3.5.2) The error occurs in the get method of conf.py:

TypeError: get() got an unexpected keyword argument 'raw'

I was able to fix the error by simply adding the keyword argument raw=True to the call to get. (The error was occurring in a ConfigParser string processing procedure that only runs when raw==False. I doubt that reading the settings in the .gvoice file as raw strings is likely to cause side effects.) My corrected get method line is:

return ConfigParser.get(self, section, option, raw=True).strip() or None

This corrects the problem on my installation, but I am completely new to GitHub and don't know the usual method of reporting the problem I encountered and fixing it for others.

(I'm also get a LoginError every time the code tries to log in to Google, but that's another issue entirely. I've had no success in getting around the LoginError even after verifying the correct login URL in settings.py)

@chris001
Copy link

Try the version from this github repo here, it should read your email and other settings without any issue. The logging in is a different issue, due to google's upgrade to the web interface this week, a few days ago. See #27.

jaraco added a commit to jaraco/googlevoice that referenced this issue Aug 28, 2022
* Replace pep517.build with build

Resolves pettazz#30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <[email protected]>
jaraco added a commit to jaraco/googlevoice that referenced this issue Aug 28, 2022
* Use `extend-ignore` in flake8 config

This option allows to add extra ignored rules to the default list
instead of replacing it.

The default exclusions are: E121, E123, E126, E226, E24, E704,
W503 and W504.

Fixes pettazz#28.

Refs:
* https://github.com/pypa/setuptools/pull/2486/files#r541943356
* https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-extend-ignore
*
https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore

* Enable complexity limit. Fixes jaraco/skeleton#34.

* Replace pep517.build with build (pettazz#37)

* Replace pep517.build with build

Resolves pettazz#30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <[email protected]>

* Use license_files instead of license_file in meta (pettazz#35)

Singular `license_file` is deprecated since wheel v0.32.0.

Refs:
* https://wheel.readthedocs.io/en/stable/news.html
* https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file

Co-authored-by: Jason R. Coombs <[email protected]>
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