[SciPy-User] Error

Waléria Antunes David waleriantunes@gmail....
Fri Oct 22 07:43:47 CDT 2010


My last question was about this: global name 'omega_k' is not defined, but
this is already solved. My error now is:

TypeError at /index/

unsupported operand type(s) for ** or pow(): 'Decimal' and 'float'

 Request Method: POST  Request URL: http://localhost:8000/index/  Exception
Type: TypeError  Exception Value:

unsupported operand type(s) for ** or pow(): 'Decimal' and 'float'

 Exception Location: views.py in index, line 24
Waleria

On Fri, Oct 22, 2010 at 10:33 AM, <josef.pktd@gmail.com> wrote:

>
>
> On Fri, Oct 22, 2010 at 7:54 AM, Waléria Antunes David <
> waleriantunes@gmail.com> wrote:
>
>> The problem was solved.
>> Now occurs this error:
>>
>> TypeError at /index/
>>
>> unsupported operand type(s) for ** or pow(): 'Decimal' and 'float'
>>
>>  Request Method: POST  Request URL: http://localhost:8000/index/  Exception
>> Type: TypeError  Exception Value:
>>
>> unsupported operand type(s) for ** or pow(): 'Decimal' and 'float'
>>
>>  Exception Location: views.py in index, line 24
>>
>> My code: http://pastebin.com/mcMeFijV
>>
>> Can you help me?
>>
>
> What's the difference to the last question you asked "Type Error"
>
> Josef
>
>
>>
>> Thanks,
>>
>>
>>
>> On Fri, Oct 22, 2010 at 1:30 AM, David Warde-Farley <
>> wardefar@iro.umontreal.ca> wrote:
>>
>>>  On 2010-10-20, at 1:04 PM, Waléria Antunes David wrote:
>>>
>>> > I have a forms.py: http://pastebin.com/ihhM9GVf
>>> >
>>> > This value comes from a form. Not right this correct?
>>>
>>>
>>> Then it looks like it would be a member of the form object in your
>>> original paste, i.e. form.omega_k.
>>>
>>> David
>>
>>
>>
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101022/246a428e/attachment-0001.html 


More information about the SciPy-User mailing list