安装Scylla之后出错
[~]$ scylla [3:05:44]
2018-07-02 - 03:06:37 DEBUG: create new db connection
Traceback (most recent call last):
File "/usr/local/bin/scylla", line 11, in <module>
sys.exit(app_main())
File "/usr/local/lib/python3.6/site-packages/scylla/cli.py", line 84, in app_main
sys.exit(main(sys.argv[1:]))
File "/usr/local/lib/python3.6/site-packages/scylla/cli.py", line 48, in main
from scylla.proxy import start_forward_proxy_server_non_blocking
File "/usr/local/lib/python3.6/site-packages/scylla/proxy/__init__.py", line 1, in <module>
from .server import start_forward_proxy_server_non_blocking, start_forward_proxy_server
File "/usr/local/lib/python3.6/site-packages/scylla/proxy/server.py", line 14, in <module>
httpclient.AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient")
File "/usr/local/lib/python3.6/site-packages/tornado/httpclient.py", line 302, in configure
super(AsyncHTTPClient, cls).configure(impl, **kwargs)
File "/usr/local/lib/python3.6/site-packages/tornado/util.py", line 354, in configure
impl = import_object(impl)
File "/usr/local/lib/python3.6/site-packages/tornado/util.py", line 181, in import_object
obj = __import__('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
File "/usr/local/lib/python3.6/site-packages/tornado/curl_httpclient.py", line 23, in <module>
import pycurl # type: ignore
ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)
[~]$ which pip [3:06:38]
zsh: correct 'pip' to '.pip' [nyae]? n
/usr/local/opt/python/libexec/bin/pip
[~]$ which pip3 [3:09:52]
/usr/local/bin/pip3
[~]$ pip3 uninstall pycurl [3:09:58]
Uninstalling pycurl-7.43.0.1:
Would remove:
/usr/local/lib/python3.6/site-packages/curl/*
/usr/local/lib/python3.6/site-packages/pycurl-7.43.0.1.dist-info/*
/usr/local/lib/python3.6/site-packages/pycurl.cpython-36m-darwin.so
/usr/local/share/doc/pycurl/AUTHORS
/usr/local/share/doc/pycurl/COPYING-LGPL
/usr/local/share/doc/pycurl/COPYING-MIT
/usr/local/share/doc/pycurl/ChangeLog
/usr/local/share/doc/pycurl/INSTALL.rst
/usr/local/share/doc/pycurl/README.rst
/usr/local/share/doc/pycurl/RELEASE-NOTES.rst
/usr/local/share/doc/pycurl/examples/basicfirst.py
/usr/local/share/doc/pycurl/examples/file_upload.py
/usr/local/share/doc/pycurl/examples/linksys.py
/usr/local/share/doc/pycurl/examples/quickstart/file_upload_buffer.py
/usr/local/share/doc/pycurl/examples/quickstart/file_upload_real.py
/usr/local/share/doc/pycurl/examples/quickstart/file_upload_real_fancy.py
/usr/local/share/doc/pycurl/examples/quickstart/follow_redirect.py
/usr/local/share/doc/pycurl/examples/quickstart/form_post.py
/usr/local/share/doc/pycurl/examples/quickstart/get.py
/usr/local/share/doc/pycurl/examples/quickstart/get_python2.py
/usr/local/share/doc/pycurl/examples/quickstart/get_python3.py
/usr/local/share/doc/pycurl/examples/quickstart/response_headers.py
/usr/local/share/doc/pycurl/examples/quickstart/response_info.py
/usr/local/share/doc/pycurl/examples/quickstart/write_file.py
/usr/local/share/doc/pycurl/examples/retriever-multi.py
/usr/local/share/doc/pycurl/examples/retriever.py
/usr/local/share/doc/pycurl/examples/sfquery.py
/usr/local/share/doc/pycurl/examples/smtp.py
/usr/local/share/doc/pycurl/examples/ssh_keyfunction.py
/usr/local/share/doc/pycurl/examples/xmlrpc_curl.py
Proceed (y/n)? y
Successfully uninstalled pycurl-7.43.0.1
[~]$ export PYCURL_SSL_LIBRARY=openssl [3:10:18]
[~]$ pip3 install pycurl [3:10:29]
Collecting pycurl
Downloading https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz (214kB)
100% |████████████████████████████████| 215kB 553kB/s
Building wheels for collected packages: pycurl
Running setup.py bdist_wheel for pycurl ... done
Stored in directory: /Users/caiqiqi/Library/Caches/pip/wheels/d2/85/ae/ebf5ff0f1368869d082b4863df492bf54c661bf6306a2bdfde
Successfully built pycurl
scylla 1.1.4 has requirement pycurl==7.43.0.1, but you'll have pycurl 7.43.0.2 which is incompatible.
Installing collected packages: pycurl
Successfully installed pycurl-7.43.0.2
pip uninstall pycurl
export PYCURL_SSL_LIBRARY=openssl
pip install pycurl