drewfustin / isocronut

For a given geospatial location, calculate an isochrone (same time) contour around it.
97 stars 44 forks source link

Configparser error after 2to3 conversion #10

Open johnnyeaton opened 6 years ago

johnnyeaton commented 6 years ago

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 commented 5 years ago

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 commented 4 years ago

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

syphax commented 4 years ago

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 commented 4 years ago

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

zeluspudding commented 3 years ago

Any luck finding the conversion @syphax ?