Comments (24)
please open again, still error event the header / include directory already fixed.
the file is:
Python.h
the folder is correct, mine is in ../usr/include/python3.7m
but still return error in the same result, ask to install python header by sudo apt-get install python-dev
from go-vncdriver.
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.
from go-vncdriver.
Sorry, the error message we print is misleading here. The real issue is the first line:
read |0: interrupted system call
A quick search for this error turns up two results from Bash on Windows:
microsoft/WSL#349
microsoft/WSL#1038
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
from go-vncdriver.
I get the issue on Debian 8 and Windows 10 Pro Bash
from go-vncdriver.
Interesting. You get the read |0: interrupted system call
message on Debian 8? I'll see if I can reproduce it.
from go-vncdriver.
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.
from go-vncdriver.
Is there way to get more details on error?
from go-vncdriver.
Running ./build.sh
in the top-level go-vncdriver
directory might give more output.
from go-vncdriver.
I am running ./build.sh
in the top-level go-vncdriver
, with the following error:
Env info:
export GOPATH=/home/shubham/Downloads/go-vncdriver/.build
export CGO_LDFLAGS=/usr/lib/x86_64-linux-gnu/libjpeg.so -L/home/shubham/.anaconda3/lib -lpython3.5m
export CGO_CFLAGS=-I/home/shubham/.pyenv/versions/anaconda3-4.1.1/lib/python3.5/site-packages/numpy/core/include -I/home/shubham/.anaconda3/include/python3.5m
export GO15VENDOREXPERIMENT=1
Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/home/shubham/Downloads/go-vncdriver/.build go build -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver. (Set GO_VNCDRIVER_NOGL to build without OpenGL.)
# github.com/openai/go-vncdriver
.build/src/github.com/openai/go-vncdriver/main.go:5:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
Note: could not build with OpenGL rendering (cf https://github.com/openai/go-vncdriver). This is expected on most servers. Going to try building without OpenGL.
Building without OpenGL: GOPATH=/home/shubham/Downloads/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver
# github.com/openai/go-vncdriver
.build/src/github.com/openai/go-vncdriver/main.go:5:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
Build failed. HINT:
- Ensure you have your Python development headers installed. (On Ubuntu,
this is just 'sudo apt-get install python-dev'.
PS: I am running this on Ubuntu 16.04
from go-vncdriver.
@sksq9 This time our error message is on target :) You need the Python development headers:
sudo apt-get install python-dev
from go-vncdriver.
I already tried that, but nothing. I am running anaconda3.5
with pyenv
as python version manager, I suspect this might be the culprit.
from go-vncdriver.
Hmm. It's checking for headers in /home/shubham/.anaconda3/include/python3.5m
. Is there anything actually in that directory?
from go-vncdriver.
No it's not the correct directory for my anaconda
installation. This /home/shubham/.anaconda3/include/python3.5m
does not exist.
from go-vncdriver.
Interesting. Some sanity checking -- what is the output of these commands?
which python
pyenv which python
python -V
python -c 'import sys; print(sys.executable)'
/usr/bin/env python -V
/usr/bin/env python -c 'import sys; print(sys.executable)'
from go-vncdriver.
➜ ~ which python
/home/shubham/.pyenv/shims/python
➜ ~ pyenv which python
/home/shubham/.pyenv/versions/anaconda3-4.1.1/bin/python
➜ ~ python -V
Python 3.5.2 :: Anaconda custom (64-bit)
➜ ~ python -c 'import sys; print(sys.executable)'
/home/shubham/.pyenv/versions/anaconda3-4.1.1/bin/python
➜ ~ /usr/bin/env python -V
Python 3.5.2 :: Anaconda custom (64-bit)
➜ ~ /usr/bin/env python -c 'import sys; print(sys.executable)'
/home/shubham/.pyenv/versions/anaconda3-4.1.1/bin/python
from go-vncdriver.
That all looks reasonable. I'm guessing the headers are actually under /home/shubham/.pyenv/versions/anaconda3-4.1.1/include/python3.5m
. Is that right?
from go-vncdriver.
Yes. I checked, all headers are under the directory you mentioned. It's looking in the wrong place.
from go-vncdriver.
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?
python -c "import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))"
It should print out the wrong location. If so, we need to figure out why or figure out something better to check.
from go-vncdriver.
Indeed, it's printing out the wrong location.
➜ ~ python -c "import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))"
/home/shubham/.anaconda3/include/python3.5m
from go-vncdriver.
On a side note, I copied the headers to the directory it is looking into, it worked perfectly fine.
from go-vncdriver.
Maybe this will work better.
➜ ~ python -c "import sysconfig; print(sysconfig.get_path('include'))"
/home/shubham/.pyenv/versions/anaconda3-4.1.1/include/python3.5m
I am still not sure, why INCLUDEPY
points to the old anaconda
installation.
from go-vncdriver.
distutils uses get_python_inc. What does that return for you?
python -c "from distutils import sysconfig; print(sysconfig.get_python_inc()); print (sysconfig.get_python_inc(plat_specific=1))"
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.
from go-vncdriver.
Yes. They they return the correct path.
➜ ~ python -c "from distutils import sysconfig; print(sysconfig.get_python_inc()); print (sysconfig.get_python_inc(plat_specific=1))"
/home/shubham/.pyenv/versions/anaconda3-4.1.1/include/python3.5m
/home/shubham/.pyenv/versions/anaconda3-4.1.1/include/python3.5m
from go-vncdriver.
Include path fixed in 0.4.19: a768e8b.
from go-vncdriver.
Related Issues (20)
- NameError: global name 'FileNotFoundError' is not defined HOT 1
- The error "go_vncdriver was installed without OpenGL support" is still existed HOT 1
- Cannot build with OpenGL: "/usr/bin/ld: cannot find -lGL" HOT 5
- inconsistent naming HOT 2
- Undefined references everywhere. HOT 8
- Installing rendering dependencies doesn't fix "go_vncdriver was installed without OpenGL support" error. HOT 6
- OpenGL error does not go away HOT 6
- libjpeg-turbo dependency with MacPorts HOT 8
- [Errno 2] No such file or directory HOT 15
- Can't find -lGL while building go-vncserver, symlink issue? HOT 3
- build error in mac os
- The example is outdated HOT 1
- error installing universe HOT 10
- pip install fails when pulling from PyPI (OSX 10.11.6)
- python traceback error-plz help me solve this problem
- Unable to install on ubuntu 16 all requirements met
- python build.py error on Mac mojave python3.5
- Error building on Manjaro HOT 2
- Building wheel for go-vncdriver (setup.py) ... error +. Setup: MacOS Mojave + Python 3.5 HOT 1
- Adding a Dockerfile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-vncdriver.