Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Clean head install of invoke causes ImportError #55
I can see
This is actually my first interaction with invoke so maybe I'm doing it wrong.
Here's some platform info:
Just ran into a similar problem with Invoke 0.4.0 on Mac OS X 10.8.4, Homebrew Python 3.3.2:
Any thoughts? Let me know if you'd prefer this in a new issue.
@justinmayer I can recreate this under Python 3 (but not Python 2) - interestingly it's not caught by our test suite/CI because the test runner itself has a non-vendored dependency on 'six' (whereas in normal, non dev/test situations, Invoke relies on its vendored copy of 'six' - thus the
Not sure why a relative import is picking up a 'global' install, I guess that fallback is on purpose.
And of course, not sure why the core problem exists: Python 3 breaks the relative importing. Could swear I had some folks using this under Python 3 previously. Will poke a bit.
Yea that's my bad, it needs to be
Python 2 appears to pick up the relative 'six' in a non-relative
Simplifying and fixing that entire import block; it seems to work for me without any global six installed, under both interpreters.
Thanks & sorry @justinmayer! Will release this change today.