我正在为我的公司寻找一个好的密码保险箱。我想测试一下Vaultier,但它的新版本可以正常运行。无论是Docker还是其他平台。总是有错误,如果它的Docker我得到那个输出。 我不是python专家,但是make pip install --upgrade使得安装只是错过了整个应用程序。
我遵循了这些指南https://www.vaultier.org/install/
sudo docker run -t -i --name vaultier -p 80:8088 rclick/vaultier:latest -e "VAULTIER_DOMAIN=vaultier.bla.com"
Error: invalid value for -e 'VAULTIER_DOMAIN=vaultier.bla.com': bad logging level name 'VAULTIER_DOMAIN=vaultier.bla.com'
For help, use /usr/bin/supervisord -h
启动没有此值的Docker,会给出(400错误请求)
使用Ubuntu:
Traceback (most recent call last):
File "/opt/vaultier/venv/bin/vaultier", line 5, in <module>
from pkg_resources import load_entry_point
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pkg_resources.py", line 2720, in <module>
parse_requirements(__requires__), Environment()
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pkg_resources.py", line 592, in resolve
raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (six 1.4.1 (/opt/vaultier/venv/lib/python2.7/site-packages), Requirement.parse('six>=1.7'))
使用Debian:
Traceback (most recent call last):
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 295, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/req.py", line 707, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/util.py", line 716, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /opt/vaultier/venv/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-08foqW/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-UUDq9M-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/vaultier/venv/include/site/python2.7 failed with error code 1 in /tmp/pip-build-08foqW/psycopg2
有关如何避免失败或修复此问题的任何想法?
更新
在“六”问题解决方案之后,我在运行vaultier设置时收到新错误
File "/opt/vaultier/venv/bin/vaultier", line 9, in <module>
load_entry_point('Vaultier==0.7.5', 'console_scripts', 'vaultier')()
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/vaultier/vaultier/runner.py", line 231, in main
settings_envvar='VAULTIER_CONF'
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/logan/runner.py", line 169, in run_app
management.execute_from_command_line([runner_name, command] + command_args)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/vaultier/vaultier/management/commands/setup.py", line 22, in handle
management.call_command('syncdb')
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 159, in call_command
return klass.execute(*args, **defaults)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
return self.handle_noargs(**options)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 68, in handle_noargs
migrations = migration.Migrations(app_label)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/south/migration/base.py", line 64, in __call__
self.instances[app_label] = super(MigrationsMetaclass, self).__call__(app_label_to_app_module(app_label), **kwds)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/south/migration/base.py", line 90, in __init__
self.set_application(application, force_creation, verbose_creation)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/south/migration/base.py", line 154, in set_application
module = importlib.import_module(self.migrations_module())
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/kombu/transport/django/migrations/__init__.py", line 16, in <module>
raise ImproperlyConfigured(SOUTH_ERROR_MESSAGE)
django.core.exceptions.ImproperlyConfigured:
For South support, customize the SOUTH_MIGRATION_MODULES setting
to point to the correct migrations module:
SOUTH_MIGRATION_MODULES = {
'kombu_transport_django': 'kombu.transport.django.south_migrations',
}
UPDATE2 -FIX
我无法在网上找到任何解决方案,所以我尝试了南方的另一个版本,看到那里......它有效。 :)
>>> DB is initialized, you can now try to run Vaultier using 'vaultier runserver'
(venv)root@Vaultier:/opt/vaultier# vaultier runserver
在vaultier的requirements.txt中,或者setup.py ...并不重要。只需设置“南== 1.0.2” 别忘了设置“Six == 1.9”
玩得开心!
答案 0 :(得分:2)
我发现了和你一样的问题,我在Ubuntu中做的修复步骤是:
wget https://pypi.python.org/packages/source/V/Vaultier/Vaultier-0.7.5.tar.gz
tar -xzvf Vaultier-0.7.5.tar.gz
setup.py
文件,找到包含six==1.4
的行,
更改此six==1.9
,python setup.py install
答案 1 :(得分:2)
如果您想使用Docker Image,那么当前的Vaultier文档会让您感到困惑。
试试这个:
拉出最新的图像(不要运行图像!)
auto find_ten=[](const std::vector<int>& v1,const std::vector<int>& v2){
auto ret = v1.cend() != std::find(v1.cbegin(),v1.cend(),10);
if ( ret == false )
ret = v2.cend() != std::find(v2.cbegin(),v2.cend(),10);
return ret;
};
运行图像(将EXAMPLE.COM替换为您想要的域名):
sudo docker pull rclick/vaultier:latest
答案 2 :(得分:1)
经过多日努力,我发现了如何安装它:
如果您使用&#34; apt-get install vaultier&#34;进行安装,那么您将遇到South和Six版本问题,因此只需并行运行&#34;而[1];做sed -i&#39; s / six == 1.4.1 / six == 1.9 /&#39; /tmp/pip*/setup.py; sed -i&#39; s /南== 0.8.4 /南== 1.0.2 /&#39; /tmp/pip*/setup.py;done 2&gt; / dev / null&#34;
安装成功后,如果你运行&#34; vaultier check&#34;你得到了#34;没有名为vaultier.runner&#34;的模块,设置PYTHON_PATH变量:&#34; export PYTHONPATH =&#34; /opt/vaultier/venv/local/lib/python2.7/site- packages / vaultier&#34;&#34;,转到/ opt / vaultier / venv / bin再试一次。
发送电子邮件时遇到问题(邀请和与他人分享)。环境变量FROM_EMAIL或VAULTIER_FROM_EMAIL无效,因此Vaultier正在使用&#34; noreply@vauliter.YOURDOMAIN.LOCAL"在&#34;来自:&#34; SMTP交换。 我在&#34; /opt/vaultier/venv/lib/python2.7/site-packages/vaultier/vaultier/business/mailer.py"中手动输入了所需的电子邮件;第33行:self.from_email =&#39; vaultier@YOURDOMAIN.COM'
如果我有足够的时间,我将根据CentOS 7全面运作制作OVA。
顺便说一下,它是一个不错的应用程序,看起来不错,做得很好。顺便说一句,它是您可以托管的唯一免费的。还有一个但很难看而且不那么容易使用。