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

If python is required then python-dev should be as well #343

Closed
lukas-vlcek opened this issue Nov 2, 2017 · 1 comment
Closed

If python is required then python-dev should be as well #343

lukas-vlcek opened this issue Nov 2, 2017 · 1 comment
Labels
:Docs Changes to the documentation enhancement Improves the status quo
Milestone

Comments

@lukas-vlcek
Copy link

I was testing rally on an Linux machine and I hit the following error:

$ ./rally configure
Auto-updating Rally from origin
psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
 #include <Python.h>
          ^~~~~~~~~~
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

It turns out that I was missing python-dev package. Installing it like yum install python3-devel.x86_64 fixed the issue. May be rally can check for this in advance and not run into error (which does not yield very informative message).

@danielmitterdorfer
Copy link
Member

Your observation is correct and this is also covered in the documentation:

If you get errors during installation, it is probably due to the installation of psutil which we use to gather system metrics like CPU utilization. Please check the installation instructions of psutil in this case. Keep in mind that Rally is based on Python 3 and you need to install the Python 3 header files instead of the Python 2 header files on Linux.

You run into this problem while psutil is installed which requires Python headers. While it may be possible to check this, I think the better option is to improve the documentation and provide concrete installation commands for all dependencies (Python + dev package) for major distributions.

@danielmitterdorfer danielmitterdorfer added :Docs Changes to the documentation enhancement Improves the status quo labels Nov 6, 2017
@danielmitterdorfer danielmitterdorfer modified the milestones: 0.7.x, 0.7.4 Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Docs Changes to the documentation enhancement Improves the status quo
Projects
None yet
Development

No branches or pull requests

2 participants