I want to extract the private keys from some old btc wallets. When starting pywallet I get "Warning:root:pycrypto or libssl not found, decryption may be slow".
This warning can be safely ignored.
Then when I run the command to dump private keys I get the error "DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_THREAD|DB_RECOVER)) bsddb.db.DBNoSuchFileError: (2, 'No such file or directory -- C:\Users\Ibrahim\Appdata\Roaming\Bitcoin\__db.001"
What (exact) command are you trying to execute ?
Also, did you make sure to have a few backups of your wallet files available ? Pywallet can mess up those files pretty heavily, making them unreadable.