jmriego / emulation

0 stars 0 forks source link

configparser.NoSectionError: No section: 'launchbox' #1

Closed EdenEvoX closed 5 years ago

EdenEvoX commented 5 years ago

keep on getting this when trying to run - config file is properly set:

C:\LaunchBox\emulation-master>launchbox2ael.py Traceback (most recent call last): File "C:\LaunchBox\emulation-master\LaunchBox2AEL.py", line 15, in LBDIR = config.get('launchbox', 'dir') File "C:\Python37\lib\configparser.py", line 780, in get d = self._unify_values(section, vars) File "C:\Python37\lib\configparser.py", line 1146, in _unify_values raise NoSectionError(section) from None configparser.NoSectionError: No section: 'launchbox'

jmriego commented 5 years ago

That's a strange error. It's just calling a Python library. Can you paste here at least partly the config.ini? Maybe it's expecting some specific order

EdenEvoX commented 5 years ago

here is the config :)

[launchbox] dir=C:\LaunchBox

[ael]

dir=%LOCALAPPDATA%\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\userdata\addon_data\plugin.program.advanced.emulator.launcher

dir=%APPDATA%\kodi\userdata\addon_data\plugin.program.advanced.emulator.launcher

[dosbox] exe=C:\DosBox\dosbox.exe args=-conf dosbox.conf -conf "{}"

jmriego commented 5 years ago

I believe Python would give that error also if it just didn't find your config file. Is it exactly in C:\LaunchBox\emulation-master\config.ini ?

EdenEvoX commented 5 years ago

it wasn't for some reason and that fixed the issue - thanks for your help!!

jmriego commented 5 years ago

That's great. I hope it works now for you. You are probably the first user :)

EdenEvoX commented 5 years ago

It works great - I've been waiting for AEL to be updated for some time (and have a large launchbox database) so this is absolutely perfect, thanks for creating it.

Now time to customise my theme so the box art works!