lyst / lyst/lightfm

Can't seem to install with with poetry

Open
#711 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
724
PR merge metrics
No merged PRs in 30d

Description

Installing lightfm on python 3.8.11

```
× Getting requirements to build wheel did not run successfully.

│ exit code: 1

╰─> [17 lines of output]

Traceback (most recent call last):

File "/opt/pysetup/.venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in

main()

File "/opt/pysetup/.venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main

json_out['return_val'] = hook(**hook_input['kwargs'])

File "/opt/pysetup/.venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel

return hook(config_settings)

File "/tmp/pip-build-env-adt3095f/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel

return self._get_build_requires(config_settings, requirements=['wheel'])

File "/tmp/pip-build-env-adt3095f/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires

self.run_setup()

File "/tmp/pip-build-env-adt3095f/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 487, in run_setup

super().run_setup(setup_script=setup_script)

File "/tmp/pip-build-env-adt3095f/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 311, in run_setup

exec(code, locals())

File "", line 11, in

AttributeError: 'dict' object has no attribute '__LIGHTFM_SETUP__'

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.

│ exit code: 1

╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

at /opt/poetry/venv/lib/python3.8/site-packages/poetry/utils/env.py:1540 in _run

1536│ output = subprocess.check_output(

1537│ command, stderr=subprocess.STDOUT, env=env, **kwargs

1538│ )

1539│ except CalledProcessError as e:

→ 1540│ raise EnvCommandError(e, input=input_)

1541│

1542│ return decode(output)

1543│

1544│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

The following error occurred when trying to handle this error:

PoetryException

Failed to install /root/.cache/pypoetry/artifacts/55/4b/97/76f28bb1a5cc3e8cde69ba3bd8013eb7b16ea32c94c8f82238862c972d/lightfm-1.17.tar.gz

at /opt/poetry/venv/lib/python3.8/site-packages/poetry/utils/pip.py:58 in pip_install

54│

55│ try:

56│ return environment.run_pip(*args)

57│ except EnvCommandError as e:

→ 58│ raise PoetryException(f"Failed to install {path.as_posix()}") from e

59│

The command '/bin/sh -c set -ex && poetry install --without dev' returned a non-zero code: 1

script returned exit code 1
```

I see couple of threads around it but **none** of them works. like

> python -m pip install --upgrade pip setuptools wheel
python -m pip install --no-use-pep517 lightfm
pip install -r requirements.txt

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported Poetry installation with Python 3.8.11, starting from the displayed `poetry install --without dev` command and the `lightfm-1.17.tar.gz` build failure. Check the referenced `requirements.txt` installation path and traceback; done means LightFM installs successfully through Poetry without the `__LIGHTFM_SETUP__` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.