Skip to content

BUG: Bug with Alpine installation #35476

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
3 tasks
AminovE99 opened this issue Jul 30, 2020 · 5 comments
Closed
3 tasks

BUG: Bug with Alpine installation #35476

AminovE99 opened this issue Jul 30, 2020 · 5 comments
Labels
Build Library building on various platforms

Comments

@AminovE99
Copy link

AminovE99 commented Jul 30, 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

# Your code here

Problem description

I work on frappe framework and I have docker-erpnext to deploy application.
When I tried to install pandas library on my linux (alpine) system, I received error:

https://travis-ci.org/github/Monogramm/docker-erpnext/jobs/713250724#L4417

By the way, this library can be installed on debian and debian-slim, but cannot be installed on alpine.

I already checked problem #7512 but it did not helped to me.

Expected Output

Pandas should be installed

Output of pd.show_versions()

pandas==0.24.2
version of python: 3.7

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

@AminovE99 AminovE99 added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 30, 2020
@AminovE99 AminovE99 changed the title BUG: BUG: Bug with Alpine Jul 30, 2020
@AminovE99 AminovE99 changed the title BUG: Bug with Alpine BUG: Bug with Alpine installation Jul 30, 2020
@shanisma
Copy link

shanisma commented Jul 30, 2020

Hi, also have a problem for installation in alpine:

Fine using pandas==1.0.5:
apk add apk add python3-dev py3-pip g++ make && pip3 install --upgrade pip setuptools wheel && pip3 install pandas=1.0.5

I get :

bash-5.0 pip3 install pandas==1.0.5
Collecting pandas==1.0.5
  Downloading pandas-1.0.5.tar.gz (5.0 MB)
     |████████████████████████████████| 5.0 MB 196 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting python-dateutil>=2.6.1
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Processing /root/.cache/pip/wheels/6d/2c/f6/a373a98f5aa5bb26ffa26430e5f076b7279ad72b53ed16cf45/numpy-1.19.1-cp38-cp38-linux_x86_64.whl
Collecting pytz>=2017.2
  Using cached pytz-2020.1-py2.py3-none-any.whl (510 kB)
Collecting six>=1.5
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: pandas
  Building wheel for pandas (PEP 517) ... done
  Created wheel for pandas: filename=pandas-1.0.5-cp38-cp38-linux_x86_64.whl size=21063903 sha256=61e3a65cd84c64f0885489e10d4cbad1e40930925c3d7e1f7dbd452ba250656b
  Stored in directory: /root/.cache/pip/wheels/45/e9/f0/382169ee6a52a0e250be20c6a4d8e3bd15c56477f3fdcfcdf4
Successfully built pandas
Installing collected packages: six, python-dateutil, numpy, pytz, pandas
Successfully installed numpy-1.19.1 pandas-1.0.5 python-dateutil-2.8.1 pytz-2020.1 six-1.15.0

Using
apk add apk add python3-dev py3-pip g++ make && pip3 install --upgrade pip setuptools wheel && pip3 install pandas

I get :

