-
Notifications
You must be signed in to change notification settings - Fork 330
Closed
Labels
Description
Bug description
Went to launch a workspace today post Dazzle upgrade on workspace-full and now pip install fasttext
is no longer working. Can confirm it installs when using the legacy tag.
Steps to reproduce
Using the docker file:
FROM gitpod/workspace-full
RUN pip install fasttext
build in the usual docker way: docker build -f fasttext.DockerFile -t fasttext .
Should cause:
docker build -f fasttext.DockerFile -t fasttext .
[+] Building 10.9s (5/5) FINISHED
=> [internal] load build definition from fasttext.DockerFile 0.0s
=> => transferring dockerfile: 105B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/gitpod/workspace-full:latest 0.3s
=> CACHED [1/2] FROM docker.io/gitpod/workspace-full@sha256:0353c7e0d9f62e4975f8121ad3637ec4aaf89b33770ff7fe28d1635006706ba2 0.0s
=> ERROR [2/2] RUN pip install fasttext 10.1s
------
> [2/2] RUN pip install fasttext:
#5 1.505 Collecting fasttext
#5 1.691 Downloading fasttext-0.9.2.tar.gz (68 kB)
#5 5.099 Collecting numpy
#5 5.138 Downloading numpy-1.22.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)
#5 6.288 Collecting pybind11>=2.2
#5 6.290 Using cached pybind11-2.9.0-py2.py3-none-any.whl (210 kB)
#5 6.313 Requirement already satisfied: setuptools>=0.7.0 in /usr/lib/python3/dist-packages (from fasttext) (45.2.0)
#5 6.314 Building wheels for collected packages: fasttext
#5 6.315 Building wheel for fasttext (setup.py): started
#5 6.785 Building wheel for fasttext (setup.py): finished with status 'error'
#5 6.785 ERROR: Command errored out with exit status 1:
#5 6.785 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6y7cj5hw/fasttext/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6y7cj5hw/fasttext/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ugq0tn8d
#5 6.785 cwd: /tmp/pip-install-6y7cj5hw/fasttext/
#5 6.785 Complete output (38 lines):
#5 6.785 running bdist_wheel
#5 6.785 running build
#5 6.785 running build_py
#5 6.785 creating build
#5 6.785 creating build/lib.linux-x86_64-3.8
#5 6.785 creating build/lib.linux-x86_64-3.8/fasttext
#5 6.785 copying python/fasttext_module/fasttext/FastText.py -> build/lib.linux-x86_64-3.8/fasttext
#5 6.785 copying python/fasttext_module/fasttext/__init__.py -> build/lib.linux-x86_64-3.8/fasttext
#5 6.785 creating build/lib.linux-x86_64-3.8/fasttext/util
#5 6.785 copying python/fasttext_module/fasttext/util/util.py -> build/lib.linux-x86_64-3.8/fasttext/util
#5 6.785 copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/util
#5 6.785 creating build/lib.linux-x86_64-3.8/fasttext/tests
#5 6.785 copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.linux-x86_64-3.8/fasttext/tests
#5 6.785 copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.linux-x86_64-3.8/fasttext/tests
#5 6.785 copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/tests
#5 6.785 running build_ext
#5 6.785 creating tmp
#5 6.785 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /tmp/tmp5ra3muh9.cpp -o tmp/tmp5ra3muh9.o -std=c++14
#5 6.785 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /tmp/tmpvmr1tgfk.cpp -o tmp/tmpvmr1tgfk.o -fvisibility=hidden
#5 6.785 building 'fasttext_pybind' extension
#5 6.785 creating build/temp.linux-x86_64-3.8
#5 6.785 creating build/temp.linux-x86_64-3.8/python
#5 6.785 creating build/temp.linux-x86_64-3.8/python/fasttext_module
#5 6.785 creating build/temp.linux-x86_64-3.8/python/fasttext_module/fasttext
#5 6.785 creating build/temp.linux-x86_64-3.8/python/fasttext_module/fasttext/pybind
#5 6.785 creating build/temp.linux-x86_64-3.8/src
#5 6.785 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include -I/workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include -Isrc -I/usr/include/python3.8 -c python/fasttext_module/fasttext/pybind/fasttext_pybind.cc -o build/temp.linux-x86_64-3.8/python/fasttext_module/fasttext/pybind/fasttext_pybind.o -DVERSION_INFO="0.9.2" -std=c++14 -fvisibility=hidden
#5 6.785 In file included from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:12,
#5 6.785 from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/cast.h:13,
#5 6.785 from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/attr.h:13,
#5 6.785 from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:13,
#5 6.785 from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/numpy.h:12,
#5 6.785 from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
#5 6.785 /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/detail/common.h:209:10: fatal error: Python.h: No such file or directory
#5 6.785 209 | #include <Python.h>
#5 6.785 | ^~~~~~~~~~
#5 6.785 compilation terminated.
#5 6.785 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
#5 6.785 ----------------------------------------
#5 6.785 ERROR: Failed building wheel for fasttext
#5 6.785 Running setup.py clean for fasttext
#5 6.965 Failed to build fasttext
#5 6.984 Installing collected packages: numpy, pybind11, fasttext
#5 9.100 Running setup.py install for fasttext: started
#5 9.479 Running setup.py install for fasttext: finished with status 'error'
#5 9.480 ERROR: Command errored out with exit status 1:
#5 9.480 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6y7cj5hw/fasttext/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6y7cj5hw/fasttext/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-62pithm7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /workspace/.pip-modules/include/python3.8/fasttext
#5 9.480 cwd: /tmp/pip-install-6y7cj5hw/fasttext/
#5 9.480 Complete output (37 lines):
#5 9.480 running install
#5 9.480 running build
#5 9.480 running build_py
#5 9.480 creating build
#5 9.480 creating build/lib.linux-x86_64-3.8
#5 9.480 creating build/lib.linux-x86_64-3.8/fasttext
#5 9.480 copying python/fasttext_module/fasttext/FastText.py -> build/lib.linux-x86_64-3.8/fasttext
#5 9.480 copying python/fasttext_module/fasttext/__init__.py -> build/lib.linux-x86_64-3.8/fasttext
#5 9.480 creating build/lib.linux-x86_64-3.8/fasttext/util
#5 9.480 copying python/fasttext_module/fasttext/util/util.py -> build/lib.linux-x86_64-3.8/fasttext/util
#5 9.480 copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/util
#5 9.480 creating build/lib.linux-x86_64-3.8/fasttext/tests
#5 9.480 copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.linux-x86_64-3.8/fasttext/tests
#5 9.480 copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.linux-x86_64-3.8/fasttext/tests
#5 9.480 copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/tests
#5 9.480 running build_ext
#5 9.480 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /tmp/tmpbb7vrk30.cpp -o tmp/tmpbb7vrk30.o -std=c++14
#5 9.480 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /tmp/tmpz4jgv59e.cpp -o tmp/tmpz4jgv59e.o -fvisibility=hidden
#5 9.480 building 'fasttext_pybind' extension
#5 9.480 creating build/temp.linux-x86_64-3.8
#5 9.480 creating build/temp.linux-x86_64-3.8/python
#5 9.480 creating build/temp.linux-x86_64-3.8/python/fasttext_module
#5 9.480 creating build/temp.linux-x86_64-3.8/python/fasttext_module/fasttext
#5 9.480 creating build/temp.linux-x86_64-3.8/python/fasttext_module/fasttext/pybind
#5 9.480 creating build/temp.linux-x86_64-3.8/src
#5 9.480 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include -I/workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include -Isrc -I/usr/include/python3.8 -c python/fasttext_module/fasttext/pybind/fasttext_pybind.cc -o build/temp.linux-x86_64-3.8/python/fasttext_module/fasttext/pybind/fasttext_pybind.o -DVERSION_INFO="0.9.2" -std=c++14 -fvisibility=hidden
#5 9.480 In file included from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:12,
#5 9.480 from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/cast.h:13,
#5 9.480 from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/attr.h:13,
#5 9.480 from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:13,
#5 9.480 from /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/numpy.h:12,
#5 9.480 from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
#5 9.480 /workspace/.pip-modules/lib/python3.8/site-packages/pybind11/include/pybind11/detail/common.h:209:10: fatal error: Python.h: No such file or directory
#5 9.480 209 | #include <Python.h>
#5 9.480 | ^~~~~~~~~~
#5 9.480 compilation terminated.
#5 9.480 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
#5 9.480 ----------------------------------------
#5 9.520 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6y7cj5hw/fasttext/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6y7cj5hw/fasttext/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-62pithm7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /workspace/.pip-modules/include/python3.8/fasttext Check the logs for full command output.
------
executor failed running [/bin/sh -c pip install fasttext]: exit code: 1
Expected behavior
it should install cleanly.
Example repository
https://github.com/gsingers/search_with_machine_learning_course/blob/main/.gitpod.Dockerfile is my full working example.
Anything else?
No response