yunabe/lgo

Python3 Error: ImportError: No module named 'commands'

Closed this issue · 1 comments

Need to use subprocess for Python3.

import commands

Replace:
import command
with:
import subprocess

rc, gopath = commands.getstatusoutput('go env GOPATH')

and:
rc, gopath = commands.getstatusoutput('go env GOPATH')
with:
rc, gopath = subprocess.getstatusoutput('go env GOPATH')

Thank you for the feedback!