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

MgClient installation Error in PYMgClient #60

Open
afeldman opened this issue Nov 14, 2023 · 1 comment
Open

MgClient installation Error in PYMgClient #60

afeldman opened this issue Nov 14, 2023 · 1 comment
Labels
bug bug community community Effort - Unknown Effort - Unknown Frequency - Monthly Frequency - Monthly Reach - VeryFew Reach - VeryFew Severity - S2 Severity - S2

Comments

@afeldman
Copy link

Hi

I want to install pymgclient and I run into problem with mgclient. So I installed mgclient seperate and it worked. How can I change the setup.py to use the installed mgclient library to avoid the error in the installation process?

`(memgraph) [anton@comp pymgclient]$ pip install --user pymgclient
Collecting pymgclient
Using cached pymgclient-1.3.1.tar.gz (125 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pymgclient
Building wheel for pymgclient (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
running bdist_wheel
running build
running build_ext
Using static OpenSSL: True
Checking if cmake3 can be used
Using /usr/bin/cmake3
Preparing the build environment for mgclient
Using /tmp/pip-install-h0caef9e/pymgclient_c2d578c78849442690ef3f64202b7eb6/build/temp.linux-x86_64-cpython-39/mgclient_build as build directory for mgclient
Using /tmp/pip-install-h0caef9e/pymgclient_c2d578c78849442690ef3f64202b7eb6/build/temp.linux-x86_64-cpython-39/mgclient_install as install directory for mgclient
Configuring mgclient
/usr/bin/cmake3 /tmp/pip-install-h0caef9e/pymgclient_c2d578c78849442690ef3f64202b7eb6/mgclient -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-h0caef9e/pymgclient_c2d578c78849442690ef3f64202b7eb6/build/temp.linux-x86_64-cpython-39/mgclient_install -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_C_FLAGS="-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/anton/mambaforge/envs/memgraph/include -Werror=all"" -DOPENSSL_USE_STATIC_LIBS=ON
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /home/anton/mambaforge/envs/memgraph/bin/x86_64-conda-linux-gnu-cc
-- Check for working C compiler: /home/anton/mambaforge/envs/memgraph/bin/x86_64-conda-linux-gnu-cc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

      "/home/anton/mambaforge/envs/memgraph/bin/x86_64-conda-linux-gnu-cc"
  
    is not able to compile a simple test program.
  
    It fails with the following output:
  
      Change Dir: '/tmp/pip-install-h0caef9e/pymgclient_c2d578c78849442690ef3f64202b7eb6/build/temp.linux-x86_64-cpython-39/mgclient_build/CMakeFiles/CMakeScratch/TryCompile-Z7EYZO'
  
      Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_714f2/fast
      /usr/bin/gmake  -f CMakeFiles/cmTC_714f2.dir/build.make CMakeFiles/cmTC_714f2.dir/build
      gmake[1]: Verzeichnis „/tmp/pip-install-h0caef9e/pymgclient_c2d578c78849442690ef3f64202b7eb6/build/temp.linux-x86_64-cpython-39/mgclient_build/CMakeFiles/CMakeScratch/TryCompile-Z7EYZO“ wird betreten
      Building C object CMakeFiles/cmTC_714f2.dir/testCCompiler.c.o
      /home/anton/mambaforge/envs/memgraph/bin/x86_64-conda-linux-gnu-cc   "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/anton/mambaforge/envs/memgraph/include -Werror=all"  -fPIE -o CMakeFiles/cmTC_714f2.dir/testCCompiler.c.o -c /tmp/pip-install-h0caef9e/pymgclient_c2d578c78849442690ef3f64202b7eb6/build/temp.linux-x86_64-cpython-39/mgclient_build/CMakeFiles/CMakeScratch/TryCompile-Z7EYZO/testCCompiler.c
      cc1: error: bad value ('nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/anton/mambaforge/envs/memgraph/include -Werror=all') for '-march=' switch
      cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 x86-64-v2 x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 native
      gmake[1]: *** [CMakeFiles/cmTC_714f2.dir/build.make:78: CMakeFiles/cmTC_714f2.dir/testCCompiler.c.o] Fehler 1
      gmake[1]: Verzeichnis „/tmp/pip-install-h0caef9e/pymgclient_c2d578c78849442690ef3f64202b7eb6/build/temp.linux-x86_64-cpython-39/mgclient_build/CMakeFiles/CMakeScratch/TryCompile-Z7EYZO“ wird verlassen
      gmake: *** [Makefile:127: cmTC_714f2/fast] Fehler 2
  
  
  
  
  
    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:22 (project)
  
  
  -- Configuring incomplete, errors occurred!
  error: command '/usr/bin/cmake3' failed with exit code 1
  [end of output]

`

@antejavor
Copy link

Hi @afeldman thanks for opening the issue, have you been able to find the workaround in the meantime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug community community Effort - Unknown Effort - Unknown Frequency - Monthly Frequency - Monthly Reach - VeryFew Reach - VeryFew Severity - S2 Severity - S2
Projects
Development

No branches or pull requests

3 participants