Skip to content

BUG: pandas 1.1.3 fails to install using pip and clang due to unreachable code #37385

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

Closed
2 of 3 tasks
Chaz6 opened this issue Oct 24, 2020 · 1 comment
Closed
2 of 3 tasks
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@Chaz6
Copy link

Chaz6 commented Oct 24, 2020

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • (optional) I have confirmed this bug exists on the master branch of pandas.


Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.

Code Sample, a copy-pastable example

pip3 install -U --user pandas

Problem description

The installation fails with the following output:-

  clang -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -Ipandas/_libs/src/klib -I/tmp/
pip-build-env-ikhpgen8/overlay/lib/python3.9/site-packages/numpy/core/include -I/home/chaz/.local/local/python-3.9.0/include/python3.9 -c pandas/_libs/algos.c -o build/temp.linux-x
86_64-3.9/pandas/_libs/algos.o -Werror
  pandas/_libs/algos.c:81785:3: error: code will never be executed [-Werror,-Wunreachable-code]
    __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
    ^~~~~~~~~~~~~~~~~~~~~~~
  pandas/_libs/algos.c:83402:3: error: code will never be executed [-Werror,-Wunreachable-code]
    __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
    ^~~~~~~~~~~~~~~~~~~~~~~
  pandas/_libs/algos.c:84302:3: error: code will never be executed [-Werror,-Wunreachable-code]
    __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
    ^~~~~~~~~~~~~~~~~~~~~~~
  pandas/_libs/algos.c:85202:3: error: code will never be executed [-Werror,-Wunreachable-code]
    __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
    ^~~~~~~~~~~~~~~~~~~~~~~
  pandas/_libs/algos.c:85385:3: error: code will never be executed [-Werror,-Wunreachable-code]
    __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
    ^~~~~~~~~~~~~~~~~~~~~~~
  pandas/_libs/algos.c:86285:3: error: code will never be executed [-Werror,-Wunreachable-code]
    __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
    ^~~~~~~~~~~~~~~~~~~~~~~
  6 errors generated.
  error: command '/home/chaz/.local/local/clang+llvm/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for pandas

Expected Output

The module should be installed successfully.

Output of pd.show_versions()

N/A

[paste the output of pd.show_versions() here leaving a blank line after the details tag]

@Chaz6 Chaz6 added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 24, 2020
@Chaz6
Copy link
Author

Chaz6 commented Oct 24, 2020

This is a duplicate of #32882

@Chaz6 Chaz6 closed this as completed Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

No branches or pull requests

1 participant