Closed JoLuPuma closed 10 months ago
@esune — I think we need to get this on the backlog. Suggest that we move this into the ACA-Py Plugins repo as well.
@esune — I think we need to get this on the backlog. Suggest that we move this into the ACA-Py Plugins repo as well.
Yes, I agree this should be moved to https://github.com/hyperledger/aries-acapy-plugins
Will plan to have this looked at by someone, tagging @jamshale @Jsyro and @usingtechnology in case they have quick feedback/ideas on the specific issue, otherwise it might be best to do the work as we move the plugin over.
Yes. This is a prime candidate for the plugin repo. I think the main problem is root pyproject.toml is using a pretty old acapy. The toml file in the demo repo is different and even older.
I believe this is just dependency issues. The poetry version is set to >1.0.0 so possibly you need an even older version. I tried deleting the lock files and upgrading acapy and python and could install but the demo docker file was still not working.
I think we should move it and try and upgrade and simplify things.
leaving a note here to update AATH - the acapy-redis image - after we move / update this code.
See comment
The code has been moved to https://github.com/hyperledger/aries-acapy-plugins. If this is still an issue it should be addressed there. This repo is being archived and will no longer be maintained. Thanks all.
Hi, I have had some trouble running the Demo. I found that the problem it's because of Poetry (maybe?). Given that install-poetry.py has been deprecated, I'm using the install.python-poetry.org instead (check poetry doc https://python-poetry.org/docs/ ). So I modified the Dockerfile in redis_deliverer and redis_relay folders but a different error shows. Maybe the problem is the version of poetry i'm using? I tried with 1.4,1.2, 1.1.5,1.1.15, Anyone has an idea...? Thanks in advance
Error example (with poetry 1.1.15) [base 8/8] RUN poetry install:
0 0.492 Creating virtualenv redis-deliverer in /usr/src/app/.venv
0 1.214 Installing dependencies from lock file
0 1.761
0 1.761 Package operations: 49 installs, 0 updates, 0 removals
0 1.761
0 1.762 • Installing typing-extensions (4.3.0)
0 1.763 • Installing zipp (3.6.0)
0 2.860 • Installing distlib (0.3.5)
0 2.862 • Installing filelock (3.4.1)
0 2.863 • Installing frozenlist (1.2.0)
0 2.864 • Installing idna (3.3)
0 2.864 • Installing importlib-metadata (4.8.3)
0 2.865 • Installing multidict (5.2.0)
0 2.866 • Installing platformdirs (2.4.0)
0 2.867 • Installing pyparsing (3.0.9)
0 2.868 • Installing wrapt (1.14.1)
0 6.543 • Installing aiosignal (1.2.0)
0 6.544 • Installing asgiref (3.4.1)
0 6.545 • Installing async-timeout (4.0.2)
0 6.546 • Installing asynctest (0.13.0)
0 6.547 • Installing attrs (22.1.0)
0 6.548 • Installing cfgv (3.3.1)
0 6.549 • Installing charset-normalizer (2.1.1)
0 6.551 • Installing click (8.0.4)
0 6.552 • Installing deprecated (1.2.13)
0 6.553 • Installing h11 (0.13.0)
0 7.356 • Installing identify (2.4.4)
0 7.358 • Installing iniconfig (1.1.1)
0 7.369 • Installing mccabe (0.6.1)
0 7.430 • Installing mypy-extensions (0.4.3)
0 7.490 • Installing nodeenv (1.6.0)
0 7.533 • Installing packaging (21.3)
0 7.556 • Installing pathspec (0.9.0)
0 7.585 • Installing pluggy (1.0.0)
0 7.587 • Installing py (1.11.0)
0 7.631 • Installing pycodestyle (2.7.0)
0 7.892 • Installing pydantic (1.9.2)
0 7.894 • Installing pyflakes (2.3.1)
0 7.924 • Installing pyyaml (6.0)
0 7.969 • Installing starlette (0.14.2)
0 8.046 • Installing toml (0.10.2)
0 8.145 • Installing tomli (1.2.3)
0 8.147 • Installing typed-ast (1.5.4)
0 8.193 • Installing virtualenv (20.16.2)
0 8.208 • Installing yarl (1.7.2)
0 14.82
0 14.82 EnvCommandError
0 14.82
0 14.82 Command ['/usr/src/app/.venv/bin/pip', 'install', '--no-deps', '/root/.cache/pypoetry/artifacts/02/51/fc/a99b1209979acb173a2e39a0ab2ad2b6c20466217006fbe3454d6e4564/PyYAML-6.0.tar.gz'] errored with the following return code 1, and output:
0 14.82 Processing /root/.cache/pypoetry/artifacts/02/51/fc/a99b1209979acb173a2e39a0ab2ad2b6c20466217006fbe3454d6e4564/PyYAML-6.0.tar.gz
0 14.82 Installing build dependencies: started
0 14.82 Installing build dependencies: finished with status 'done'
0 14.82 Getting requirements to build wheel: started
0 14.82 Getting requirements to build wheel: finished with status 'error'
0 14.82 error: subprocess-exited-with-error
0 14.82
0 14.82 × Getting requirements to build wheel did not run successfully.
0 14.82 │ exit code: 1
0 14.82 ╰─> [48 lines of output]
0 14.82 running egg_info
0 14.82 writing lib/PyYAML.egg-info/PKG-INFO
0 14.82 writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
0 14.82 writing top-level names to lib/PyYAML.egg-info/top_level.txt
0 14.82 Traceback (most recent call last):
0 14.82 File "/usr/src/app/.venv/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
0 14.82 main()
0 14.82 File "/usr/src/app/.venv/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
0 14.82 json_out['return_val'] = hook(**hook_input['kwargs'])
0 14.82 File "/usr/src/app/.venv/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
0 14.82 return hook(config_settings)
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
0 14.82 return self._get_build_requires(config_settings, requirements=['wheel'])
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
0 14.82 self.run_setup()
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in run_setup
0 14.82 exec(code, locals())
0 14.82 File "", line 312, in
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/init.py", line 107, in setup
0 14.82 return distutils.core.setup(**attrs)
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
0 14.82 return run_commands(dist)
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
0 14.82 dist.run_commands()
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
0 14.82 self.run_command(cmd)
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 1234, in run_command
0 14.82 super().run_command(command)
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
0 14.82 cmd_obj.run()
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 314, in run
0 14.82 self.find_sources()
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
0 14.82 mm.run()
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 551, in run
0 14.82 self.add_defaults()
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
0 14.82 sdist.add_defaults(self)
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
0 14.82 super().add_defaults()
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
0 14.82 self._add_defaults_ext()
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
0 14.82 self.filelist.extend(build_ext.get_source_files())
0 14.82 File "", line 204, in get_source_files
0 14.82 File "/tmp/pip-build-env-5bhj2yzm/overlay/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 107, in getattr
0 14.82 raise AttributeError(attr)
0 14.82 AttributeError: cython_sources
0 14.82 [end of output]
0 14.82
0 14.82 note: This error originates from a subprocess, and is likely not a problem with pip.
0 14.82 error: subprocess-exited-with-error
0 14.82
0 14.82 × Getting requirements to build wheel did not run successfully.
0 14.82 │ exit code: 1
0 14.82 ╰─> See above for output.
0 14.82
0 14.82 note: This error originates from a subprocess, and is likely not a problem with pip.
0 14.82
0 14.82 [notice] A new release of pip available: 22.2.1 -> 23.3
0 14.82 [notice] To update, run: pip install --upgrade pip
0 14.82
0 14.82
0 14.82 at /opt/poetry/venv/lib/python3.7/site-packages/poetry/utils/env.py:1074 in _run
0 14.84 1070│ output = subprocess.check_output(
0 14.84 1071│ cmd, stderr=subprocess.STDOUT, **kwargs
0 14.84 1072│ )
0 14.84 1073│ except CalledProcessError as e:
0 14.84 → 1074│ raise EnvCommandError(e, input=input_)
0 14.84 1075│
0 14.84 1076│ return decode(output)
0 14.84 1077│
0 14.84 1078│ def execute(self, bin, *args, **kwargs):
0 14.84