[ckan-dev] List Index Error

Nigel Babu nigel.babu at okfn.org
Mon Apr 22 03:20:32 UTC 2013


Hi Marina,

Can you pastebin the full traceback for IndexError?

Nigel.


On 22 April 2013 07:52, Marina S. Martin <marina at marinamartin.com> wrote:

> I'm having trouble tracking down the source of an error.
>
> I can add a new package with a resource, no problem. But when I try to add
> a second resource to an *existing* package, I get a generic "Server Error"
>
> /apache2/error.log just shows:
> IndexError: list index out of range
>
> I have LogLevel set to debug... still nothing helpful, no references to
> line numbers or variables, etc.
>
> I'm running in production so if I change debug = true in development.ini,
> it complains it can't run in a multi-process environment.
>
> I do have an extension that inserts custom fields and facets (thanks to
> Sean and tobes for getting this going!):
> https://github.com/MarinaMartin/USMetadata
>
> I have also modified the core additional_info.html template.
>
> I looked through /ckan/controllers/package.py at the parts that add a
> resource, but I don't see a clear spot that would be hit when adding a new
> resource to an existing package (again, works fine when adding to a new
> package).
>
> Thanks in advance if anyone can point me to the place to look for a fix.
>
> Marina
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130422/2e3d82b7/attachment-0001.html>


More information about the ckan-dev mailing list