http403 / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

svn r189, broken sqlite import_passwords #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
echo aaaaaaaa > testpass

pyrit -i testpass -u sqlite:///mydb.db import_passwords
Connecting to storage... connected

1 lines read. Flushing buffers...
Traceback (most recent call last):
  File "/usr/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/lib/python2.6/site-packages/pyrit_cli.py", line 114, in
initFromArgv
    func(self, **options)
  File "/usr/lib/python2.6/site-packages/pyrit_cli.py", line 298, in
import_passwords
    self.storage.passwords.flush_buffer()
  File "/usr/lib/python2.6/site-packages/cpyrit/storage.py", line 226, in
flush_buffer
    self._flush_bucket(pw_h1, pw_bucket)
  File "/usr/lib/python2.6/site-packages/cpyrit/storage.py", line 807, in
_flush_bucket
    session.add(PAW2_DBObject(pw_h1, bucket))
  File "<string>", line 4, in __init__
  File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/state.py", line 82,
in initialize_instance
    return manager.events.original_init(*mixed[1:], **kwargs)
  File "/usr/lib/python2.6/site-packages/cpyrit/storage.py", line 534, in
__init__
    self.numElems = len(self.collection)
  File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/attributes.py",
line 150, in __set__
    self.impl.set(instance_state(instance), instance_dict(instance), value,
None)
  File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/attributes.py",
line 448, in set
    state.modified_event(dict_, self, False, old)
  File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/state.py", line
279, in modified_event
    if not self._strong_obj:
TypeError: an integer is required

Original issue reported on code.google.com by masterzorag on 23 Oct 2009 at 11:36

GoogleCodeExporter commented 9 years ago
Works for me. What version of sqlite / sqlalchemy do you use?

Original comment by lukas.l...@gmail.com on 23 Oct 2009 at 3:00

GoogleCodeExporter commented 9 years ago
sqlite 3.6.19, sqlalchemy 0.5.5

Original comment by masterzorag on 23 Oct 2009 at 3:43

GoogleCodeExporter commented 9 years ago
Bug is in sqlalchemy itself. Already closed in 
http://www.sqlalchemy.org/trac/ticket/1501

It will take some time for the fixed version to appear in the distributions' 
repos...

Thanks for reporting. Closed.

Original comment by lukas.l...@gmail.com on 30 Oct 2009 at 6:08

GoogleCodeExporter commented 9 years ago
Sounds good, targeting trunk, thanks

Original comment by masterzorag on 30 Oct 2009 at 7:58

GoogleCodeExporter commented 9 years ago
Issue 277 has been merged into this issue.

Original comment by lukas.l...@gmail.com on 11 Mar 2011 at 7:29

GoogleCodeExporter commented 9 years ago
Issue 279 has been merged into this issue.

Original comment by lukas.l...@gmail.com on 12 Mar 2011 at 9:28

GoogleCodeExporter commented 9 years ago
Issue 278 has been merged into this issue.

Original comment by lukas.l...@gmail.com on 12 Mar 2011 at 9:28