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

Default Section not recognized: python 3.8.2 #50

Closed
psybersonik opened this issue Nov 20, 2020 · 2 comments
Closed

Default Section not recognized: python 3.8.2 #50

psybersonik opened this issue Nov 20, 2020 · 2 comments

Comments

@psybersonik
Copy link

I am unable to parse the contents of the default section successfully.
The .edgerc file is readable by the CLI and HTTPie
This seems to be an issue similar to https://github.com/akamai/AkamaiOPEN-edgegrid-python/issues/48

Error message:
% /Applications/Xcode.app/Contents/Developer/usr/bin/python3 "/Users/redacted/Apps/edge.py"
Traceback (most recent call last):
File "/Users/redacted/Apps/edge.py", line 6, in
baseurl = 'https://%s' % edgerc.get(section, 'host')
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'default'

The edge.py file(renamed to .txt) is as attached.

edge.txt

@robertolopezlopez
Copy link
Contributor

Hi @psybersonik ,

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 replace ~/.edgerc with the full path to your .edgerc

Regards

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

Hi @psybersonik,

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