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

Python3.8 section not recognize #48

Closed
anthonyxpalermo opened this issue Sep 30, 2020 · 2 comments
Closed

Python3.8 section not recognize #48

anthonyxpalermo opened this issue Sep 30, 2020 · 2 comments

Comments

@anthonyxpalermo
Copy link

It appears that in Python 3.8 the module is not recognizing the sections ?

MacOS 10.15

cat ~/.edgerc
[default]
client_secret = the-client-secret
host = secretlocation.luna.akamaiapis.net
access_token = the-access-token
client_token = the-client-token

section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'default'

@robertolopezlopez
Copy link
Contributor

Hi @anthonyxpalermo ,

Thank you for raising this issue. We have already fixed this issue in our internal repository, we will release the fix as soon as we can :-)

As a temporary solution, please do not use the ~ character when instantiating EdgeRc - instead, use the full path to to your .edgerc

Regards

This was referenced Aug 10, 2021
@robertolopezlopez
Copy link
Contributor

Hi @anthonyxpalermo,

Thank you for creating this issue, it has been fixed in our latest release.

Regards,

Roberto

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

No branches or pull requests

2 participants