bfrascher / passpy Goto Github PK
View Code? Open in Web Editor NEWZX2C4's pass compatible Python library and cli
License: GNU General Public License v3.0
ZX2C4's pass compatible Python library and cli
License: GNU General Public License v3.0
In order to have different pass repositories with different teams each of the members of my team has his main password store and imports the teams repositories as links or submodules.
When generating a new key with store.gen_key()
the step of adding the change to the git repository fails with the following errors:
...
File "~/.local/lib/python3.7/site-packages/passpy/util.py", line 92, in initialised_wrapper
return func(*args, **kwargs)
File "~/.local/lib/python3.7/site-packages/passpy/util.py", line 66, in trap_wrapper
return func(*args, **kwargs)
File "~/.local/lib/python3.7/site-packages/passpy/store.py", line 377, in gen_key
verbose=self.verbose)
File "~/.local/lib/python3.7/site-packages/passpy/git.py", line 88, in git_add_path
repo.git.add(*path)
File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 542, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 1005, in _call_process
return self.execute(call, **exec_kwargs)
File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 822, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git add ~/.password-store/team_1/ansible-vault/production.gpg
stderr: 'fatal: pathspec '~/.password-store/team_1/ansible-vault/production.gpg' is beyond a symbolic link'
... Same as above ...
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git add ~/.password-store/team_1/ansible-vault/production.gpg
stderr: 'fatal: Pathspec '~/.password-store/team_1/ansible-vault/production.gpg' is in submodule 'team_1''
This makes the code break in my case, using passpy 1.0, gnupg 0.4.2
Thanks!
I installed passpy using pip on a windows 10 box.
Using qtpass already, a git repository exists in my home C:\users\***\password-store
.
I set the variable PASSWORD_STORE_DIR
:
set PASSWORD_STORE_DIR=C:\Users\***\password-store
When running passpy I get the following message:
passpy show
Error: . is not in the password store.
When I rename C:\Users\***\password-store
to the default C:\Users\***\.password-store
(leading dot) passpy can eventually list the content of my repo.
passpy show|wc -l
246
Passpy Version:
pip list|grep pass
passpy 1.0.1
Python Version:
python --version
Python 3.8.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.