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

Missing six module at runtime (Use SQLFlow-in-a-VM) #59

Open
bob001 opened this issue Jun 5, 2021 · 0 comments
Open

Missing six module at runtime (Use SQLFlow-in-a-VM) #59

bob001 opened this issue Jun 5, 2021 · 0 comments

Comments

@bob001
Copy link

bob001 commented Jun 5, 2021

An exception occurred when I ran the demo using jupyter. Please help to check the reason.

%%sqlflow
describe iris.train;

_MultiThreadedRendezvous Traceback (most recent call last)
in
----> 1 get_ipython().run_cell_magic('sqlflow', '', 'describe iris.train;\n')

/usr/lib/python3.8/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
2357 with self.builtin_trap:
2358 args = (magic_arg_s, cell)
-> 2359 result = fn(*args, **kwargs)
2360 return result
2361

in execute(self, line, cell)

/usr/lib/python3.8/site-packages/IPython/core/magic.py in (f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):

/usr/lib/python3.8/site-packages/sqlflow/magic.py in execute(self, line, cell)
43
44 """
---> 45 return self.client.execute('\n'.join([line, cell]))
46
47 def load_ipython_extension(ipython):

/usr/lib/python3.8/site-packages/sqlflow/client.py in execute(self, operation)
147 # NOTE: raise exception to interrupt notebook execution. Or
148 # the notebook will continue execute the next block.
--> 149 raise e
150 except EnvExpanderError as e:
151 raise e

/usr/lib/python3.8/site-packages/sqlflow/client.py in execute(self, operation)
143 try:
144 stream_response = self._stub.Run(self.sql_request(operation), timeout=DEFAULT_TIMEOUT)
--> 145 return self.display(stream_response)
146 except grpc.RpcError as e:
147 # NOTE: raise exception to interrupt notebook execution. Or

/usr/lib/python3.8/site-packages/sqlflow/client.py in display(self, stream_response)
206 """Display stream response like log or table.row"""
207 reader = StreamReader(stream_response)
--> 208 response, rtype = reader.read_one()
209 compound_message = CompoundMessage()
210 while True:

/usr/lib/python3.8/site-packages/sqlflow/client.py in read_one(self)
35 def read_one(self):
36 try:
---> 37 res = next(self._stream_response)
38 except StopIteration:
39 return (None, None)

/usr/lib/python3.8/site-packages/grpc/_channel.py in next(self)
414
415 def next(self):
--> 416 return self._next()
417
418 def _next(self):

/usr/lib/python3.8/site-packages/grpc/_channel.py in _next(self)
704 raise StopIteration()
705 elif self._state.code is not None:
--> 706 raise self
707
708

_MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "failed /usr/local/bin/python /tmp/sqlflow.py155989687, exit status 1 Traceback (most recent call last):
File "/tmp/sqlflow.py155989687", line 5, in
import couler.argo as couler
File "/usr/lib/python3.8/site-packages/couler/init.py", line 14, in
from couler.argo import * # noqa: F401, F403
File "/usr/lib/python3.8/site-packages/couler/argo.py", line 19, in
from kubernetes import client as k8s_client
File "/usr/lib/python3.8/site-packages/kubernetes/init.py", line 19, in
import kubernetes.client
File "/usr/lib/python3.8/site-packages/kubernetes/client/init.py", line 20, in
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
File "/usr/lib/python3.8/site-packages/kubernetes/client/api/init.py", line 6, in
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
File "/usr/lib/python3.8/site-packages/kubernetes/client/api/admissionregistration_api.py", line 18, in
import six
ModuleNotFoundError: No module named 'six'
"
debug_error_string = "{"created":"@1622862257.616662127","description":"Error received from peer ipv4:127.0.0.1:50051","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed /usr/local/bin/python /tmp/sqlflow.py155989687, exit status 1 Traceback (most recent call last):\n File "/tmp/sqlflow.py155989687", line 5, in \n import couler.argo as couler\n File "/usr/lib/python3.8/site-packages/couler/init.py", line 14, in \n from couler.argo import * # noqa: F401, F403\n File "/usr/lib/python3.8/site-packages/couler/argo.py", line 19, in \n from kubernetes import client as k8s_client\n File "/usr/lib/python3.8/site-packages/kubernetes/init.py", line 19, in \n import kubernetes.client\n File "/usr/lib/python3.8/site-packages/kubernetes/client/init.py", line 20, in \n from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi\n File "/usr/lib/python3.8/site-packages/kubernetes/client/api/init.py", line 6, in \n from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi\n File "/usr/lib/python3.8/site-packages/kubernetes/client/api/admissionregistration_api.py", line 18, in \n import six\nModuleNotFoundError: No module named 'six'\n","grpc_status":2}"

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

No branches or pull requests

1 participant