Comments (5)
Hmm, what version of python3 are you using?
compat.counter should only load if collections.counter (part of the stdlib) doesnt' exist:
Line 4 in 8d90dba
collections.counter was added in python 3.1.
Do you have any code that reproduces the issue?
from vcrpy.
@kevin1024 all work is here: pyvmomi/python3
The patches where I start working in python 3 are python3/log -> above this commit: .travis.yml with python3
The travis CI output is here: https://travis-ci.org/hartsock/pyvmomi/jobs/30786205
I can dev locally (installing developer versions of everything on python 3.4) applying the patch produces a different error. But I admit I'm not sure what's happening. Is it vcrpy or something else? The print thing was definitely inside vcrpy.
Edit:
Initial error I'm showing in the issue comment:
Running setup.py install for vcrpy
File "/Users/hartsocks/.venv/pyvmomi-tools-py3/lib/python3.4/site-packages/vcr/compat/counter.py", line 192
print doctest.testmod()
^
SyntaxError: invalid syntax
Is from my local environment ... attempting to reproduce the Travis CI error on python 3.4 so I can determine what failed. The error occurs on install of vcrpy.
from vcrpy.
A seemingly similar problem: guessit-io/guessit#71
from vcrpy.
I don't think the issue is with vcr.py, the setup.py test discovery seems to be failling. I hacked on it for a couple minutes and it seems to be running OK for me. I just sent a pull request, the tests are at least running on my local machine: hartsock/pyvmomi#2
A few things though, if it were my project, I would want to use a real test runner instead of using setup.py test. I recommend pytest + tox, a very powerful combination.
Here is a great blog post on python packaging, check out the section on running tests:
http://blog.ionelmc.ro/2014/05/25/python-packaging/#running-the-tests
from vcrpy.
Thanks for your help. I was able to figure out the issue on my end.
from vcrpy.
Related Issues (20)
- autodoc fails for API documentation
- Integration tests fail with httpbin 0.10.0 HOT 3
- AIOHTTP not recording json body HOT 1
- How to run tests HOT 2
- [BUG] Doesn't work for URL's beginning with www.
- How is vcrpy importing from a parent directory in a test file HOT 1
- AttributeError: 'VCRHTTPResponse' object has no attribute 'json' HOT 2
- Add type annotations
- Backport patch to fix test failures with Python 3.12: AttributeError: type object 'VCRHTTPConnection[…]' has no attribute 'debuglevel' HOT 1
- [Duplicate of #719?] Upgrading to VCR.py that uses urllib3 v2+ causes string decoding problems with requests HOT 2
- 🛠️ Custom Persister HOT 1
- Release 6.0.0 to allow users to update to Python 3.12? HOT 20
- `TypeError: cannot pickle 'generator' object` with urllib 2.1.0, no error with urllib 1.26.18
- [Question] Would it make sense to support glob in `filter_headers`
- VCRHTTPResponse should have a `release_conn()` method
- record creation failed when using async HOT 2
- 'VCRHTTPConnection/...' has no attribute 'debuglevel'. Did you mean: 'set_debuglevel'
- Bug Report: Installation Failure of vcrpy>=5.0.0 in Conda Environment HOT 1
- Exception httpx.ResponseNotRead thrown randomly when using cassettes HOT 1
- Httpx Response content is not set/read, causing JSON parsing errors
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 vcrpy.