Closed anjugopinath closed 3 years ago
Hi, thank you for your interest in our work! We use Miniconda 4.9.2. However, we could not reproduce this failure after reinstalling the environment. Maybe this issue can help you?
Thank You for your quick response I have attached a log.txt file which contains the first portion of the error message. And I have pasted the remainder of the error message after that.
One of the lines is " /s/red/a/nobackup/vision/anju/CPF1/cpf1/compiler_compat/ld: cannot find -lOSMesa" May I know which version of python you used please?
I found a workaround. I commented out opendr from environment.yaml file and installed opendr from source. But, I would like to know why the environment setup with opendr in the yaml file didn't work. log.txt
Pip subprocess error: Running command git clone -q https://github.com/utiasSTARS/liegroups.git /tmp/pip-req-build-f5bqykzf ERROR: Command errored out with exit status 1: command: /s/red/a/nobackup/vision/anju/CPF1/cpf1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8e36rin3/opendr/setup.py'"'"'; file='"'"'/tmp/pip-install-8e36rin3/opendr/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-4en4cr6u cwd: /tmp/pip-install-8e36rin3/opendr/ Complete output (69 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/opendr copying opendr/version.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/utils.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/util_tests.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/topology.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/test_sh.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/test_renderer.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/test_geometry.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/test_depth_renderer.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/test_camera.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/slider_demo.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/simple.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/serialization.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/renderer.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/occlusion_test.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/lighting.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/geometry.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/filters.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/everything.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/dummy.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/cvwrap.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/common.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/camera.py -> build/lib.linux-x86_64-3.8/opendr copying opendr/init.py -> build/lib.linux-x86_64-3.8/opendr creating build/lib.linux-x86_64-3.8/opendr/contexts copying opendr/contexts/fix_warnings.py -> build/lib.linux-x86_64-3.8/opendr/contexts copying opendr/contexts/draw_triangle_shaders_3_2.py -> build/lib.linux-x86_64-3.8/opendr/contexts copying opendr/contexts/draw_triangle_shaders_2_1.py -> build/lib.linux-x86_64-3.8/opendr/contexts copying opendr/contexts/autogen.py -> build/lib.linux-x86_64-3.8/opendr/contexts copying opendr/contexts/_constants.py -> build/lib.linux-x86_64-3.8/opendr/contexts copying opendr/contexts/init.py -> build/lib.linux-x86_64-3.8/opendr/contexts creating build/lib.linux-x86_64-3.8/opendr/test_dr copying opendr/test_dr/init.py -> build/lib.linux-x86_64-3.8/opendr/test_dr running build_ext building 'opendr.contexts.ctx_mesa' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/opendr creating build/temp.linux-x86_64-3.8/opendr/contexts gcc -pthread -B /s/red/a/nobackup/vision/anju/CPF1/cpf1/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DOSMESA=1 -Iopendr/contexts -I. -I/s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include -Iopendr/contexts/OSMesa/include -I/s/red/a/nobackup/vision/anju/CPF1/cpf1/include/python3.8 -c opendr/contexts/ctx_mesa.c -o build/temp.linux-x86_64-3.8/opendr/contexts/ctx_mesa.o -lstdc++ In file included from /s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822, from /s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4, from opendr/contexts/ctx_mesa.c:657: /s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
^~~~~~~
In file included from opendr/contexts/ctx_mesa.c:663:
opendr/contexts/OSMesa/include/GL/osmesa.h:258:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^~~
opendr/contexts/ctx_mesa.c: In function ‘pyx_pf_6opendr_8contexts_8ctx_mesa_13OsContextBase_150ShaderSource’:
opendr/contexts/ctx_mesa.c:13164:50: warning: passing argument 3 of ‘glShaderSource’ from incompatible pointer type [-Wincompatible-pointer-types]
glShaderSource(pyx_v_shader, pyx_v_count, (&pyx_v_s), (&__pyx_v_len));
~^~~
In file included from opendr/contexts/OSMesa/include/GL/gl.h:2085,
from opendr/contexts/gl_includes.h:10,
from opendr/contexts/ctx_mesa.c:662:
opendr/contexts/OSMesa/include/GL/glext.h:5794:82: note: expected ‘const GLchar ’ {aka ‘const char ’} but argument is of type ‘char *’
GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar string, const GLint length);
gcc -pthread -shared -B /s/red/a/nobackup/vision/anju/CPF1/cpf1/compiler_compat -L/s/red/a/nobackup/vision/anju/CPF1/cpf1/lib -Wl,-rpath=/s/red/a/nobackup/vision/anju/CPF1/cpf1/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.8/opendr/contexts/ctx_mesa.o -Lopendr/contexts/OSMesa/lib -lOSMesa -lGL -lGLU -o build/lib.linux-x86_64-3.8/opendr/contexts/ctx_mesa.cpython-38-x86_64-linux-gnu.so -lstdc++
/s/red/a/nobackup/vision/anju/CPF1/cpf1/compiler_compat/ld: cannot find -lOSMesa
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for opendr
ERROR: scikit-image 0.17.2 requires PyWavelets>=1.1.1, which is not installed.
ERROR: Command errored out with exit status 1:
command: /s/red/a/nobackup/vision/anju/CPF1/cpf1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8e36rin3/opendr/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8e36rin3/opendr/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-onovco1v/install-record.txt --single-version-externally-managed --compile --install-headers /s/red/a/nobackup/vision/anju/CPF1/cpf1/include/python3.8/opendr
cwd: /tmp/pip-install-8e36rin3/opendr/
Complete output (69 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/opendr
copying opendr/version.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/utils.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/util_tests.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/topology.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/test_sh.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/test_renderer.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/test_geometry.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/test_depth_renderer.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/test_camera.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/slider_demo.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/simple.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/serialization.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/renderer.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/occlusion_test.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/lighting.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/geometry.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/filters.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/everything.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/dummy.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/cvwrap.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/common.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/camera.py -> build/lib.linux-x86_64-3.8/opendr
copying opendr/__init__.py -> build/lib.linux-x86_64-3.8/opendr
creating build/lib.linux-x86_64-3.8/opendr/contexts
copying opendr/contexts/fix_warnings.py -> build/lib.linux-x86_64-3.8/opendr/contexts
copying opendr/contexts/draw_triangle_shaders_3_2.py -> build/lib.linux-x86_64-3.8/opendr/contexts
copying opendr/contexts/draw_triangle_shaders_2_1.py -> build/lib.linux-x86_64-3.8/opendr/contexts
copying opendr/contexts/autogen.py -> build/lib.linux-x86_64-3.8/opendr/contexts
copying opendr/contexts/_constants.py -> build/lib.linux-x86_64-3.8/opendr/contexts
copying opendr/contexts/__init__.py -> build/lib.linux-x86_64-3.8/opendr/contexts
creating build/lib.linux-x86_64-3.8/opendr/test_dr
copying opendr/test_dr/__init__.py -> build/lib.linux-x86_64-3.8/opendr/test_dr
running build_ext
building 'opendr.contexts.ctx_mesa' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/opendr
creating build/temp.linux-x86_64-3.8/opendr/contexts
gcc -pthread -B /s/red/a/nobackup/vision/anju/CPF1/cpf1/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D__OSMESA__=1 -Iopendr/contexts -I. -I/s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include -Iopendr/contexts/OSMesa/include -I/s/red/a/nobackup/vision/anju/CPF1/cpf1/include/python3.8 -c opendr/contexts/ctx_mesa.c -o build/temp.linux-x86_64-3.8/opendr/contexts/ctx_mesa.o -lstdc++
In file included from /s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822,
from /s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from opendr/contexts/ctx_mesa.c:657:
/s/chopin/a/grad/anju/.local/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^~~~~~~
In file included from opendr/contexts/ctx_mesa.c:663:
opendr/contexts/OSMesa/include/GL/osmesa.h:258:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^~~~~~~
opendr/contexts/ctx_mesa.c: In function ‘__pyx_pf_6opendr_8contexts_8ctx_mesa_13OsContextBase_150ShaderSource’:
opendr/contexts/ctx_mesa.c:13164:50: warning: passing argument 3 of ‘glShaderSource’ from incompatible pointer type [-Wincompatible-pointer-types]
glShaderSource(__pyx_v_shader, __pyx_v_count, (&__pyx_v_s), (&__pyx_v_len));
~^~~~~~~~~~~
In file included from opendr/contexts/OSMesa/include/GL/gl.h:2085,
from opendr/contexts/gl_includes.h:10,
from opendr/contexts/ctx_mesa.c:662:
opendr/contexts/OSMesa/include/GL/glext.h:5794:82: note: expected ‘const GLchar **’ {aka ‘const char **’} but argument is of type ‘char **’
GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
~~~~~~~~~~~~~~~^~~~~~
gcc -pthread -shared -B /s/red/a/nobackup/vision/anju/CPF1/cpf1/compiler_compat -L/s/red/a/nobackup/vision/anju/CPF1/cpf1/lib -Wl,-rpath=/s/red/a/nobackup/vision/anju/CPF1/cpf1/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.8/opendr/contexts/ctx_mesa.o -Lopendr/contexts/OSMesa/lib -lOSMesa -lGL -lGLU -o build/lib.linux-x86_64-3.8/opendr/contexts/ctx_mesa.cpython-38-x86_64-linux-gnu.so -lstdc++
/s/red/a/nobackup/vision/anju/CPF1/cpf1/compiler_compat/ld: cannot find -lOSMesa
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /s/red/a/nobackup/vision/anju/CPF1/cpf1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8e36rin3/opendr/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8e36rin3/opendr/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-onovco1v/install-record.txt --single-version-externally-managed --compile --install-headers /s/red/a/nobackup/vision/anju/CPF1/cpf1/include/python3.8/opendr Check the logs for full command output.
CondaEnvException: Pip failed
quote
cannot find -lOSMesa
You may need to install package osmesa
on your machine.
If you happen to use ubuntu, you could possibly try install this package: libosmesa6-dev
Could you tell me which version of Anaconda to use please? I am getting the below error:
neptune:/s/red/a/nobackup/vision/anju/CPF$ conda env create -f environment.yaml Collecting package metadata (repodata.json): done Solving environment: done
==> WARNING: A newer version of conda exists. <== current version: 4.9.2 latest version: 4.10.1
Please update conda by running
Preparing transaction: done Verifying transaction: done Executing transaction: done Installing pip dependencies: | Ran pip subprocess with arguments: ['/s/chopin/a/grad/anju/.conda/envs/cpf/bin/python', '-m', 'pip', 'install', '-U', '-r', '/s/red/a/nobackup/vision/anju/CPF/condaenv.agtpjn0v.requirements.txt'] Pip subprocess output: Collecting git+https://github.com/utiasSTARS/liegroups.git (from -r /s/red/a/nobackup/vision/anju/CPF/condaenv.agtpjn0v.requirements.txt (line 1)) Cloning https://github.com/utiasSTARS/liegroups.git to /tmp/pip-req-build-ey_prxpa Obtaining file:///s/red/a/nobackup/vision/anju/CPF/manopth (from -r /s/red/a/nobackup/vision/anju/CPF/condaenv.agtpjn0v.requirements.txt (line 12)) Obtaining file:///s/red/a/nobackup/vision/anju/CPF (from -r /s/red/a/nobackup/vision/anju/CPF/condaenv.agtpjn0v.requirements.txt (line 13)) Collecting trimesh==3.8.10 Using cached trimesh-3.8.10-py3-none-any.whl (625 kB) Collecting open3d==0.10.0.0 Using cached open3d-0.10.0.0-cp38-cp38-manylinux1_x86_64.whl (4.7 MB) Collecting pyrender==0.1.43 Using cached pyrender-0.1.43-py3-none-any.whl (1.2 MB) Collecting scikit-learn==0.23.2 Using cached scikit_learn-0.23.2-cp38-cp38-manylinux1_x86_64.whl (6.8 MB) Collecting chumpy==0.69 Using cached chumpy-0.69.tar.gz (50 kB)
Pip subprocess error: Running command git clone -q https://github.com/utiasSTARS/liegroups.git /tmp/pip-req-build-ey_prxpa ERROR: Command errored out with exit status 1: command: /s/chopin/a/grad/anju/.conda/envs/cpf/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hnf78qhk/chumpy/setup.py'"'"'; file='"'"'/tmp/pip-install-hnf78qhk/chumpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-k7bp5gq7 cwd: /tmp/pip-install-hnf78qhk/chumpy/ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-install-hnf78qhk/chumpy/setup.py", line 15, in
install_requires = [str(ir.req) for ir in install_reqs]
File "/tmp/pip-install-hnf78qhk/chumpy/setup.py", line 15, in
install_requires = [str(ir.req) for ir in install_reqs]
AttributeError: 'ParsedRequirement' object has no attribute 'req'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
failed
CondaEnvException: Pip failed