bash-5.0 pip3 install --no-binary all pandas
Collecting pandas
  Using cached pandas-1.1.0.tar.gz (5.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Processing /root/.cache/pip/wheels/6d/2c/f6/a373a98f5aa5bb26ffa26430e5f076b7279ad72b53ed16cf45/numpy-1.19.1-cp38-cp38-linux_x86_64.whl
Collecting python-dateutil>=2.7.3
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pytz>=2017.2
  Using cached pytz-2020.1-py2.py3-none-any.whl (510 kB)
Collecting six>=1.5
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: pandas
  Building wheel for pandas (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.8 /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp43a0e6te
       cwd: /tmp/pip-install-5lku9eov/pandas
  Complete output (1254 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/pandas
  copying lot of stuff [...]
  UPDATING build/lib.linux-x86_64-3.8/pandas/_version.py
  set build/lib.linux-x86_64-3.8/pandas/_version.py to '1.1.0'
  running build_ext
  building 'pandas._libs.algos' extension
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/pandas
  creating build/temp.linux-x86_64-3.8/pandas/_libs
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -Ipandas/_libs/src/klib -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/algos.c -o build/temp.linux-x86_64-3.8/pandas/_libs/algos.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/algos.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/algos.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.groupby' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/groupby.c -o build/temp.linux-x86_64-3.8/pandas/_libs/groupby.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/groupby.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/groupby.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.hashing' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/hashing.c -o build/temp.linux-x86_64-3.8/pandas/_libs/hashing.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/hashing.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/hashing.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.hashtable' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/src/klib -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/hashtable.c -o build/temp.linux-x86_64-3.8/pandas/_libs/hashtable.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/hashtable.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/hashtable.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.index' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -Ipandas/_libs/src/klib -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/index.c -o build/temp.linux-x86_64-3.8/pandas/_libs/index.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/index.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/index.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.indexing' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/indexing.c -o build/temp.linux-x86_64-3.8/pandas/_libs/indexing.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/indexing.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/indexing.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.internals' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/internals.c -o build/temp.linux-x86_64-3.8/pandas/_libs/internals.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/internals.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/internals.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.interval' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -Ipandas/_libs/src/klib -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/interval.c -o build/temp.linux-x86_64-3.8/pandas/_libs/interval.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/interval.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/interval.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.join' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/src/klib -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/join.c -o build/temp.linux-x86_64-3.8/pandas/_libs/join.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/join.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/join.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.lib' extension
  creating build/temp.linux-x86_64-3.8/pandas/_libs/src
  creating build/temp.linux-x86_64-3.8/pandas/_libs/src/parser
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs -I./pandas/_libs -I./pandas/_libs/tslibs -Ipandas/_libs/src/klib -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/lib.c -o build/temp.linux-x86_64-3.8/pandas/_libs/lib.o -Werror
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs -I./pandas/_libs -I./pandas/_libs/tslibs -Ipandas/_libs/src/klib -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/src/parser/tokenizer.c -o build/temp.linux-x86_64-3.8/pandas/_libs/src/parser/tokenizer.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/lib.o build/temp.linux-x86_64-3.8/pandas/_libs/src/parser/tokenizer.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/lib.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.missing' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/missing.c -o build/temp.linux-x86_64-3.8/pandas/_libs/missing.o -Werror  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/missing.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/missing.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.parsers' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/parsers.c -o build/temp.linux-x86_64-3.8/pandas/_libs/parsers.o -Werror
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/src/parser/tokenizer.c -o build/temp.linux-x86_64-3.8/pandas/_libs/src/parser/tokenizer.o -Werror
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/src/parser/io.c -o build/temp.linux-x86_64-3.8/pandas/_libs/src/parser/io.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/parsers.o build/temp.linux-x86_64-3.8/pandas/_libs/src/parser/tokenizer.o build/temp.linux-x86_64-3.8/pandas/_libs/src/parser/io.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/parsers.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.reduction' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/reduction.c -o build/temp.linux-x86_64-3.8/pandas/_libs/reduction.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/reduction.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/reduction.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.ops' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/ops.c -o build/temp.linux-x86_64-3.8/pandas/_libs/ops.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/ops.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/ops.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.ops_dispatch' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/ops_dispatch.c -o build/temp.linux-x86_64-3.8/pandas/_libs/ops_dispatch.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/ops_dispatch.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/ops_dispatch.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.properties' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/properties.c -o build/temp.linux-x86_64-3.8/pandas/_libs/properties.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/properties.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/properties.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.reshape' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/reshape.c -o build/temp.linux-x86_64-3.8/pandas/_libs/reshape.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/reshape.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/reshape.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.sparse' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/sparse.c -o build/temp.linux-x86_64-3.8/pandas/_libs/sparse.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/sparse.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/sparse.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslib' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslib.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslib.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslib.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslib.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.base' extension
  creating build/temp.linux-x86_64-3.8/pandas/_libs/tslibs
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/base.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/base.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/base.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslibs/base.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.ccalendar' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/ccalendar.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/ccalendar.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/ccalendar.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslibs/ccalendar.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.dtypes' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/dtypes.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/dtypes.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/dtypes.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslibs/dtypes.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.conversion' extension
  creating build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/src
  creating build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/src/datetime
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/conversion.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/conversion.o -Werror
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/src/datetime/np_datetime.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/src/datetime/np_datetime.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/conversion.o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/src/datetime/np_datetime.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslibs/conversion.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.fields' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/fields.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/fields.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/fields.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslibs/fields.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.nattype' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/nattype.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/nattype.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/nattype.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslibs/nattype.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.np_datetime' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/tslibs -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/np_datetime.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/np_datetime.o -Werror
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/tslibs -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/src/datetime/np_datetime.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/src/datetime/np_datetime.o -Werror
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/tslibs -I./pandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/src/datetime/np_datetime_strings.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/src/datetime/np_datetime_strings.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/np_datetime.o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/src/datetime/np_datetime.o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/src/datetime/np_datetime_strings.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslibs/np_datetime.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.offsets' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -Ipandas/_libs/tslibs -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/offsets.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/offsets.o -Werror
  gcc -shared -Wl,--as-needed -Wl,--as-needed build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/offsets.o -L/usr/lib -o build/lib.linux-x86_64-3.8/pandas/_libs/tslibs/offsets.cpython-38-x86_64-linux-gnu.so
  building 'pandas._libs.tslibs.parsing' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/tslibs -Ipandas/_libs/src/klib -I/tmp/pip-build-env-sw48ilgy/overlay/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pandas/_libs/tslibs/parsing.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/parsing.o -Werror
  pandas/_libs/tslibs/parsing.c: In function '__pyx_f_6pandas_5_libs_6tslibs_7parsing__parse_dateabbr_string':
  pandas/_libs/tslibs/parsing.c:7792:26: error: '__pyx_v_year' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   7792 |             __pyx_v_year = (__pyx_v_year - 1);
        |             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas which use PEP 517 and cannot be installed directly

@jreback
Copy link
Contributor

jreback commented Jul 30, 2020

you can try with 1.1
0.24.2 is pretty old at this point

there are no wheels for alpine so you must build from source
we will take patches but explicitly support

@jreback jreback closed this as completed Jul 30, 2020
@jreback jreback added Build Library building on various platforms and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 30, 2020
@NikSays
Copy link

NikSays commented Aug 8, 2020

you can try with 1.1

Having the same error when trying to install pandas 1.1.0

@isabelamaro-hotmart
Copy link

isabelamaro-hotmart commented Sep 4, 2020

I also have the same problem. Any news?

Edit: Could make it run using 1.0.5 version of pandas

@TomAugspurger
Copy link
Contributor

This is a duplicate of #33315. You would need to patch setup.py to remove the -Werror. May want to comment over there that this is causing issues on alpine. You might be able to set some CFLAGS to ignore the individual warnings as well.

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
Projects
None yet
Development

No branches or pull requests

6 participants