-
Notifications
You must be signed in to change notification settings - Fork 389
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
VCRPy 2.0.0 doesn't work on 3.4 anymore #393
Comments
aiohttp stub doesn't work for python 3.4 on vcrpy 2.0 as stated on the changelog [1] and the release notes [2]. [1] https://vcrpy.readthedocs.io/en/latest/changelog.html |
@lamenezes I don't use aiohttp at all, just requests. If you look closely, this stacktrace comes from 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). |
Found the issue in the code: try:
from asyncio import iscoroutinefunction
from ._handle_coroutine import handle_coroutine
except ImportError:
def iscoroutinefunction(*args, **kwargs):
return False
def handle_coroutine(*args, **kwags):
raise NotImplementedError('Not implemented on Python 2') In Python 2.7, asyncio does not exist, so you get an Possible fix would be to split this into asyncio / ImportError in one try/except, and handle_coroutine / SyntaxError in another try / except. Or just double the except |
If Python 3.4 is going to be dropped, then |
nose-detecthttp requires vcrpy. vcrpy 2.0.0 has had a breaking change which makes it incompatible with Python<3.5.[1] The root issue should be fixed upstream, but till then avoid vcrpy 2.0.0. [1]: kevin1024/vcrpy#393 Bug: T205073 Change-Id: I391bddea1dcfa0c9f214aa6ecc3827423199f904
Thanks for opening the issue and helping debug @lmazuel. I've just released vcrpy 2.0.1 and it should now work correctly with python 3.4. |
This reverts commit 53a3f20. Reason for revert: The upstream issue has been resolved.[1] [1]: kevin1024/vcrpy#393 Bug: T205073 Change-Id: I3ed7635f9b8fed2252c4db8dce27e0d06dbe6cff
Hi @lamenezes, currentlly There is a issue #342 related with this. |
@jxltom well pointed! I think we should pin |
@lamenezes Sure, PR #409 is up. :D |
My Travis job is now failing on 3.4:
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.
The text was updated successfully, but these errors were encountered: