Docker build does not work on Apple Mac m1 chip arm64 · Issue #300 · go-python/gopy · GitHub
Skip to content

Docker build does not work on Apple Mac m1 chip arm64 #300

Open

Description

@captchanjack

Couldn't install with go get either
The Docker example does not work for my Mac M1 chip

Getting this error:

(venv) jchan2@AU-F9DJ5W25WC ~ % cd $GOPATH/src/github.com/go-python/gopy/_examples/hi
(venv) jchan2@AU-F9DJ5W25WC hi % docker run --rm -v `pwd`:/go/src/in -v `pwd`:/out gopy/gopy app bind -output=/out in
Unable to find image 'gopy/gopy:latest' locally
latest: Pulling from gopy/gopy
ad74af05f5a2: Pull complete 
2b032b8bbe8b: Pull complete 
a9a5b35f6ead: Pull complete 
25d9840c55bc: Pull complete 
d792ec7d64a3: Pull complete 
be556a93c22e: Pull complete 
3a5fce283a1e: Pull complete 
0621865a0c2e: Pull complete 
81b0c7b4a330: Pull complete 
3860d4cacc02: Pull complete 
ddfc9a678375: Pull complete 
15d8e4fdf38a: Pull complete 
Digest: sha256:2af5d39cfa04efb10333022599a0f007b9aa4db2f3c967c3622f46e3a9844724
Status: Downloaded newer image for gopy/gopy:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
runtime: failed to create new OS thread (have 2 already; errno=22)
fatal error: newosproc

runtime stack:
runtime.throw(0x6fa581, 0x9)
	/usr/local/go/src/runtime/panic.go:596 +0x95
runtime.newosproc(0xc42002a000, 0xc42003a000)
	/usr/local/go/src/runtime/os_linux.go:163 +0x18c
runtime.newm(0x70fe68, 0x0)
	/usr/local/go/src/runtime/proc.go:1628 +0x137
runtime.main.func1()
	/usr/local/go/src/runtime/proc.go:126 +0x36
runtime.systemstack(0x851700)
	/usr/local/go/src/runtime/asm_amd64.s:327 +0x79
runtime.mstart()
	/usr/local/go/src/runtime/proc.go:1132

goroutine 1 [running]:
runtime.systemstack_switch()
	/usr/local/go/src/runtime/asm_amd64.s:281 fp=0xc420026788 sp=0xc420026780
runtime.main()
	/usr/local/go/src/runtime/proc.go:127 +0x6c fp=0xc4200267e0 sp=0xc420026788
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4200267e8 sp=0xc4200267e0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions