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

trio.run_sync_in_worker_thread is deprecated #24

Open
mehaase opened this issue Jun 2, 2020 · 1 comment
Open

trio.run_sync_in_worker_thread is deprecated #24

mehaase opened this issue Jun 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@mehaase
Copy link
Contributor

mehaase commented Jun 2, 2020

app_1 | /starbelly/starbelly/extractor.py:81: TrioDeprecationWarning: trio.run_sync_in_worker_thread is deprecated since Trio 0.12.0; use trio.to_thread.run_sync instead (python-trio/trio#810)

@mehaase mehaase added the bug Something isn't working label Jun 2, 2020
@mehaase
Copy link
Contributor Author

mehaase commented Jun 3, 2020

A whole bunch of warnings while running tests:

/home/mhaase/.cache/pypoetry/virtualenvs/starbelly-T_MFzqrn-py3.7/lib/python3.7/site-packages/trio_asyncio/_base.py:20
  /home/mhaase/.cache/pypoetry/virtualenvs/starbelly-T_MFzqrn-py3.7/lib/python3.7/site-packages/trio_asyncio/_base.py:20: TrioDeprecationWarning: trio.hazmat is deprecated since Trio 0.15.0; use trio.lowlevel instead (https://github.com/python-trio/trio/issues/476)
    from trio.hazmat import wait_for_child

/home/mhaase/.cache/pypoetry/virtualenvs/starbelly-T_MFzqrn-py3.7/lib/python3.7/site-packages/rethinkdb/net.py:21
  /home/mhaase/.cache/pypoetry/virtualenvs/starbelly-T_MFzqrn-py3.7/lib/python3.7/site-packages/rethinkdb/net.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

tests/test_downloader.py::test_http_get
tests/test_downloader.py::test_http_proxy_get
  /home/mhaase/code/hyperiongray/starbelly/starbelly/downloader.py:264: DeprecationWarning: verify_ssl is deprecated, use ssl=False instead
    session_args['connector'] = aiohttp.TCPConnector(verify_ssl=False)

tests/test_downloader.py::test_socks_proxy_get
  /home/mhaase/.cache/pypoetry/virtualenvs/starbelly-T_MFzqrn-py3.7/lib/python3.7/site-packages/aiohttp_socks/connector.py:76: DeprecationWarning: SocksConnector is deprecated. Use ProxyConnector instead.
    username=username, password=password, **kwargs)

tests/test_downloader.py::test_socks_proxy_get
  /home/mhaase/.cache/pypoetry/virtualenvs/starbelly-T_MFzqrn-py3.7/lib/python3.7/site-packages/aiohttp_socks/proxy/socks5_proxy.py:41: DeprecationWarning: Parameter family is deprecated and will be ignored.
    family=family

tests/test_extractor.py::test_crawl_extractor
  /home/mhaase/code/hyperiongray/starbelly/starbelly/extractor.py:81: TrioDeprecationWarning: trio.run_sync_in_worker_thread is deprecated since Trio 0.12.0; use trio.to_thread.run_sync instead (https://github.com/python-trio/trio/issues/810)
    extracted_urls = await trio.run_sync_in_worker_thread(

tests/test_login.py::test_login_form
tests/test_login.py::test_login_with_captcha
  /home/mhaase/code/hyperiongray/starbelly/starbelly/login.py:178: TrioDeprecationWarning: trio.run_sync_in_worker_thread is deprecated since Trio 0.12.0; use trio.to_thread.run_sync instead (https://github.com/python-trio/trio/issues/810)
    forms = await trio.run_sync_in_worker_thread(partial(

tests/test_login.py::test_login_form
  /home/mhaase/.cache/pypoetry/virtualenvs/starbelly-T_MFzqrn-py3.7/lib/python3.7/site-packages/sklearn/linear_model/_logistic.py:764: ConvergenceWarning: lbfgs failed to converge (status=1):
  STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
  
  Increase the number of iterations (max_iter) or scale the data as shown in:
      https://scikit-learn.org/stable/modules/preprocessing.html
  Please also refer to the documentation for alternative solver options:
      https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
    extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)

tests/test_storage.py::test_storage
  /home/mhaase/code/hyperiongray/starbelly/starbelly/storage.py:98: TrioDeprecationWarning: trio.run_sync_in_worker_thread is deprecated since Trio 0.12.0; use trio.to_thread.run_sync instead (https://github.com/python-trio/trio/issues/810)
    body = await trio.run_sync_in_worker_thread(functools.partial(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant