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

Installation issue: GPy #21

Open
momutassem opened this issue Feb 13, 2024 · 9 comments
Open

Installation issue: GPy #21

momutassem opened this issue Feb 13, 2024 · 9 comments

Comments

@momutassem
Copy link

when installing the extra-requirements.txt, I get the following issue:

GPy/kern/src/stationary_cython.c:196:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' 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 GPy
Failed to build GPy
ERROR: Could not build wheels for GPy, which is required to install pyproject.toml-based projects

@mravanelli
Copy link
Contributor

@momutassem, you are referring to which of the three benchmarks currently available?

@vmcru
Copy link

vmcru commented Feb 15, 2024

I also get this error with MOABB

Failed to build GPy
ERROR: Could not build wheels for GPy, which is required to install pyproject.toml-based projects

And more here:


 _Warning: Package 'GPy.kern.src.todo' is absent from the `packages` configuration.
      !!
      
              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'GPy.kern.src.todo' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.
      
              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'GPy.kern.src.todo' is explicitly added
              to the `packages` configuration field.
      
              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).
      
              You can read more about "package discovery" on setuptools documentation page:
      
              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
      
              If you don't want 'GPy.kern.src.todo' to be distributed and are
              already explicitly excluding 'GPy.kern.src.todo' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.
      
              You can read more about "package data files" on setuptools documentation page:
      
              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
      
      
              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************
      
      !!

@momutassem
Copy link
Author

@momutassem, you are referring to which of the three benchmarks currently available?

The MOABB benchmark.

@mravanelli
Copy link
Contributor

mravanelli commented Feb 15, 2024 via email

@momutassem
Copy link
Author

Okay great, it’s working now. Thank you for your help!

@mravanelli
Copy link
Contributor

mravanelli commented Feb 18, 2024 via email

@Drew-Wagner
Copy link
Contributor

I had the same problem and resolved it by downgrading from python 3.11 to python 3.10

@mravanelli
Copy link
Contributor

I added a warning into the README to notify that to the users. Personally, I'm able to make it working with python 3.11 as well, but it looks like other users have issues with that.

@momutassem
Copy link
Author

I was also able to make it work with python 3.11 by just installing it directly using pip.

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

4 participants