You are not logged in.

#1 2023-05-24 13:36:20

OGsizzle
Member
Registered: 2023-03-06
Posts: 2

[SOLVED]Unable to install gqlalchemy library via pip.

upon typing the command

pip install gqlalchemy

the following response ensues:

Collecting gqlalchemy
  Using cached gqlalchemy-1.4.1-py3-none-any.whl (93 kB)
Collecting adlfs<2023.0.0,>=2022.2.0 (from gqlalchemy)
  Using cached adlfs-2022.11.2-py3-none-any.whl (25 kB)
Collecting dacite<2.0.0,>=1.6.0 (from gqlalchemy)
  Using cached dacite-1.8.1-py3-none-any.whl (14 kB)
Collecting docker<6.0.0,>=5.0.3 (from gqlalchemy)
  Using cached docker-5.0.3-py2.py3-none-any.whl (146 kB)
Collecting neo4j<5.0.0,>=4.4.3 (from gqlalchemy)
  Using cached neo4j-4.4.11-py3-none-any.whl
Requirement already satisfied: networkx<3.0.0,>=2.5.1 in ./env/lib/python3.10/site-packages (from gqlalchemy) (2.8.8)
Requirement already satisfied: numpy<2.0.0,>=1.24.1 in ./env/lib/python3.10/site-packages (from gqlalchemy) (1.24.3)
Requirement already satisfied: psutil<6.0.0,>=5.9.0 in ./env/lib/python3.10/site-packages (from gqlalchemy) (5.9.5)
Requirement already satisfied: pydantic<2.0.0,>=1.8.2 in ./env/lib/python3.10/site-packages (from gqlalchemy) (1.10.8)
Collecting pymgclient==1.3.1 (from gqlalchemy)
  Using cached pymgclient-1.3.1.tar.gz (125 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: azure-core<2.0.0,>=1.23.1 in ./env/lib/python3.10/site-packages (from adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.26.4)
Requirement already satisfied: azure-datalake-store<0.1,>=0.0.46 in ./env/lib/python3.10/site-packages (from adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (0.0.53)
Requirement already satisfied: azure-identity in ./env/lib/python3.10/site-packages (from adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.13.0)
Requirement already satisfied: azure-storage-blob>=12.12.0 in ./env/lib/python3.10/site-packages (from adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (12.16.0)
Requirement already satisfied: fsspec>=2021.10.1 in ./env/lib/python3.10/site-packages (from adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (2023.5.0)
Requirement already satisfied: aiohttp>=3.7.0 in ./env/lib/python3.10/site-packages (from adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (3.8.1)
Requirement already satisfied: websocket-client>=0.32.0 in ./env/lib/python3.10/site-packages (from docker<6.0.0,>=5.0.3->gqlalchemy) (1.5.2)
Requirement already satisfied: requests!=2.18.0,>=2.14.2 in ./env/lib/python3.10/site-packages (from docker<6.0.0,>=5.0.3->gqlalchemy) (2.28.2)
Requirement already satisfied: pytz in ./env/lib/python3.10/site-packages (from neo4j<5.0.0,>=4.4.3->gqlalchemy) (2023.3)
Requirement already satisfied: typing-extensions>=4.2.0 in ./env/lib/python3.10/site-packages (from pydantic<2.0.0,>=1.8.2->gqlalchemy) (4.6.1)
Requirement already satisfied: attrs>=17.3.0 in ./env/lib/python3.10/site-packages (from aiohttp>=3.7.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (23.1.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./env/lib/python3.10/site-packages (from aiohttp>=3.7.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (2.1.1)
Requirement already satisfied: multidict<7.0,>=4.5 in ./env/lib/python3.10/site-packages (from aiohttp>=3.7.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./env/lib/python3.10/site-packages (from aiohttp>=3.7.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in ./env/lib/python3.10/site-packages (from aiohttp>=3.7.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.9.2)
Requirement already satisfied: frozenlist>=1.1.1 in ./env/lib/python3.10/site-packages (from aiohttp>=3.7.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.3.3)
Requirement already satisfied: aiosignal>=1.1.2 in ./env/lib/python3.10/site-packages (from aiohttp>=3.7.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.3.1)
Requirement already satisfied: six>=1.11.0 in ./env/lib/python3.10/site-packages (from azure-core<2.0.0,>=1.23.1->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.16.0)
Requirement already satisfied: cffi in ./env/lib/python3.10/site-packages (from azure-datalake-store<0.1,>=0.0.46->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.15.1)
Requirement already satisfied: msal<2,>=1.16.0 in ./env/lib/python3.10/site-packages (from azure-datalake-store<0.1,>=0.0.46->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.22.0)
Requirement already satisfied: cryptography>=2.1.4 in ./env/lib/python3.10/site-packages (from azure-storage-blob>=12.12.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (40.0.2)
Requirement already satisfied: isodate>=0.6.1 in ./env/lib/python3.10/site-packages (from azure-storage-blob>=12.12.0->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (0.6.1)
Requirement already satisfied: idna<4,>=2.5 in ./env/lib/python3.10/site-packages (from requests!=2.18.0,>=2.14.2->docker<6.0.0,>=5.0.3->gqlalchemy) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./env/lib/python3.10/site-packages (from requests!=2.18.0,>=2.14.2->docker<6.0.0,>=5.0.3->gqlalchemy) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in ./env/lib/python3.10/site-packages (from requests!=2.18.0,>=2.14.2->docker<6.0.0,>=5.0.3->gqlalchemy) (2023.5.7)
Requirement already satisfied: msal-extensions<2.0.0,>=0.3.0 in ./env/lib/python3.10/site-packages (from azure-identity->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (1.0.0)
Requirement already satisfied: pycparser in ./env/lib/python3.10/site-packages (from cffi->azure-datalake-store<0.1,>=0.0.46->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (2.21)
Requirement already satisfied: PyJWT[crypto]<3,>=1.0.0 in ./env/lib/python3.10/site-packages (from msal<2,>=1.16.0->azure-datalake-store<0.1,>=0.0.46->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (2.7.0)
Requirement already satisfied: portalocker<3,>=1.0 in ./env/lib/python3.10/site-packages (from msal-extensions<2.0.0,>=0.3.0->azure-identity->adlfs<2023.0.0,>=2022.2.0->gqlalchemy) (2.7.0)
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
  ╰─> [42 lines of output]
      running bdist_wheel
      running build
      running build_ext
      Using static OpenSSL: True
      Checking if cmake3 can be used
      cmake3 is not accesible
      Checking if cmake can be used
      Using /usr/bin/cmake
      Preparing the build environment for mgclient
      Using /tmp/pip-install-qlzxr416/pymgclient_6a4b7e53ccae4dec84db1645dcf5b4af/build/temp.linux-x86_64-3.10/mgclient_build as build directory for mgclient
      Using /tmp/pip-install-qlzxr416/pymgclient_6a4b7e53ccae4dec84db1645dcf5b4af/build/temp.linux-x86_64-3.10/mgclient_install as install directory for mgclient
      Configuring mgclient
      /usr/bin/cmake /tmp/pip-install-qlzxr416/pymgclient_6a4b7e53ccae4dec84db1645dcf5b4af/mgclient -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-qlzxr416/pymgclient_6a4b7e53ccae4dec84db1645dcf5b4af/build/temp.linux-x86_64-3.10/mgclient_install -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_C_FLAGS=\"-Werror=all\" -DOPENSSL_USE_STATIC_LIBS=ON
      -- The C compiler identification is GNU 12.2.1
      -- The CXX compiler identification is GNU 12.2.1
      -- 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
      -- ON LINUX BUILD
      -- BUILD_TESTING: OFF
      -- BUILD_TESTING_INTEGRATION: OFF
      -- BUILD_CPP_BINDINGS: OFF
      -- CMake build type: Release
      CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
        Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
        system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
        version "3.0.8")
      Call Stack (most recent call first):
        /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
        /usr/share/cmake/Modules/FindOpenSSL.cmake:670 (find_package_handle_standard_args)
        src/CMakeLists.txt:50 (find_package)
      
      
      -- Configuring incomplete, errors occurred!
      error: command '/usr/bin/cmake' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pymgclient
  Running setup.py clean for pymgclient
Failed to build pymgclient
ERROR: Could not build wheels for pymgclient, which is required to install pyproject.toml-based projects

I really have no idea what to do at this point, any help would be appreciated. Thanks
Also, this is the only library I have faced so far which gives the error.

Last edited by OGsizzle (2023-05-24 13:47:48)

Offline

#2 2023-05-24 13:41:51

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED]Unable to install gqlalchemy library via pip.

Offline

#3 2023-05-24 13:54:56

OGsizzle
Member
Registered: 2023-03-06
Posts: 2

Re: [SOLVED]Unable to install gqlalchemy library via pip.

Thank you so much. It works now.

Offline

Board footer

Powered by FluxBB