-
Notifications
You must be signed in to change notification settings - Fork 60
Ensure you have your Python development headers installed. #9
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
Comments
Sorry, the error message we print is misleading here. The real issue is the first line:
A quick search for this error turns up two results from Bash on Windows: microsoft/WSL#349 Are you using Bash on Windows? Looking at links from there, it seems like there have been multiple problems with building Go apps on Bash on Windows, and it's not clear whether they are all fixed yet. The one that caused the "interrupted system call" message seems to have been fixed in Windows 10 Insiders build 14905: https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/14046789-add-support-for-restartable-system-calls-i-e-sa And another issue was fixed in a more recent build: microsoft/WSL#638 |
I get the issue on Debian 8 and Windows 10 Pro Bash |
Interesting. You get the |
I get the same error about Python-dev but not sure what the previous errors were. I will check in a few minutes on Debian. They looked like same error. |
I'm guessing they are different issues. We just print the Python-dev message for any build failure because it's a common problem. But it's misleading in cases like this. We might be better off removing it. |
Is there way to get more details on error? |
Running |
I am running
PS: I am running this on Ubuntu 16.04 |
@sksq9 This time our error message is on target :) You need the Python development headers:
|
I already tried that, but nothing. I am running |
Hmm. It's checking for headers in |
No it's not the correct directory for my |
Interesting. Some sanity checking -- what is the output of these commands?
|
|
That all looks reasonable. I'm guessing the headers are actually under |
Yes. I checked, all headers are under the directory you mentioned. It's looking in the wrong place. |
Ok. I wonder why that is. We look up header location from the sysconfig package, which seems to be giving the wrong answer here. To double check, can you run this?
It should print out the wrong location. If so, we need to figure out why or figure out something better to check. |
Indeed, it's printing out the wrong location.
|
On a side note, I copied the headers to the directory it is looking into, it worked perfectly fine. |
Maybe this will work better.
I am still not sure, why |
distutils uses get_python_inc. What does that return for you?
I think this is what pure C extensions (as opposed to C + Go or whatever else) use, so I'm inclined to use the same thing if it works in your case. |
Yes. They they return the correct path.
|
The strategy we were using produced the wrong location for someone: #9. There are several possibilities here, and I haven't found a clear recommendation in the Python docs for what to do. I'm opting to use the approach that distutils uses to build C extensions, since that is the implementation that most extensions likely use. See the distutils code here: https://github.com/python/cpython/blob/c30098c8c6014f3340a369a31df9c74bdbacc269/Lib/distutils/command/build_ext.py#L150-L151
Include path fixed in 0.4.19: a768e8b. |
please open again, still error event the header / include directory already fixed. but still return error in the same result, ask to install python header by |
I am trying to install Universe from OpenAI and go-vncdriver is giving me problems.
I get a message I should make sure I have python development headers installed (which I do) but I also tried under Anaconda (which is recommended by Universe and does not have a python-dev package, but it is said to already include headers) and I get same error.
The full output is:
read |0: interrupted system call
Build failed. HINT:
Ensure you have your Python development headers installed. (On Ubuntu,
this is just 'sudo apt-get install python-dev'.
make: *** [build] Error 1
Could not build go_vncdriver: Command '['make', 'build']' returned non-zero exit status 2
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip_build_root/go-vncdriver/setup.py", line 79, in
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 53, in run
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
File "/tmp/pip_build_root/go-vncdriver/setup.py", line 25, in run
File "/tmp/pip_build_root/go-vncdriver/setup.py", line 64, in build
The text was updated successfully, but these errors were encountered: