Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD: pandas build failing on Gitpod due to Meson #55214

Open
1 task done
rsm-23 opened this issue Sep 20, 2023 · 3 comments
Open
1 task done

BUILD: pandas build failing on Gitpod due to Meson #55214

rsm-23 opened this issue Sep 20, 2023 · 3 comments
Labels
Build Library building on various platforms Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@rsm-23
Copy link
Contributor

rsm-23 commented Sep 20, 2023

Installation check

Platform

Linux-6.1.44-060144-generic-x86_64-with-glibc2.31

Installation Method

Other

pandas Version

dev

Python Version

3.10.8

Installation Logs

Getting this error after my Gitpod env is setup and I try to execute python make.py clean

Traceback (most recent call last): File "/workspace/pandas/doc/make.py", line 382, in sys.exit(main()) File "/workspace/pandas/doc/make.py", line 364, in main globals()["pandas"] = importlib.import_module("pandas") File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/workspace/pandas/pandas/__init__.py", line 49, in from pandas.core.api import ( File "/workspace/pandas/pandas/core/api.py", line 1, in from pandas._libs import ( File "/workspace/pandas/pandas/_libs/__init__.py", line 16, in import pandas._libs.pandas_parser # noqa: E501 # isort: skip # type: ignore[reportUnusedImport] ModuleNotFoundError: No module named 'pandas._libs.pandas_parser'
@rsm-23 rsm-23 added Build Library building on various platforms Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 20, 2023
@rsm-23
Copy link
Contributor Author

rsm-23 commented Sep 20, 2023

When I try to build pandas again, I get the following error.

The Meson build system
  Version: 1.0.1
  Source dir: /workspace/pandas
  Build dir: /workspace/pandas/build/cp310
  Build type: native build

  ../../meson.build:2:0: ERROR: Meson version is 1.0.1 but project requires >=1.2.1

  A full log can be found at /workspace/pandas/build/cp310/meson-logs/meson-log.txt
  error: subprocess-exited-with-error
  
  × Preparing editable metadata (pyproject.toml) 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.
  full command: /usr/local/bin/python /usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_editable /tmp/tmp1rllz7pn
  cwd: /workspace/pandas
  Preparing editable metadata (pyproject.toml) ... error
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.

When I pip install meson==1.2.1, I get some other error like this:

The Meson build system
  Version: 1.2.1
  Source dir: /workspace/pandas
  Build dir: /workspace/pandas/build/cp310
  Build type: native build

  ../../meson.build:2:0: ERROR: Tried modify read only option 'vsenv'

  A full log can be found at /workspace/pandas/build/cp310/meson-logs/meson-log.txt
  error: subprocess-exited-with-error
  
  × Preparing editable metadata (pyproject.toml) 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.
  full command: /usr/local/bin/python /usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_editable /tmp/tmpejj2mnkz
  cwd: /workspace/pandas
  Preparing editable metadata (pyproject.toml) ... error
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.

@rsm-23
Copy link
Contributor Author

rsm-23 commented Sep 20, 2023

AFAIK, we shouldn't need to build Pandas on Gitpod, it builds automatically. And on top of that the issues are raising because Gitpod doesn't allow tinkering with the env. Overall the Gitpod development env is broken :/

@theuerc
Copy link
Contributor

theuerc commented Sep 30, 2023

The build instructions for gitpod are essentially an automated version of the dockerfile installation flow on https://pandas.pydata.org/docs/development/contributing_environment.html

The issue is that the installation instructions have changed recently. It's just a one-liner fix, so I'll submit a pull request right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants