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

How to import pypgo #7

Open
Niu0914 opened this issue Nov 21, 2024 · 5 comments
Open

How to import pypgo #7

Niu0914 opened this issue Nov 21, 2024 · 5 comments

Comments

@Niu0914
Copy link

Niu0914 commented Nov 21, 2024

hello, i followed install.sh and it works well, however, when I run the code, it still error with ”no module named pypgo' , so how can I install pypgo?

@xmxhuihui
Copy link

My error report is like this when I run the bash install_ext.sh. Now I know that pgo is missing in the system so that the CMake could not locate it, but I could not find solutions how to install.

    CMake Error at CMakeLists.txt:9 (find_package):
      Could not find a package configuration file provided by "pgo" with any of
      the following names:

        pgoConfig.cmake
        pgo-config.cmake

      Add the installation prefix of "pgo" to CMAKE_PREFIX_PATH or set "pgo_DIR"
      to a directory containing one of the above files.  If "pgo" provides a
      separate development package or SDK, be sure it has been installed.

@infiniteYuanyl
Copy link

infiniteYuanyl commented Feb 23, 2025

I met this Problem too. I guess maybe the version of libpgo is not correct and some modules may have changed.

My error report is like this when I run the bash install_ext.sh. Now I know that pgo is missing in the system so that the CMake could not locate it, but I could not find solutions how to install.我的错误报告是这样的,当我运行 bash install_ext.sh 时。现在我知道系统中缺少了 pg,所以 CMake 找不到它,但我找不到解决方案来安装它。

CMake Error at CMakeLists.txt:9 (find_package):
  Could not find a package configuration file provided by "pgo" with any of
  the following names:

    pgoConfig.cmake
    pgo-config.cmake

  Add the installation prefix of "pgo" to CMAKE_PREFIX_PATH or set "pgo_DIR"
  to a directory containing one of the above files.  If "pgo" provides a
  separate development package or SDK, be sure it has been installed.

I met this Problem too. I guess maybe the version of libpgo is not correct and some modules may have changed.Well,I tried libpgo's version of v0.02 and it's ok.

@xmxhuihui
Copy link

Sorry I did not read the instruction carefully on how to install the libpgo. But after that I encountered another error:

CMake Error at /venv/main/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find BLAS (missing: BLAS_LIBRARIES)
Call Stack (most recent call first):
  /venv/main/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /venv/main/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindBLAS.cmake:1419 (find_package_handle_standard_args)
  build/temp.linux-x86_64-cpython-310/pypgo/_deps/suitesparse-src/SuiteSparse_config/cmake_modules/SuiteSparseBLAS.cmake:244 (find_package)
  build/temp.linux-x86_64-cpython-310/pypgo/_deps/suitesparse-src/SuiteSparse_config/CMakeLists.txt:123 (include)

but I finally solve it by

apt-get install -y libopenblas-dev

Thanks a lot. @infiniteYuanyl

@xmxhuihui
Copy link

The pypgo==0.02 is installed in the venv, but this error still exists.

CMake Error at CMakeLists.txt:9 (find_package):
  Could not find a package configuration file provided by "pgo" with any of
  the following names:

    pgoConfig.cmake
    pgo-config.cmake

  Add the installation prefix of "pgo" to CMAKE_PREFIX_PATH or set "pgo_DIR"
  to a directory containing one of the above files.  If "pgo" provides a
  separate development package or SDK, be sure it has been installed.

I think the possible solution is to make some changes in the find_package in CMakeLists.txt, but I still do not figure out what to add as the path to the pgo location.

@xmxhuihui
Copy link

My CMake is installed in the pip virtual environment. I am not sure whether this is one of the reason.

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

3 participants