blackjack / webcam

Golang webcam library for Linux
MIT License
416 stars 92 forks source link

import "github.com/blackjack/webcam" errors #17

Closed girs1982 closed 6 years ago

girs1982 commented 6 years ago

import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/358.

fabian-z commented 6 years ago

It seems you are trying to run this line of Go code in your terminal / command shell instead of putting it in a source (.go) file and compiling it. The error message does not indicate a problem with the library or your setup. It is thrown by an ImageMagick component named "import" which gets run by your shell.

I would recommend you to start working from introduction tutorials for Go (e.g. https://gobyexample.com/hello-world or pick one from https://github.com/avelino/awesome-go#tutorials).

Hope I could help you :smiley:

girs1982 commented 6 years ago

i was done it on python ,go not need now

fabian-z commented 6 years ago

Well, it seems like you can have the same problem with python :wink:

Either way, glad you got your problem solved - please close the issue in this case.