Comments (7)
FYI - v1.1.1
is out on PyPI: pip install --upgrade pook
from pook.
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.
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.
Version v1.1.0
is now available on PyPI:
pip install --upgrade pook
from pook.
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.
It is already released and tagged as v1.1.0
from pook.
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)
- Cannot pass `param`, `param_exists` or `params` kwarg to `Mock` constructor
- Query param types incorrect compared directly rather than string-to-string
- `param_exists` fails when requested query param has no value
- Deprecate then remove regex formatted string parsing
- `Mock::body` ignores `binary` parameter HOT 1
- `httpx` requests with enabled network are not working HOT 3
- The docs published on pook.rtfd.io seem to be outdated (latest == 0.2.5) HOT 2
- httpx streaming via `iter_raw` raises `httpx.StreamConsumed` HOT 2
- HttpxInterceptor has no disable but a deactivate method HOT 3
- Provide a more helpful error when `times` is exceeded on a mock HOT 1
- Deprecate non-`bytes` return types from mocked urllib responses HOT 1
- @pook.activate or @pook.on seem to skip pytest tests decorated with @pytest.mark.asyncio HOT 5
- The @fluent decorator breaks mypy support
- Missing git tag for 1.0.2 release HOT 1
- Disable PookNoMatch attempted matching output HOT 3
- Intercept mutliple urls
- aiohttp mock only works when using request methods as context managers, but not when awaited HOT 3
- pook broken in urllib3>=2
- `HeadersMatcher: 're.Pattern' object has no attribute 'decode'` with pook 1.2.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pook.