0

I am running into a problem when running startup scripts for this project: https://github.com/IBM-Blockchain-Identity/indy-ssivc-tutorial There is already an issue out on this on the GitHub page (See: https://github.com/IBM-Blockchain-Identity/indy-ssivc-tutorial/issues/7), but it has not been answered yet. I figured it has to be some sort of permissions issue, but i have already created a Pipfile for the project using pipenv lock and giving it permissions.

I was thinking this might not be a issue with the actual project and maybe just a general error on my end someone here could help with.

Here is the error I am getting when trying to start "sudo ./manage start"

> von-web_1  | Traceback (most recent call last): von-web_1  |   File
    > "/usr/local/bin/pipenv", line 11, in <module> von-web_1  |    
    > sys.exit(cli()) von-web_1  |   File
    > "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py",
    > line 722, in __call__ von-web_1  |     return self.main(*args,
    > **kwargs) von-web_1  |   File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py",
    > line 697, in main von-web_1  |     rv = self.invoke(ctx) von-web_1  | 
    > File
    > "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py",
    > line 1066, in invoke von-web_1  |     return
    > _process_result(sub_ctx.command.invoke(sub_ctx)) von-web_1  |   File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py",
    > line 895, in invoke von-web_1  |     return ctx.invoke(self.callback,
    > **ctx.params) von-web_1  |   File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py",
    > line 535, in invoke von-web_1  |     return callback(*args, **kwargs)
    > von-web_1  |   File
    > "/usr/local/lib/python3.5/dist-packages/pipenv/cli.py", line 701, in
    > run von-web_1  |     do_run(command=command, args=args, three=three,
    > python=python, pypi_mirror=pypi_mirror) von-web_1  |   File
    > "/usr/local/lib/python3.5/dist-packages/pipenv/core.py", line 2244, in
    > do_run von-web_1  |     ensure_project(three=three, python=python,
    > validate=False, pypi_mirror=pypi_mirror) von-web_1  |   File
    > "/usr/local/lib/python3.5/dist-packages/pipenv/core.py", line 605, in
    > ensure_project von-web_1  |     project.touch_pipfile() von-web_1  |  
    > File "/usr/local/lib/python3.5/dist-packages/pipenv/project.py", line
    > 559, in touch_pipfile von-web_1  |     with open('Pipfile', 'a'):
    > von-web_1  | PermissionError: [Errno 13] Permission denied: 'Pipfile'
    > von_von-web_1 exited with code 1
4

2 回答 2

0

您可以查看编码系统中出现问题的状态:

$ brew doctor

您可以通过以下命令进行清理:

$ brew cleanup

但我建议您卸载 Python 并重新安装:

$ brew uninstall --ignore-dependencies python3
$ brew install python3
于 2020-02-10T22:44:50.450 回答
0

我已经使用 Python 3.6.3 在 MacO 上安装了 Hyperledger Indy SS VC Demo。也许是3.6.3版本,我没有遇到过上面提到的问题。我们可以在 Github 问题列表中看到以下补丁。如果您在升级 Python 版本后遇到问题,请告诉我。

Pipfile 和 Pipfile.lock 文件的顶部已经设置了 Python 3.5 版本。作为一个补丁,我通过在 von-network/scripts/start_webserver.sh 顶部附近添加以下行来修复权限问题:

查找 /* -type d | xargs chmod 777 --silent

该命令只需在顶部的 bin/bash 标头之后执行,即第 2 行。确保在“find”之后使用“/*”。它应该只修复 Pipfile 错误。

于 2019-03-14T10:09:21.417 回答