[Qgis-user] Editable GeoCSV

Nathan Woodrow madmanwoo at gmail.com
Sun Oct 4 19:02:26 PDT 2015


That is the error.

The plugin has this line:

        locale = QSettings().value('locale/userLocale')[0:2]

which is crashing because it gets NULL and then tries to slice it and fails.

Try this:

QSettings().setValue('locale/userLocale', 'en_AU')

I'm not sure why it is returning NULL but that should fix it.

Regards,



On Mon, Oct 5, 2015 at 9:35 AM, Peter Borbely <pborbely at fairfaxmedia.com.au>
wrote:

> mine returns NULL - I'll poke around and set it and report back
>
> Peter Borbély
> <myemail at fairfaxmedia.com.au>
> Interactivista
> Fairfax Media
> 1 Darling Island Road, Pyrmont 2009
> +61 2 8596 4745
>
> pborbely at fairfaxmedia.com.au | @datafunk <http://twitter.com/datafunk>
>
>
>
>
>
>
> On 5 October 2015 at 10:32, Nathan Woodrow <madmanwoo at gmail.com> wrote:
>
>> Try this (just seeing if this where the error in the plugin is)
>>
>> - Open the Python console and paste the following
>>
>> from PyQt4.QtCore import *; QSettings().value('locale/userLocale')
>>
>> Does that return anything?  Mine returns u'en_AU'
>>
>>
>> On Mon, Oct 5, 2015 at 9:23 AM, Peter Borbely <
>> pborbely at fairfaxmedia.com.au> wrote:
>>
>>> I looked through the plugin logs, but couldn't find any reference to *QPyNullVariant
>>> *or * '__getitem__'*
>>> happy to post my logs if you think they help, maybe I should look for
>>> something else?
>>>
>>> Peter Borbély
>>> <myemail at fairfaxmedia.com.au>
>>> Interactivista
>>> Fairfax Media
>>> 1 Darling Island Road, Pyrmont 2009
>>> +61 2 8596 4745
>>>
>>> pborbely at fairfaxmedia.com.au | @datafunk <http://twitter.com/datafunk>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 5 October 2015 at 10:09, Nathan Woodrow <madmanwoo at gmail.com> wrote:
>>>
>>>> Hey Peter,
>>>>
>>>> Seems to work for me here.  Does it list anymore information at all?
>>>> It should hopefully have what line the error is on.
>>>>
>>>> Regards,
>>>>
>>>> On Mon, Oct 5, 2015 at 8:48 AM, Peter Borbely <
>>>> pborbely at fairfaxmedia.com.au> wrote:
>>>>
>>>>> Hi there
>>>>>
>>>>> I've tried to install the plugin *Editable GeoCSV*
>>>>>
>>>>> and got the following error:
>>>>> "the plugin is broken. Python said:
>>>>> *'QPyNullVariant' object has no attribute '__getitem__'*
>>>>>
>>>>> The prompt suggested to post this to the list here.
>>>>>
>>>>> cheers
>>>>> peter
>>>>>
>>>>>
>>>>> Peter Borbély
>>>>> <myemail at fairfaxmedia.com.au>
>>>>> Interactivista
>>>>> Fairfax Media
>>>>> 1 Darling Island Road, Pyrmont 2009
>>>>> +61 2 8596 4745
>>>>>
>>>>> pborbely at fairfaxmedia.com.au | @datafunk <http://twitter.com/datafunk>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> The information contained in this e-mail message and any accompanying
>>>>> files is or may be confidential. If you are not the intended recipient, any
>>>>> use, dissemination, reliance, forwarding, printing or copying of this
>>>>> e-mail or any attached files is unauthorised. This e-mail is subject to
>>>>> copyright. No part of it should be reproduced, adapted or communicated
>>>>> without the written consent of the copyright owner. If you have received
>>>>> this e-mail in error please advise the sender immediately by return e-mail
>>>>> or telephone and delete all copies. Fairfax Media does not guarantee the
>>>>> accuracy or completeness of any information contained in this e-mail or
>>>>> attached files. Internet communications are not secure, therefore Fairfax
>>>>> Media does not accept legal responsibility for the contents of this message
>>>>> or attached files.
>>>>> _______________________________________________
>>>>> Qgis-user mailing list
>>>>> Qgis-user at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>
>>>>
>>>>
>>>
>>> The information contained in this e-mail message and any accompanying
>>> files is or may be confidential. If you are not the intended recipient, any
>>> use, dissemination, reliance, forwarding, printing or copying of this
>>> e-mail or any attached files is unauthorised. This e-mail is subject to
>>> copyright. No part of it should be reproduced, adapted or communicated
>>> without the written consent of the copyright owner. If you have received
>>> this e-mail in error please advise the sender immediately by return e-mail
>>> or telephone and delete all copies. Fairfax Media does not guarantee the
>>> accuracy or completeness of any information contained in this e-mail or
>>> attached files. Internet communications are not secure, therefore Fairfax
>>> Media does not accept legal responsibility for the contents of this message
>>> or attached files.
>>>
>>
>>
>
> The information contained in this e-mail message and any accompanying
> files is or may be confidential. If you are not the intended recipient, any
> use, dissemination, reliance, forwarding, printing or copying of this
> e-mail or any attached files is unauthorised. This e-mail is subject to
> copyright. No part of it should be reproduced, adapted or communicated
> without the written consent of the copyright owner. If you have received
> this e-mail in error please advise the sender immediately by return e-mail
> or telephone and delete all copies. Fairfax Media does not guarantee the
> accuracy or completeness of any information contained in this e-mail or
> attached files. Internet communications are not secure, therefore Fairfax
> Media does not accept legal responsibility for the contents of this message
> or attached files.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20151005/8eb0f8c5/attachment.html>


More information about the Qgis-user mailing list