-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I have followed the documentation and ran the command:
sudo apt-get install cmake build-essential libjpeg-dev libpng-dev
The output shows that all the packages are already installed with the newest versions:
cmake is already the newest version (3.28.3-1build7).
build-essential is already the newest version (12.10ubuntu1).
libjpeg-dev is already the newest version (8c-2ubuntu11).
libpng-dev is already the newest version (1.6.43-5build1).
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
but error
(pytorch1) @459zyt ➜ /workspaces/TRY_CYCLE_ISP (master) $ pip install lycon
Collecting lycon
Using cached lycon-0.2.0.tar.gz (129 kB)
Requirement already satisfied: numpy in /opt/conda/envs/pytorch1/lib/python3.7/site-packages (from lycon) (1.19.2)
Building wheels for collected packages: lycon
Building wheel for lycon (setup.py) ... error
ERROR: Command errored out with exit status 255:
command: /opt/conda/envs/pytorch1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/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-9diujnvb
cwd: /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/
Complete output (118 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-37
creating build/lib.linux-x86_64-cpython-37/lycon
copying lycon/__init__.py -> build/lib.linux-x86_64-cpython-37/lycon
copying lycon/enum.py -> build/lib.linux-x86_64-cpython-37/lycon
copying lycon/core.py -> build/lib.linux-x86_64-cpython-37/lycon
running egg_info
writing lycon.egg-info/PKG-INFO
writing dependency_links to lycon.egg-info/dependency_links.txt
writing requirements to lycon.egg-info/requires.txt
writing top-level names to lycon.egg-info/top_level.txt
reading manifest file 'lycon.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'lycon.egg-info/SOURCES.txt'
running build_ext
Source path is /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.43")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Python binary: /opt/conda/envs/pytorch1/bin/python
-- Python include path: /opt/conda/envs/pytorch1/include/python3.7m
-- Python library path: /opt/conda/envs/pytorch1/lib
-- Python version: 3.7
-- Python library path: /opt/conda/envs/pytorch1/lib/libpython3.7m.so
-- NumPy include path: /opt/conda/envs/pytorch1/lib/python3.7/site-packages/numpy/core/include
-- Configuring done (1.2s)
CMake Warning at CMakeLists.txt:86 (add_library):
Cannot generate a safe runtime search path for target pycon because files
in some directories may conflict with libraries in implicit directories:
runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/opt/conda/envs/pytorch1/lib
Some of these libraries may not be found correctly.
-- Generating done (0.0s)
-- Build files have been written to: /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/build/temp.linux-x86_64-cpython-37
Starting build with 2 jobs
[ 7%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/bitstream.cc.o
[ 7%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/base.cc.o
[ 10%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/exif.cc.o
[ 14%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/io.cc.o
[ 17%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/jpeg.cc.o
[ 21%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/png.cc.o
[ 25%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/allocator.cc.o
[ 28%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/convert.cc.o
[ 32%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/copy.cc.o
[ 35%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/io_array.cc.o
[ 39%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/iterator.cc.o
[ 42%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/mat.cc.o
[ 46%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/umat_data.cc.o
In file included from /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.h:4,
from /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.cc:1:
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.cc: In destructor ‘lycon::UMatData::~UMatData()’:
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/error.h:31:9: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
31 | throw RuntimeError(err_msg); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
40 | LYCON_ERROR("Assertion Failure: `%s` evaluated to false in `%s` (%s:%d)", #expr, LYCON_Func, __FILE__, __LINE__)
| ^~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.cc:33:5: note: in expansion of macro ‘LYCON_ASSERT’
33 | LYCON_ASSERT(mapcount == 0);
| ^~~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/error.h:31:9: note: in C++11 destructors default to ‘noexcept’
31 | throw RuntimeError(err_msg); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
40 | LYCON_ERROR("Assertion Failure: `%s` evaluated to false in `%s` (%s:%d)", #expr, LYCON_Func, __FILE__, __LINE__)
| ^~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.cc:33:5: note: in expansion of macro ‘LYCON_ASSERT’
33 | LYCON_ASSERT(mapcount == 0);
| ^~~~~~~~~~~~
[ 50%] Building CXX object CMakeFiles/lycon.dir/src/lycon/transform/resize.cc.o
[ 53%] Building CXX object CMakeFiles/lycon.dir/src/lycon/transform/rotate.cc.o
[ 57%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/alloc.cc.o
[ 60%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/color.cc.o
[ 64%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/file.cc.o
[ 67%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/hardware.cc.o
[ 71%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/parallel_pthreads.cc.o
[ 75%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/parallel.cc.o
[ 78%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/singleton.cc.o
[ 82%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/string.cc.o
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/parallel.cc: In function ‘int lycon::getThreadNum()’:
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/parallel.cc:427:32: error: ‘pthread_self’ was not declared in this scope; did you mean ‘pthread_t’?
427 | return (int)(size_t)(void*)pthread_self(); // no zero-based indexing
| ^~~~~~~~~~~~
| pthread_t
make[2]: *** [CMakeFiles/lycon.dir/build.make:356: CMakeFiles/lycon.dir/src/lycon/util/parallel.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/lycon.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
* Failed to build the Lycon native extension.
* [Error] Failed to exceute: /usr/bin/make -j 2
----------------------------------------
ERROR: Failed building wheel for lycon
Running setup.py clean for lycon
Failed to build lycon
Installing collected packages: lycon
Running setup.py install for lycon ... error
ERROR: Command errored out with exit status 255:
command: /opt/conda/envs/pytorch1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/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-fnmsm693/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/envs/pytorch1/include/python3.7m/lycon
cwd: /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/
Complete output (120 lines):
running install
/opt/conda/envs/pytorch1/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-37
creating build/lib.linux-x86_64-cpython-37/lycon
copying lycon/__init__.py -> build/lib.linux-x86_64-cpython-37/lycon
copying lycon/enum.py -> build/lib.linux-x86_64-cpython-37/lycon
copying lycon/core.py -> build/lib.linux-x86_64-cpython-37/lycon
running egg_info
writing lycon.egg-info/PKG-INFO
writing dependency_links to lycon.egg-info/dependency_links.txt
writing requirements to lycon.egg-info/requires.txt
writing top-level names to lycon.egg-info/top_level.txt
reading manifest file 'lycon.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'lycon.egg-info/SOURCES.txt'
running build_ext
Source path is /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.43")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Python binary: /opt/conda/envs/pytorch1/bin/python
-- Python include path: /opt/conda/envs/pytorch1/include/python3.7m
-- Python library path: /opt/conda/envs/pytorch1/lib
-- Python version: 3.7
-- Python library path: /opt/conda/envs/pytorch1/lib/libpython3.7m.so
-- NumPy include path: /opt/conda/envs/pytorch1/lib/python3.7/site-packages/numpy/core/include
-- Configuring done (1.1s)
CMake Warning at CMakeLists.txt:86 (add_library):
Cannot generate a safe runtime search path for target pycon because files
in some directories may conflict with libraries in implicit directories:
runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/opt/conda/envs/pytorch1/lib
Some of these libraries may not be found correctly.
-- Generating done (0.0s)
-- Build files have been written to: /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/build/temp.linux-x86_64-cpython-37
Starting build with 2 jobs
[ 7%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/bitstream.cc.o
[ 7%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/base.cc.o
[ 10%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/exif.cc.o
[ 14%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/io.cc.o
[ 17%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/jpeg.cc.o
[ 21%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/png.cc.o
[ 25%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/allocator.cc.o
[ 28%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/convert.cc.o
[ 32%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/copy.cc.o
[ 35%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/io_array.cc.o
[ 39%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/iterator.cc.o
[ 42%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/mat.cc.o
[ 46%] Building CXX object CMakeFiles/lycon.dir/src/lycon/mat/umat_data.cc.o
In file included from /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.h:4,
from /tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.cc:1:
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.cc: In destructor ‘lycon::UMatData::~UMatData()’:
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/error.h:31:9: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
31 | throw RuntimeError(err_msg); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
40 | LYCON_ERROR("Assertion Failure: `%s` evaluated to false in `%s` (%s:%d)", #expr, LYCON_Func, __FILE__, __LINE__)
| ^~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.cc:33:5: note: in expansion of macro ‘LYCON_ASSERT’
33 | LYCON_ASSERT(mapcount == 0);
| ^~~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/error.h:31:9: note: in C++11 destructors default to ‘noexcept’
31 | throw RuntimeError(err_msg); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
40 | LYCON_ERROR("Assertion Failure: `%s` evaluated to false in `%s` (%s:%d)", #expr, LYCON_Func, __FILE__, __LINE__)
| ^~~~~~~~~~~
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/mat/umat_data.cc:33:5: note: in expansion of macro ‘LYCON_ASSERT’
33 | LYCON_ASSERT(mapcount == 0);
| ^~~~~~~~~~~~
[ 50%] Building CXX object CMakeFiles/lycon.dir/src/lycon/transform/resize.cc.o
[ 53%] Building CXX object CMakeFiles/lycon.dir/src/lycon/transform/rotate.cc.o
[ 57%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/alloc.cc.o
[ 60%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/color.cc.o
[ 64%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/file.cc.o
[ 67%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/hardware.cc.o
[ 71%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/parallel_pthreads.cc.o
[ 75%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/parallel.cc.o
[ 78%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/singleton.cc.o
[ 82%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/string.cc.o
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/parallel.cc: In function ‘int lycon::getThreadNum()’:
/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/src/lycon/util/parallel.cc:427:32: error: ‘pthread_self’ was not declared in this scope; did you mean ‘pthread_t’?
427 | return (int)(size_t)(void*)pthread_self(); // no zero-based indexing
| ^~~~~~~~~~~~
| pthread_t
make[2]: *** [CMakeFiles/lycon.dir/build.make:356: CMakeFiles/lycon.dir/src/lycon/util/parallel.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/lycon.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
* Failed to build the Lycon native extension.
* [Error] Failed to exceute: /usr/bin/make -j 2
----------------------------------------
ERROR: Command errored out with exit status 255: /opt/conda/envs/pytorch1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fug3h4j8/lycon_fa358d3e10dc4628bc7d29b6db1b0a34/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-fnmsm693/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/envs/pytorch1/include/python3.7m/lycon Check the logs for full command output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels