Skip to content

unsupported operand type(s) for ^: 'int' and 'float' #3

@am0z

Description

@am0z
Request Method:     GET
Request URL:    http://127.0.0.1:8000/panavatar/100x100.svg
Django Version:     1.8.13
Exception Type:     TypeError
Exception Value:    

unsupported operand type(s) for ^: 'int' and 'float'

Exception Location:     /home/am0z/young-savannah-9378/lib/python2.7/site-packages/panavatar/parameters.py in _perlin_random, line 204
Python Executable:  /home/am0z/young-savannah-9378/bin/python
Python Version:     2.7.12

I'm using PYPI version which is 0.3.3.

Casting int() on cellx and celly on line 214 help the issue, but I'm not sure if this is the right way to go. Didn't take to much time understanding the surrounding code, sorry.

Let me know if I you need more info from me.

EDIT: added version information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions