Skip to content
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

Error installing on python 3.8.2, Ubuntu 18.04 #22

Open
sonhmai opened this issue Jun 23, 2020 · 1 comment
Open

Error installing on python 3.8.2, Ubuntu 18.04 #22

sonhmai opened this issue Jun 23, 2020 · 1 comment

Comments

@sonhmai
Copy link

sonhmai commented Jun 23, 2020

I have the following error when installing lycon on python 3.8.2 on Ubuntu 18.04. However, I was used to install and use lycon through pip install on my Mac.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

python -V
Python 3.8.2

Virtualenvwrapper is used.
../.virtualenvs/xxx/bin/python

pip install lycon

Error:
Collecting lycon
Using cached lycon-0.2.0.tar.gz (129 kB)
Requirement already satisfied: numpy in ./.virtualenvs/classifiers/lib/python3.8/site-packages (from lycon) (1.19.0)
Building wheels for collected packages: lycon
Building wheel for lycon (setup.py) ... error
ERROR: Command errored out with exit status 255:
command: /home/xxx/.virtualenvs/xxx/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h_mcqqq5/lycon/setup.py'"'"'; file='"'"'/tmp/pip-install-h_mcqqq5/lycon/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-023xrg5h
cwd: /tmp/pip-install-h_mcqqq5/lycon/
Complete output (148 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/lycon
copying lycon/enum.py -> build/lib.linux-x86_64-3.8/lycon
copying lycon/core.py -> build/lib.linux-x86_64-3.8/lycon
copying lycon/init.py -> build/lib.linux-x86_64-3.8/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'
writing manifest file 'lycon.egg-info/SOURCES.txt'
running build_ext
Source path is /tmp/pip-install-h_mcqqq5/lycon
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.34")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Python binary: /home/xxx/.virtualenvs/xxx/bin/python3.8
-- Python include path: /usr/local/include/python3.8
-- Python library path: /usr/local/lib
-- Python version: 3.8
-- Python library path: /usr/local/lib/libpython3.8.a
-- NumPy include path: /home/xxx/.virtualenvs/xxx/lib/python3.8/site-packages/numpy/core/include
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-h_mcqqq5/lycon/build/temp.linux-x86_64-3.8
Starting build with 1 jobs
Scanning dependencies of target lycon
[ 3%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/base.cc.o
[ 7%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/bitstream.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-h_mcqqq5/lycon/src/lycon/mat/umat_data.h:4:0,
from /tmp/pip-install-h_mcqqq5/lycon/src/lycon/mat/umat_data.cc:1:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/mat/umat_data.cc: In destructor ‘lycon::UMatData::~UMatData()’:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: warning: throw will always call terminate() [-Wterminate]
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/mat/umat_data.cc:33:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(mapcount == 0);
^~~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: note: in C++11 destructors default to noexcept
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/mat/umat_data.cc:33:5: note: in expansion of macro ‘LYCON_ASSERT’
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
[ 85%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/tls.cc.o
In file included from /tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:5:0:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc: In destructor ‘lycon::TlsAbstraction::~TlsAbstraction()’:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: warning: throw will always call terminate() [-Wterminate]
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:81:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(pthread_key_delete(tlsKey) == 0);
^~~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: note: in C++11 destructors default to noexcept
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:81:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(pthread_key_delete(tlsKey) == 0);
^~~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc: In destructor ‘virtual lycon::TLSDataContainer::~TLSDataContainer()’:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: warning: throw will always call terminate() [-Wterminate]
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:275:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(key_ == -1); // Key must be released in child object
^~~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: note: in C++11 destructors default to noexcept
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:275:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(key_ == -1); // Key must be released in child object
^~~~~~~~~~~~
[ 89%] Linking CXX static library liblycon.a
[ 89%] Built target lycon
Scanning dependencies of target pycon
[ 92%] Building CXX object CMakeFiles/pycon.dir/src/lycon/python/interop.cc.o
[ 96%] Building CXX object CMakeFiles/pycon.dir/src/lycon/python/module.cc.o
[100%] Linking CXX shared library _lycon.so
/usr/bin/ld: /usr/local/lib/libpython3.8.a(abstract.o): relocation R_X86_64_PC32 against symbol `PyObject_SetItem' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/pycon.dir/build.make:102: recipe for target '_lycon.so' failed
make[2]: *** [_lycon.so] Error 1
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/pycon.dir/all' failed
make[1]: *** [CMakeFiles/pycon.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
* Failed to build the Lycon native extension.
* [Error] Failed to exceute: /usr/bin/make -j 1

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: /home/xxx/.virtualenvs/xxx/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h_mcqqq5/lycon/setup.py'"'"'; file='"'"'/tmp/pip-install-h_mcqqq5/lycon/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-07a1dhne/install-record.txt --single-version-externally-managed --compile --install-headers /home/xxx/.virtualenvs/classifiers/include/site/python3.8/lycon
cwd: /tmp/pip-install-h_mcqqq5/lycon/
Complete output (148 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/lycon
copying lycon/enum.py -> build/lib.linux-x86_64-3.8/lycon
copying lycon/core.py -> build/lib.linux-x86_64-3.8/lycon
copying lycon/init.py -> build/lib.linux-x86_64-3.8/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'
writing manifest file 'lycon.egg-info/SOURCES.txt'
running build_ext
Source path is /tmp/pip-install-h_mcqqq5/lycon
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.34")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Python binary: /home/xxx/.virtualenvs/xxx/bin/python3.8
-- Python include path: /usr/local/include/python3.8
-- Python library path: /usr/local/lib
-- Python version: 3.8
-- Python library path: /usr/local/lib/libpython3.8.a
-- NumPy include path: /home/xxx/.virtualenvs/xxx/lib/python3.8/site-packages/numpy/core/include
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-h_mcqqq5/lycon/build/temp.linux-x86_64-3.8
Starting build with 1 jobs
Scanning dependencies of target lycon
[ 3%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/base.cc.o
[ 7%] Building CXX object CMakeFiles/lycon.dir/src/lycon/io/bitstream.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-h_mcqqq5/lycon/src/lycon/mat/umat_data.h:4:0,
from /tmp/pip-install-h_mcqqq5/lycon/src/lycon/mat/umat_data.cc:1:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/mat/umat_data.cc: In destructor ‘lycon::UMatData::~UMatData()’:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: warning: throw will always call terminate() [-Wterminate]
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/mat/umat_data.cc:33:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(mapcount == 0);
^~~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: note: in C++11 destructors default to noexcept
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/mat/umat_data.cc:33:5: note: in expansion of macro ‘LYCON_ASSERT’
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
[ 85%] Building CXX object CMakeFiles/lycon.dir/src/lycon/util/tls.cc.o
In file included from /tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:5:0:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc: In destructor ‘lycon::TlsAbstraction::~TlsAbstraction()’:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: warning: throw will always call terminate() [-Wterminate]
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:81:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(pthread_key_delete(tlsKey) == 0);
^~~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: note: in C++11 destructors default to noexcept
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:81:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(pthread_key_delete(tlsKey) == 0);
^~~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc: In destructor ‘virtual lycon::TLSDataContainer::~TLSDataContainer()’:
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: warning: throw will always call terminate() [-Wterminate]
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:275:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(key_ == -1); // Key must be released in child object
^~~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:31:35: note: in C++11 destructors default to noexcept
throw RuntimeError(err_msg);
^
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/error.h:40:9: note: in expansion of macro ‘LYCON_ERROR’
LYCON_ERROR("Assertion Failure: %s evaluated to false in %s (%s:%d)", #expr, LYCON_Func, FILE, LINE)
^~~~~~~~~~~
/tmp/pip-install-h_mcqqq5/lycon/src/lycon/util/tls.cc:275:5: note: in expansion of macro ‘LYCON_ASSERT’
LYCON_ASSERT(key_ == -1); // Key must be released in child object
^~~~~~~~~~~~
[ 89%] Linking CXX static library liblycon.a
[ 89%] Built target lycon
Scanning dependencies of target pycon
[ 92%] Building CXX object CMakeFiles/pycon.dir/src/lycon/python/interop.cc.o
[ 96%] Building CXX object CMakeFiles/pycon.dir/src/lycon/python/module.cc.o
[100%] Linking CXX shared library _lycon.so
/usr/bin/ld: /usr/local/lib/libpython3.8.a(abstract.o): relocation R_X86_64_PC32 against symbol `PyObject_SetItem' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/pycon.dir/build.make:102: recipe for target '_lycon.so' failed
make[2]: *** [_lycon.so] Error 1
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/pycon.dir/all' failed
make[1]: *** [CMakeFiles/pycon.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
* Failed to build the Lycon native extension.
* [Error] Failed to exceute: /usr/bin/make -j 1

ERROR: Command errored out with exit status 255: /home/xxx/.virtualenvs/xxx/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h_mcqqq5/lycon/setup.py'"'"'; file='"'"'/tmp/pip-install-h_mcqqq5/lycon/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-07a1dhne/install-record.txt --single-version-externally-managed --compile --install-headers /home/xxx/.virtualenvs/xxx/include/site/python3.8/lycon Check the logs for full command output.

@huyu398
Copy link

huyu398 commented Nov 1, 2020

I encounted same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants