qweasdzxc17 / pyrit

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

import_unique_passwords #125

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi

I have exported my unique passwords and now I want to import them into a
sqlite file. While trying this I run into this issue

sudo pyrit -u sqlite:///pyrit.db -i ../../passwords/pyrit.pass
import_unique_passwords
Pyrit 0.3.0 (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Connecting to storage at 'sqlite:///pyrit.db'...  connected.
0 lines read (4345393.3 lines/s)... Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 106, in
initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 286, in
import_unique_passwords
    self.import_passwords(storage, infile, unique_check=False)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 275, in
import_passwords
    pwstore.store_password(line)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/storage.py", line
287, in store_password
    self._flush_bucket(pw_h1, pw_bucket)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/storage.py", line
1063, in _flush_bucket
    session.add(PAW2_DBObject(pw_h1, bucket))
  File "<string>", line 4, in __init__
  File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/state.py", line 82, in
initialize_instance
    return manager.events.original_init(*mixed[1:], **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/storage.py", line
782, in __init__
    self.numElems = len(self.collection)
  File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/attributes.py", line
150, in __set__
    self.impl.set(instance_state(instance), instance_dict(instance), value,
None)
  File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/attributes.py", line
448, in set
    state.modified_event(dict_, self, False, old)
  File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/state.py", line 279, in
modified_event
    if not self._strong_obj:
TypeError: an integer is required

I get the same error if I try import_passwords, Any ideas on howto fix?

/Christian

Original issue reported on code.google.com by edes...@gmail.com on 3 Mar 2010 at 9:50

GoogleCodeExporter commented 8 years ago
Duplicate of issue #61, bug in sqlalchemy 0.5.5. Please update to 0.5.6

Original comment by lukas.l...@gmail.com on 3 Mar 2010 at 10:37

GoogleCodeExporter commented 8 years ago
Thanks alot .. for the quick reply and keep up the great work

Original comment by edes...@gmail.com on 3 Mar 2010 at 11:37