Code Monkey home page Code Monkey logo

Comments (7)

h2non avatar h2non commented on June 12, 2024 1

FYI - v1.1.1 is out on PyPI: pip install --upgrade pook

from pook.

gpxlnx avatar gpxlnx commented on June 12, 2024

I'm receice this same error when import:

E AttributeError: module 'asyncio' has no attribute 'coroutine'
_ ERROR collecting .pybuild/cpython3_3.11_pook/build/tests/unit/mock_engine_test.py _
tests/unit/mock_engine_test.py:4: in
from pook import MockEngine, Engine
pook/init.py:1: in
from .api import * # noqa
pook/api.py:6: in
from .engine import Engine
pook/engine.py:5: in
from .mock_engine import MockEngine
pook/mock_engine.py:1: in
from .interceptors import interceptors
pook/interceptors/init.py:25: in
from .aiohttp import AIOHTTPInterceptor
pook/interceptors/aiohttp.py:42: in
class SimpleContent(EmptyStreamReader):
pook/interceptors/aiohttp.py:47: in SimpleContent
@asyncio.coroutine
E AttributeError: module 'asyncio' has no attribute 'coroutine'
_ ERROR collecting .pybuild/cpython3_3.11_pook/build/tests/unit/interceptors/module_test.py _
tests/unit/interceptors/module_test.py:1: in

from pook.

KyleJamesWalker avatar KyleJamesWalker commented on June 12, 2024

Fixed in #83, but it still hasn't' been released.

Note while waiting for v1.1.0 you can install the sha to test it:

pip install -U https://github.com/h2non/pook/archive/0d9a6f7ae0e5c33c845069f0bde6cb65805be906.zip

from pook.

h2non avatar h2non commented on June 12, 2024

Version v1.1.0 is now available on PyPI:
pip install --upgrade pook

from pook.

gpxlnx avatar gpxlnx commented on June 12, 2024

Hi,

I am your package maintainer on Debian and derivatives and would like to know if you have any plans to release the latest release on github?

Thanks for your job

from pook.

h2non avatar h2non commented on June 12, 2024

It is already released and tagged as v1.1.0

from pook.

MikhailGurin avatar MikhailGurin commented on June 12, 2024

Hi,
the problem is still there on v1.1.0
/usr/local/lib/python3.11/site-packages/pook/activate_async.py:2: in
from asyncio import iscoroutinefunction, coroutine
ImportError: cannot import name 'coroutine' from 'asyncio' (/usr/local/lib/python3.11/asyncio/init.py)

activate_async.py was not fixed in last release

from pook.

Related Issues (20)

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.