python - ImportError: No module named socketserver -


disclaimer: noob

i trying streamparse (https://github.com/parsely/streamparse) , running on machine. following tutorial found here: https://youtu.be/ja4qj9-l6wq?t=18m50s . have installed leiningen , pip, when running command

sparse quickstart 

i error:

randalls-macbook-pro:streamparse randallbanks$ sparse quickstart traceback (most recent call last): file "/usr/local/bin/sparse", line 9, in <module> load_entry_point('streamparse==1.1.0', 'console_scripts', 'sparse')() file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/pkg_resources.py", line 357, in load_entry_point return get_distribution(dist).load_entry_point(group, name) file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/pkg_resources.py", line 2394, in load_entry_point return ep.load() file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/pkg_resources.py", line 2108, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) file "/library/python/2.7/site-packages/streamparse/__init__.py", line 11, in <module> import streamparse.cmdln file "/library/python/2.7/site-packages/streamparse/cmdln.py", line 6, in <module> .ext.invoke import (list_topologies, kill_topology, run_local_topology, file "/library/python/2.7/site-packages/streamparse/ext/invoke.py", line 25, in <module> ..contextmanagers import ssh_tunnel file "/library/python/2.7/site-packages/streamparse/contextmanagers.py", line 8, in <module> six.moves.socketserver import udpserver, tcpserver importerror: no module named socketserver 

from i've read, seems issue name "socketserver" differing between python2 , python3. i've tried downloading python3 see if remedies issue, keep running brew error:

randalls-macbook-pro:streamparse randallbanks$ sudo brew install python3 password: error: cowardly refusing `sudo brew install` can use brew sudo, if brew executable owned root. however, both not recommended , unsupported so @ own risk. 

without 'sudo':

randalls-macbook-pro:streamparse randallbanks$ brew install python3 error: must `brew link gdbm' before python3 can installed randalls-macbook-pro:streamparse randallbanks$ brew link gdbm linking /usr/local/cellar/gdbm/1.11...  error: not symlink include/gdbm.h /usr/local/include not writable. 

it seems workarounds error 'not recommended'. tried manually downloading python3 website https://www.python.org/downloads/mac-osx/ , don't know i'm doing far installing of these source files. best direction should take resolving issue appreciated!

os x 10.10 comes pre-installed version of six old support sparse.

your best option create virtualenv , install sparse that. newer version of six installed virtualenv when do.

don't try upgrade version provided apple may break other things.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -