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

Configparser error after 2to3 conversion #10

Open
johnnyeaton opened this issue Jul 11, 2018 · 5 comments
Open

Configparser error after 2to3 conversion #10

johnnyeaton opened this issue Jul 11, 2018 · 5 comments

Comments

@johnnyeaton
Copy link

Hi Drew,

I was really hoping to get this working, as it looks like a great solution. Alas, after much trial and error and small adjustments to get this running with Python 3.7, I have hit a wall:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Program Files (x86)\Python37-32\Scripts\isocronut.py", line 393, in generate_isochrone_map origin_geocode = geocode_address(origin, access_type, config_path) File "C:\Program Files (x86)\Python37-32\Scripts\isocronut.py", line 170, in geocode_address key = config.get('api', 'api_number') File "C:\Program Files (x86)\Python37-32\lib\configparser.py", line 780, in get d = self._unify_values(section, vars) File "C:\Program Files (x86)\Python37-32\lib\configparser.py", line 1146, in _unify_values raise NoSectionError(section) from None configparser.NoSectionError: No section: 'api'

Any ideas what's going on there? I'm stumped.

All the best,
Johnny

@syphax
Copy link

syphax commented May 14, 2019

Hi Johnny,
Do you have an `[api]' header in your config file?
I am in the process of doing the 2-to-3 conversion as well. I think I have it working.

@zeluspudding
Copy link

Hi @syphax , did you manage to get the Python 3 version of this working? Am facing the same struggle :/

@syphax
Copy link

syphax commented May 7, 2020

I think a teammate of mine (who has since left my company) did get it working. It's been awhile; I'll have to poke around our codebase.

@zeluspudding
Copy link

Yeah, if that's something you could share that would be swell :) would definitely save me the re-work

@zeluspudding
Copy link

Any luck finding the conversion @syphax ?

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

3 participants