ulfaslak / infostop

Python package for detecting stops in trajectory data
Other
62 stars 9 forks source link

`pip3 install infostop` does not work on Flask server #22

Open charlesdaigle opened 2 years ago

charlesdaigle commented 2 years ago

My AWS Ubuntu Flask server has the following output when executing pip3 install infostop

The server is now not responding to any inputs and any attempt to SSH times out.

The server is running the following install of Ubuntu:

Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-1083-aws x86_64)

I was able to install the package successfully (via pip3) on:

Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: focal

Here is the output from the Flask server:

Collecting infostop Using cached https://files.pythonhosted.org/packages/d9/12/dbf882969ec336374324aee9bee0183066e6380fa3dd6b2d303d507618a4/infostop-0.1.9.tar.gz Collecting folium>=0.7.0 (from infostop) Using cached https://files.pythonhosted.org/packages/b9/05/bb30dc97efa1b431c88deac7a77af3d62df1423574c4fe2d5a10a4932e85/folium-0.12.1.post1-py2.py3-none-any.whl Collecting infomap==1.0.6 (from infostop) Using cached https://files.pythonhosted.org/packages/f5/00/7a4cdb23d036df92c516f6decc0b1f6d04f5a9071a9ab6219be128e6b4a1/infomap-1.0.6.tar.gz Collecting numpy (from infostop) Using cached https://files.pythonhosted.org/packages/45/b2/6c7545bb7a38754d63048c7696804a0d947328125d81bf12beaa692c3ae3/numpy-1.19.5-cp36-cp36m-manylinux1_x86_64.whl Collecting pybind11>=2.4 (from infostop) Using cached https://files.pythonhosted.org/packages/9a/7f/855560aa568e50bea6012ed535e6b8c436e99394f3e5a649d44d2e557242/pybind11-2.10.0-py3-none-any.whl Collecting scikit-learn (from infostop) Using cached https://files.pythonhosted.org/packages/f5/ef/bcd79e8d59250d6e8478eb1290dc6e05be42b3be8a86e3954146adbc171a/scikit_learn-0.24.2-cp36-cp36m-manylinux1_x86_64.whl Collecting tqdm (from infostop) Using cached https://files.pythonhosted.org/packages/47/bb/849011636c4da2e44f1253cd927cfb20ada4374d8b3a4e425416e84900cc/tqdm-4.64.1-py2.py3-none-any.whl Collecting branca>=0.3.0 (from folium>=0.7.0->infostop) Using cached https://files.pythonhosted.org/packages/6c/e2/16ce27dbfbc48b460e95aa2e900e905d3f1069b89d992820234d41f0db95/branca-0.5.0-py3-none-any.whl Collecting jinja2>=2.9 (from folium>=0.7.0->infostop) Using cached https://files.pythonhosted.org/packages/20/9a/e5d9ec41927401e41aea8af6d16e78b5e612bca4699d417f646a9610a076/Jinja2-3.0.3-py3-none-any.whl Collecting requests (from folium>=0.7.0->infostop) Using cached https://files.pythonhosted.org/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl Collecting joblib>=0.11 (from scikit-learn->infostop) Using cached https://files.pythonhosted.org/packages/3e/d5/0163eb0cfa0b673aa4fe1cd3ea9d8a81ea0f32e50807b0c295871e4aab2e/joblib-1.1.0-py2.py3-none-any.whl Collecting scipy>=0.19.1 (from scikit-learn->infostop) Using cached https://files.pythonhosted.org/packages/c8/89/63171228d5ced148f5ced50305c89e8576ffc695a90b58fe5bb602b910c2/scipy-1.5.4-cp36-cp36m-manylinux1_x86_64.whl Collecting threadpoolctl>=2.0.0 (from scikit-learn->infostop) Using cached https://files.pythonhosted.org/packages/61/cf/6e354304bcb9c6413c4e02a747b600061c21d38ba51e7e544ac7bc66aecc/threadpoolctl-3.1.0-py3-none-any.whl Collecting importlib-resources; python_version < "3.7" (from tqdm->infostop) Using cached https://files.pythonhosted.org/packages/24/1b/33e489669a94da3ef4562938cd306e8fa915e13939d7b8277cb5569cb405/importlib_resources-5.4.0-py3-none-any.whl Collecting MarkupSafe>=2.0 (from jinja2>=2.9->folium>=0.7.0->infostop) Using cached https://files.pythonhosted.org/packages/fc/d6/57f9a97e56447a1e340f8574836d3b636e2c14de304943836bd645fa9c7e/MarkupSafe-2.0.1-cp36-cp36m-manylinux1_x86_64.whl Collecting urllib3<1.27,>=1.21.1 (from requests->folium>=0.7.0->infostop) Using cached https://files.pythonhosted.org/packages/6f/de/5be2e3eed8426f871b170663333a0f627fc2924cc386cd41be065e7ea870/urllib3-1.26.12-py2.py3-none-any.whl Collecting idna<4,>=2.5; python_version >= "3" (from requests->folium>=0.7.0->infostop) Using cached https://files.pythonhosted.org/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl Collecting charset-normalizer~=2.0.0; python_version >= "3" (from requests->folium>=0.7.0->infostop) Using cached https://files.pythonhosted.org/packages/06/b3/24afc8868eba069a7f03650ac750a778862dc34941a4bebeb58706715726/charset_normalizer-2.0.12-py3-none-any.whl Collecting certifi>=2017.4.17 (from requests->folium>=0.7.0->infostop) Using cached https://files.pythonhosted.org/packages/6a/34/cd29f4dd8a23ce45f2b8ce9631ff2d4205fb74eddb412a3dc4fd1e4aa800/certifi-2022.9.14-py3-none-any.whl Collecting zipp>=3.1.0; python_version < "3.10" (from importlib-resources; python_version < "3.7"->tqdm->infostop) Using cached https://files.pythonhosted.org/packages/bd/df/d4a4974a3e3957fd1c1fa3082366d7fff6e428ddb55f074bf64876f8e8ad/zipp-3.6.0-py3-none-any.whl Building wheels for collected packages: infostop, infomap Running setup.py bdist_wheel for infostop ... done Stored in directory: /home/ubuntu/.cache/pip/wheels/7c/1f/71/96880dc21dc2e4abd8ae95c138f4e0e6a8caac7c6b3d3691c2 Running setup.py bdist_wheel for infomap ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9awvqi_s/infomap/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/tmpatoxx3yhpip-wheel- --python-tag cp36: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.6 copying infomap.py -> build/lib.linux-x86_64-3.6 copying package_meta.py -> build/lib.linux-x86_64-3.6 running egg_info writing infomap.egg-info/PKG-INFO writing dependency_links to infomap.egg-info/dependency_links.txt writing entry points to infomap.egg-info/entry_points.txt writing top-level names to infomap.egg-info/top_level.txt reading manifest file 'infomap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'infomap.egg-info/SOURCES.txt' running build_ext building '_infomap' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/src creating build/temp.linux-x86_64-3.6/src/utils creating build/temp.linux-x86_64-3.6/src/io creating build/temp.linux-x86_64-3.6/src/core x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iheaders -Iheaders/src -Iheaders/src/core -Iheaders/src/io -Iheaders/src/utils -I/usr/include/python3.6m -c ./infomap_wrap.cpp -o build/temp.linux-x86_64-3.6/./infomap_wrap.o -DAS_LIB -DPYTHON -Wno-deprecated-register -std=c++14 In file included from headers/src/core/InfomapCore.h:18:0, from headers/src/Infomap.h:13, from ./infomap_wrap.cpp:2884: headers/src/core/InfomapOptimizer.h:782:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]

