question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VCRPy 2.0.0 doesn't work on 3.4 anymore

See original GitHub issue

My Travis job is now failing on 3.4:

    import vcr
../../../virtualenv/python3.4.6/lib/python3.4/site-packages/vcr/__init__.py:2: in <module>
    from .config import VCR
../../../virtualenv/python3.4.6/lib/python3.4/site-packages/vcr/config.py:10: in <module>
    from .cassette import Cassette
../../../virtualenv/python3.4.6/lib/python3.4/site-packages/vcr/cassette.py:19: in <module>
    from ._handle_coroutine import handle_coroutine
E     File "/home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/vcr/_handle_coroutine.py", line 1
E       async def handle_coroutine(vcr, fn):  # noqa: E999
E               ^
E   SyntaxError: invalid syntax

I did nothing else than installing the 2.0.0 and starting the same job as usual (requests based recording).

Does VCRPy 2.0.0 still supports 3.4? The 2.7 job works as expected, so my guess is there is condition a little loose on loading async code.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
lmazuelcommented, Sep 20, 2018

@lamenezes I don’t use aiohttp at all, just requests. If you look closely, this stacktrace comes from import vcr, so there is nothing I can do.

If VCRPy as a whole is not compatible with 3.4 I have no trouble with that, but then make it clear in ChangeLog: VCRPy does not support 3.4 anymore. And on PyPi as well (3.4 descriptor is still there).

1reaction
jxltomcommented, Nov 14, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog — vcrpy 4.2.1 documentation - Read the Docs
Fix bug when using vcrpy with python 3.4. 2.0.0. Support python 3.7 (fix ... doesn't support python it anymore); Fix aiohttp stub to...
Read more >
vcrpy 1.7.3 - PyPI
VCR.py simplifies and speeds up tests that make HTTP requests. The first time you run code that is inside a VCR.py context manager...
Read more >
flixel (4.6.1) - Haxelib
fixed rendering with Haxe 3.4.0 and OpenFL Next ... toggleKeys and FlxG.vcr.cancelKeys not working on native (470c8e8); FlxMouse : fixed FlxButton presses ...
Read more >
vcrpy record cassettes doesn't record in a test using test_client ...
But when I run the test the cassette was not generated. The thing is that if I change client.post by requests.post the response...
Read more >
ESP-AT User Guide - Login
It makes an ESP board work as a slave, and an MCU as a host. ... v2.2.0.0 ESP8266-IDF-AT_V2.2.0.0.zip (Recommended).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found