Majic Projects
Pydenticon
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Pydenticon / Closed Bug report PYD-4 Identicon generation using pre-hashed data raises ValueError
Go to the next issue (open or closed)
Go to the next open issue
There are no more issues in that direction.
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    0.1.1
  • Status
    Closed
  • Progress
  • Priority
    Critical
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (2)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    1 hour
  • Time spent
    No time spent
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
  • Reproducability
    Always
  • Severity
    Critical
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
Identicon generation using pre-hashed data will always raise a ValueError. Regular data works fine.

The traceback received is similar to:

<nowiki>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/branko/.virtualenvs/django-pydenticon/local/lib/python2.7/site-packages/pydenticon/__init__.py", line 302, in generate
digest_byte_list = self._data_to_digest_byte_list(data)
File "/home/branko/.virtualenvs/django-pydenticon/local/lib/python2.7/site-packages/pydenticon/__init__.py", line 177, in _data_to_digest_byte_list
return [int(digest[i * 2:i * 2 + 2], 16) for i in range(16)]
ValueError: invalid literal for int() with base 16: 'U\xd2'
</nowiki>
Steps to reproduce this issue
# Generate an identicon using hashed data (default is md5):
<nowiki>
from pydenticon import Generator
generator = Generator(5, 5)
generator.generate("55d207ea47247b375dc1f495517f1332", 240, 240)
</nowiki>
Todos (0 / 0)
Issue created