stef / pbp

salty privacy
Other
53 stars 5 forks source link

still runtime errors #8

Closed TLINDEN closed 10 years ago

TLINDEN commented 10 years ago

I can (now) run pbp -g, which seems to create some keys. However, if I want to list them, I get:

pbp -l
Traceback (most recent call last):
  File "/usr/local/bin/pbp", line 9, in <module>
    load_entry_point('pbp==0.2', 'console_scripts', 'pbp')()
  File "build/bdist.freebsd-9.1-RELEASE-p4-amd64/egg/pbp/main.py", line 66, in main
AttributeError: 'Namespace' object has no attribute 'PITCHFORK'

So, I tried to do it in a subdir so I can take a look at the generated keys:

pbp -g --name tom -b .    
1/2 Master Passphrase: 
2/2 Master Repeat passphrase: 
Traceback (most recent call last):
  File "/usr/local/bin/pbp", line 9, in <module>
    load_entry_point('pbp==0.2', 'console_scripts', 'pbp')()
  File "build/bdist.freebsd-9.1-RELEASE-p4-amd64/egg/pbp/main.py", line 62, in main
  File "build/bdist.freebsd-9.1-RELEASE-p4-amd64/egg/pbp/publickey.py", line 18, in __call__
  File "build/bdist.freebsd-9.1-RELEASE-p4-amd64/egg/pbp/publickey.py", line 35, in __init__
  File "build/bdist.freebsd-9.1-RELEASE-p4-amd64/egg/pbp/publickey.py", line 59, in create
  File "build/bdist.freebsd-9.1-RELEASE-p4-amd64/egg/pbp/publickey.py", line 64, in save
  File "build/bdist.freebsd-9.1-RELEASE-p4-amd64/egg/pbp/publickey.py", line 134, in savesecretekey
IOError: [Errno 2] No such file or directory: './sk/tom.mk'

I created the subdirs sk, mk and pk manually, then it worked.

stef commented 10 years ago

oh, interesting corner-case works if you specify a directory other than . and ..

stef commented 10 years ago

I think this should be fixed with your fine contribution in 53cdc4493fc81 - thx!