Install fails on Ubuntu/Python 3.12
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- pandas, python, yaml
- Domain
- build-system
Research direction
Start with requirements.txt and reproduce the installation on Ubuntu with Python 3.12, focusing on the pinned pandas and PyYAML versions and the reported build output. Compare the failures with unpinned installations; done means the documented requirements install successfully without commenting out version constraints.
Written by the indexing model from the issue text.
Description
Had problems installing the project with python 3.12 on Ubuntu.
pyyaml and pandas failed to build.
pandas seemed to have a permissions issue when it was trying to use clang, so that might be an issue with my setup, but pyyaml seems to be a more general issue:
Collecting pyyaml<6,>=5.4.1 (from -r requirements.txt (line 10))
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/home/toonarmycaptain/PycharmProjects/ML-DVC/DVC/course-ds-base/dvc-venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/toonarmycaptain/PycharmProjects/ML-DVC/DVC/course-ds-base/dvc-venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/toonarmycaptain/PycharmProjects/ML-DVC/DVC/course-ds-base/dvc-venv/lib/python3.12/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-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 111, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 964, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 948, in run_command
super().run_command(command)
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 983, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 311, in run
self.find_sources()
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 319, in find_sources
mm.run()
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 540, in run
self.add_defaults()
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 578, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 105, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 250, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/tmp/pip-build-env-nbcjjmi0/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[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.
Either way, the project requirements seem to install just fine by commenting out the version requirements:
(dvc-venv) toonarmycaptain$ python --version
Python 3.12.3
(dvc-venv) toonarmycaptain$ cat requirements.txt
dvc>=2.8.3,<3
joblib>=1.0.1,<2
jupyter>=1.0.0,<2
jupyter_contrib_nbextensions>=0.5.1,<1
matplotlib>=3.4.3,<4
numpy>=1.21.2,<2
#pandas>=1.3.2,<2
pandas
pytest>=6.2.4,<7
python-box>=5.4.1,<6
#pyyaml>=5.4.1,<6
pyyaml
scikit-learn>=0.24.2,<2
scipy>=1.7.1,<2
tqdm>=4.62.2,<5
- Dominant language
- Jupyter Notebook
- Stars
- 48
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from iterative/course-ds-base
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
iterative/course-ds-base#40 · 5 comments ·
-
Task 6.1 - Experimenting WorkflowMay be free again @mnrozhkov claimed this 1851 days ago, and no pull request is open. Openpractice
iterative/course-ds-base#19 · 1 assignee ·
-
Task 5.3 - Metrics Tracking and Plots with StudioMay be free again @flippedcoder claimed this 1856 days ago, and no pull request is open. Openpractice
iterative/course-ds-base#17 · 1 assignee ·
-
Task 5.2 - Plots and graphics with DVCMay be free again @pared claimed this 1856 days ago, and no pull request is open. Openpractice
iterative/course-ds-base#16 · 1 comment · 1 assignee ·
-
Task 5.1 - Metrics Tracking with DVCMay be free again @mnrozhkov claimed this 1856 days ago, and no pull request is open. Openpractice
iterative/course-ds-base#15 · 1 assignee ·
All issues in iterative/course-ds-base
Similar issues
-
blast/large refactor risk/low spend-dem
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
chriskelly/MusicWall#87 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
neilotoole/sq#1503 ·
Maintainers usually reply within 1 day
-
ci-alert
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 89/100
rocq-prover/opam#3947 ·
Maintainers usually reply within 2 days
-
bug needs testing platform:windows topic:buildsystem topic:platforms
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
godotengine/godot#126110 · 1 comment ·
Maintainers usually reply within 1 day