Closed Ryan-Holben closed 8 years ago
Nevermind, it just exists in the alpha version, and commenting out fixes it!
no this is real issue, the problem is that invoke changed its import structure. The solution is to just remove the import.
hmm this sucks. Whats the ETA?
I don't think it's been changed since I mentioned it last, but again, easy fix; just comment out that import.
yep, actually, I think that Invoke finally has the functionality that I had hoped for, so we can make the okcupyd binary just call out to it and use all of its tasks
I commented out from invoke import cli as invoke
to fix the error, but now I get a different issue:
Traceback (most recent call last): File "/usr/local/bin/okcupyd", line 7, in <module> from okcupyd import interactive File "/usr/local/lib/python2.7/site-packages/okcupyd/__init__.py", line 8, in <module> from . import tasks File "/usr/local/lib/python2.7/site-packages/okcupyd/tasks/__init__.py", line 7, in <module> from . import db as db_collection File "/usr/local/lib/python2.7/site-packages/okcupyd/tasks/db.py", line 15, in <module> @task(default=True) File "/usr/local/lib/python2.7/site-packages/invoke/tasks.py", line 303, in inner autoprint=autoprint, File "/usr/local/lib/python2.7/site-packages/invoke/tasks.py", line 58, in __init__ self.positional = self.fill_implicit_positionals(positional) File "/usr/local/lib/python2.7/site-packages/invoke/tasks.py", line 149, in fill_implicit_positionals args, spec_dict = self.argspec(self.body) File "/usr/local/lib/python2.7/site-packages/invoke/tasks.py", line 144, in argspec raise TypeError("Tasks must have an initial Context argument!") TypeError: Tasks must have an initial Context argument!
yeah, I have a fix for this.
When simply running 'import okcupyd', I get:
My pip freeze is:
I tried this with the non-alpha version of okcupyd as well.