Giter VIP home page Giter VIP logo

syncer's People

Contributors

miyakogi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

syncer's Issues

ipy:7.9 py:3.74 RuntimeError: There is no current event loop in thread 'MainThread'.


C:\QGB\Anaconda3\lib\site-packages\syncer.py in run(*args, **kwargs)
     42     @wraps(f)
     43     def run(*args, **kwargs):
---> 44         return asyncio.get_event_loop().run_until_complete(f(*args, **kwargs))
     45     return run
     46

C:\QGB\Anaconda3\lib\asyncio\events.py in get_event_loop(self)
    642         if self._local._loop is None:
    643             raise RuntimeError('There is no current event loop in thread %r.'
--> 644                                % threading.current_thread().name)
    645
    646         return self._local._loop

RuntimeError: There is no current event loop in thread 'MainThread'.

1.3.0: pytest deprecation warnings

Looks like pytest shows some deprecation warnings

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-syncer-1.3.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-syncer-1.3.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0
collected 24 items

tests/test_py34.py .............                                                                                                                                     [ 54%]
tests/test_py35.py ...........                                                                                                                                       [100%]

============================================================================= warnings summary =============================================================================
tests/test_py34.py:57
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:57: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def test_deco_testmethod(self):

tests/test_py34.py:68
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:68: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def test_failure(self):

tests/test_py34.py::TestSyncerPY34::test_deco_aioco
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:41: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a():

tests/test_py34.py::TestSyncerPY34::test_deco_aioco_args
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:49: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a(b, c, d=2):

tests/test_py34.py::TestSyncerPY34::test_deco_method
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:99: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a(self):

tests/test_py34.py::TestSyncerPY34::test_deco_method_args
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:109: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a(self, b, c, d=2):

tests/test_py34.py::TestSyncerPY34::test_deco_testmethod
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:59: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a():

tests/test_py34.py::TestSyncerPY34::test_wrap_aioco
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:22: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a():

tests/test_py34.py::TestSyncerPY34::test_wrap_aioco_args
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:31: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a(b, c, d=2):

tests/test_py34.py::TestSyncerPY34::test_wrap_method
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:77: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a(self):

tests/test_py34.py::TestSyncerPY34::test_wrap_method_args
  /home/tkloczko/rpmbuild/BUILD/syncer-1.3.0/tests/test_py34.py:87: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def a(self, b, c, d=2):

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================== 24 passed, 11 warnings in 0.10s ======================================================================

Typo in README

It should be asyncio.get_event_loop().run_until_complete() ... right?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.