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

cant run demo. #1

Open
najamsk opened this issue Feb 25, 2019 · 16 comments
Open

cant run demo. #1

najamsk opened this issue Feb 25, 2019 · 16 comments
Labels

Comments

@najamsk
Copy link

najamsk commented Feb 25, 2019

what command is required with command line arguments to run this demo?
go run main.go throws following error.

# command-line-arguments
./main.go:32:9: undefined: NewServer
@matryer
Copy link

matryer commented Feb 25, 2019

My guess would be that you're using go run to run it. If you do go run main.go it will only load main.go and ignore anything in other files.

To run it properly, try building it first (which will include all files) with: go build -o demo and then run the newly created demo binary: ./demo.

Hope this helps.

@matryer
Copy link

matryer commented Feb 25, 2019

or you can try go run *.go which will also select all .go files.

@najamsk
Copy link
Author

najamsk commented Feb 25, 2019

SyntaxError: missing ) after argument list[Learn More] semantic.min.js:16:3023
console showing this.

@najamsk
Copy link
Author

najamsk commented Feb 25, 2019

it asks for go cam permission that i give. but nothing shows up in video player so i checked console which was showing following error.

SyntaxError: missing ) after argument list[Learn More]

semantic.min.js:16:3023

@najamsk
Copy link
Author

najamsk commented Feb 25, 2019

replacing following
video.src = window.URL.createObjectURL(stream);
with video.srcObject = stream;
seems to work in firefox.

@matryer
Copy link

matryer commented Feb 25, 2019 via email

@najamsk
Copy link
Author

najamsk commented Feb 25, 2019

nope. i tried to ask co-worker to show their face on cam. since didnt train model on their face. i was expecting some error message but instead the camera icon truns into loading and keep doing loading stuff. i check console it was saying button.transition is undefined. so to solve that i change more code by showing text message. maybe run demos again in cross browsers so people can actually see them working and hop into stuff. Having said that i still enjoy browsing through demos and articles on medium.

@matryer
Copy link

matryer commented Feb 25, 2019 via email

@najamsk
Copy link
Author

najamsk commented Feb 25, 2019

i check on my co-workers machines using chrome still same errors. I think underlaying apis for html5 stuff got changed and they require minor fixes to work as expected.

@matryer
Copy link

matryer commented Feb 25, 2019 via email

@najamsk
Copy link
Author

najamsk commented Feb 25, 2019

one more thing. is there any forum or channel where devs can ask your team questions or report issues. asking on twitter is not that great and engaging founder for small code stuff is like wasting your time. thanks for your time, responses and your efforts.

@najamsk
Copy link
Author

najamsk commented Feb 25, 2019

my pull request will be broken as its not working in chrome. but if i make it work in chrome sure.

@aaronedell
Copy link

Hi @najamsk - can you join the Machine Box slack here: https://machineboxslack.herokuapp.com/

@najamsk
Copy link
Author

najamsk commented Feb 28, 2019

Hi @najamsk - can you join the Machine Box slack here: https://machineboxslack.herokuapp.com/

joined the community slack, thanks for sharing. let me create a pull request.

@najamsk
Copy link
Author

najamsk commented Feb 28, 2019

Hmm, in that case, do you fancy submitting a PR with your fixes? We’d love to improve the experience for others if we can.

On Mon, 25 Feb 2019 at 12:27, najamsk @.***> wrote: i check on my co-workers machines using chrome still same errors. I think underlaying apis for html5 stuff got changed and they require minor fixes to work as expected. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGNG6-ozDntZ5J_AbWWVK-oIsIRMsZWks5vQ9angaJpZM4bPJLa .

pull request created. I have never contributed in open source stuff and don't know about creating pull request. by clicking few buttons i manage to create pull request that I hope somewhat close to your expectations.

@najamsk
Copy link
Author

najamsk commented Mar 1, 2019

you can find my pull request at #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants