You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to use module in a generic manner; reproducer:
$ git clone https://github.com/gofed/lib gofedlib
$ cat > test.py <<EOF
# extract API and dependencies
from gofedlib.go.functions import api, project_packages
from gofedlib.types import ExtractionError
import logging
source_code_directory = "~/Golang/etcd/etcd-5e6eb7e19d6385adfabb1f1caea03e732f9348ad"
try:
etcd_api = api(source_code_directory)
etcd_packages = project_packages(source_code_directory)
except ExtractionError as e:
logging.error("Unable to extract %s: %s" % (source_code_directory, e))
exit(1)
# print list of defined packages in etcd
print "Defined packages"
for package in etcd_packages["packages"]:
print package
print ""
# print list of defined exported functions in etcd
print "Defined functions"
for package in etcd_api:
print package["package"]
for func in package["functions"]:
print "\t%s" % func["name"]
print ""
EOF
$ python test.py
Traceback (most recent call last):
File "./test.py", line 3, in <module>
from gofedlib.go.functions import api, project_packages
File "/tmp/gofedlib/go/functions.py", line 1, in <module>
from .symbolsextractor.extractor import GoSymbolsExtractor
File "/tmp/gofedlib/go/symbolsextractor/extractor.py", line 4, in <module>
from lib.utils import getScriptDir, runCommand
ImportError: No module named lib.utils
The text was updated successfully, but these errors were encountered:
It is not possible to use module in a generic manner; reproducer:
The text was updated successfully, but these errors were encountered: