I've tried looking into this. The following github issue may be relevant: https://github.com/python-poetry/install.python-poetry.org/issues/24
There is a contrast between how python is setup in homebrew versus how the team coded poetry. Based from what I understood so far there are two solutions: 1. Use a virtual environment before pip install. See the following excerpt <https://github.com/python-poetry/install.python-poetry.org/issues/24#issuecomment-1314368112> from one of the maintainers: *We provide no support for Homebrew installations; feel free to use Homebrew, but please don't open issues against Poetry unless you have reproduced on an install using this script/pipx/pip+venv. pipx and pip+venv work just fine with framework-based Pythons; #79 <https://github.com/python-poetry/install.python-poetry.org/issues/79> complicates the fix I had in mind for this issue, and I will need to spend some time reworking it with the new information in mind (or, we may just drop --copies entirely).* 2. Use the following one-liner before going with the Pip install: ``` curl -sSL https://install.python-poetry.org | sed 's/symlinks=False/symlinks=True/' | python3 - ``` This one-liner relates to @ikebo <https://github.com/python-poetry/install.python-poetry.org/issues/24#issuecomment-1593310080> and @ralexx's <https://github.com/python-poetry/install.python-poetry.org/issues/24#issuecomment-1415136797> temporary patch to this issue, which involves a symlink configuration. On Sunday, October 15, 2023 at 3:21:32 PM UTC+8 Peter Bienstman wrote: > Do people really need homebrew and XCode? Can't they get Python > directly from https://www.python.org/downloads/macos/? > > As for the error, perhaps an easier to debug option would be to see > what happens if you don't use pip yet, but follow the new build > instructions from Ace, which will use poetry to install Mnemosyne in > your system? If that has a similar error, then you could add e.g. > extra print statements to > /python3.11/site-packages/poetry/core/pyproject/toml.py to figure out > what part of the configuration file causes errors? > > Peter > > On Sun, Oct 15, 2023 at 1:50 AM de...@callysto.com <de...@callysto.com> > wrote: > > > > Sorry, missed the updates to this thread. Installing XCode, homebrew, > python, and pip is a bit of work for non-tech, but assuming we could > simplify that I tried running the install command from > https://test.pypi.org/project/mnemosyne/2.10.1a0/ and I got the following > error output > > > > ``` > > orpved2:~ devin$ pip3 install -i https://test.pypi.org/simple/ > mnemosyne==2.10.1a0 > > Looking in indexes: https://test.pypi.org/simple/ > > Collecting mnemosyne==2.10.1a0 > > Downloading > https://test-files.pythonhosted.org/packages/fb/4d/d17f2eaead745b10676d4b5795ff3ac8948b685a4b5d61440213ab95af65/mnemosyne-2.10.1a0.tar.gz > > (898 kB) > > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 898.4/898.4 kB 10.2 MB/s eta > 0:00:00 > > Installing build dependencies ... done > > Getting requirements to build wheel ... done > > Preparing metadata (pyproject.toml) ... error > > error: subprocess-exited-with-error > > > > × Preparing metadata (pyproject.toml) did not run successfully. > > │ exit code: 1 > > ╰─> [18 lines of output] > > Traceback (most recent call last): > > File > "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > > line 353, in <module> > > main() > > File > "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > > line 335, in main > > json_out['return_val'] = hook(**hook_input['kwargs']) > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File > "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", > > line 149, in prepare_metadata_for_build_wheel > > return hook(metadata_directory, config_settings) > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File > "/private/var/folders/s_/kfjzrd0x21502lph7nw_nqk80000gr/T/pip-build-env-t6ye3_dd/overlay/lib/python3.11/site-packages/poetry/core/masonry/api.py", > > line 40, in prepare_metadata_for_build_wheel > > poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False) > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File > "/private/var/folders/s_/kfjzrd0x21502lph7nw_nqk80000gr/T/pip-build-env-t6ye3_dd/overlay/lib/python3.11/site-packages/poetry/core/factory.py", > > line 46, in create_poetry > > local_config = PyProjectTOML(path=poetry_file).poetry_config > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File > "/private/var/folders/s_/kfjzrd0x21502lph7nw_nqk80000gr/T/pip-build-env-t6ye3_dd/overlay/lib/python3.11/site-packages/poetry/core/pyproject/toml.py", > > line 74, in poetry_config > > assert isinstance(config, Table) > > AssertionError > > [end of output] > > > > note: This error originates from a subprocess, and is likely not a > problem with pip. > > error: metadata-generation-failed > > > > × Encountered error while generating package metadata. > > ╰─> See above for output. > > > > note: This is an issue with the package mentioned above, not pip. > > hint: See above for details. > > ``` > > > > Not sure yet if this is my setup or a generic issue. I don't get the > same error with, for example, pip3 install sphinx > -- You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/bf3742f7-4694-435a-ac24-3183df0847f1n%40googlegroups.com.