Giter VIP home page Giter VIP logo

Comments (5)

kevin1024 avatar kevin1024 commented on May 20, 2024

Hmm, what version of python3 are you using?

compat.counter should only load if collections.counter (part of the stdlib) doesnt' exist:

from collections import Counter

collections.counter was added in python 3.1.

Do you have any code that reproduces the issue?

from vcrpy.

hartsock avatar hartsock commented on May 20, 2024

@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.

hartsock avatar hartsock commented on May 20, 2024

A seemingly similar problem: guessit-io/guessit#71

from vcrpy.

kevin1024 avatar kevin1024 commented on May 20, 2024

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.

hartsock avatar hartsock commented on May 20, 2024

Thanks for your help. I was able to figure out the issue on my end.

from vcrpy.

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.