NaPs / Kolekto

Kolekto is a really KISS movie catalog software
MIT License
27 stars 3 forks source link

[bug] Exception: Bad datasource u't' #15

Closed tetraf closed 10 years ago

tetraf commented 10 years ago

With ArchLinux, python 2.7.6, Kolekto 1.1 from AUR (https://aur.archlinux.org/packages/kolekto/).

$ kolekto -d -V import --symlink ../mobies/movie.avi 
[debug] Executing command <bound method Import.run of <kolekto.commands.importer.Import object at 0xc44990>>
Traceback (most recent call last):
  File "/usr/bin/kolekto", line 75, in <module>
    main()
  File "/usr/bin/kolekto", line 68, in main
    args.command(args, config)
  File "/usr/lib/python2.7/site-packages/kolekto/commands/importer.py", line 58, in run
    mds = MovieDatasource(config.subsections('datasource'), args.tree)
  File "/usr/lib/python2.7/site-packages/kolekto/datasources/__init__.py", line 56, in __init__
    raise Exception('Bad datasource %r' % datasource_config.args[0])
Exception: Bad datasource u't'

Datasource config:

datasource 'tmdb_proxy' {
    base_url = 'http://api.kolekto-project.org/'
    max_results = 2
}
datasource 'mediainfos' {}
NaPs commented 10 years ago

Hi,

Are you using the latest version of Dotconf (1.8) available in Aur ?

NaPs commented 10 years ago

Actually I think this problem is already fixed in the current development version. Can you confirm that you are using the latest Dotconf version and try with the current git revision?

To do that:

$ git clone git@github.com:NaPs/Kolekto.git
$ cd Kolekto
$ python setup.py egg_info
$ export PYTHONPATH="./"
$ ./bin/kolekto help

Don't forget to uninstall the package previously installed using Aur.

tetraf commented 10 years ago

Yep, it's the 1.8 version of python2-dotconf. OK, no problem with last dev version.

NaPs commented 10 years ago

Ok, thanks. I'll try to do a release ASAP to fix that problem.