pragma omp parallel for schedule(dynamic) // Use dynamic scheduling as some threads could end early

headers/src/core/InfomapOptimizer.h:942:0: warning: ignoring #pragma omp critical [-Wunknown-pragmas]

pragma omp critical (moveUpdate)

x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-7/README.Bugs for instructions. error: command 'x86_64-linux-gnu-gcc' failed with exit status 4


Failed building wheel for infomap Running setup.py clean for infomap Successfully built infostop Failed to build infomap Installing collected packages: MarkupSafe, jinja2, branca, numpy, urllib3, idna, charset-normalizer, certifi, requests, folium, infomap, pybind11, joblib, scipy, threadpoolctl, scikit-learn, zipp, importlib-resources, tqdm, infostop Running setup.py install for infomap ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9awvqi_s/infomap/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-l1ti39kz-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 copying infomap.py -> build/lib.linux-x86_64-3.6 copying package_meta.py -> build/lib.linux-x86_64-3.6 running egg_info writing infomap.egg-info/PKG-INFO writing dependency_links to infomap.egg-info/dependency_links.txt writing entry points to infomap.egg-info/entry_points.txt writing top-level names to infomap.egg-info/top_level.txt reading manifest file 'infomap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'infomap.egg-info/SOURCES.txt' running build_ext building '_infomap' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/src creating build/temp.linux-x86_64-3.6/src/utils creating build/temp.linux-x86_64-3.6/src/io creating build/temp.linux-x86_64-3.6/src/core x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iheaders -Iheaders/src -Iheaders/src/core -Iheaders/src/io -Iheaders/src/utils -I/usr/include/python3.6m -c ./infomap_wrap.cpp -o build/temp.linux-x86_64-3.6/./infomap_wrap.o -DAS_LIB -DPYTHON -Wno-deprecated-register -std=c++14 In file included from headers/src/core/InfomapCore.h:18:0, from headers/src/Infomap.h:13, from ./infomap_wrap.cpp:2884: headers/src/core/InfomapOptimizer.h:782:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]

pragma omp parallel for schedule(dynamic) // Use dynamic scheduling as some threads could end early

headers/src/core/InfomapOptimizer.h:942:0: warning: ignoring #pragma omp critical [-Wunknown-pragmas]
 #pragma omp critical (moveUpdate)

x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9awvqi_s/infomap/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-l1ti39kz-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-9awvqi_s/infomap/