Skip to content
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

search for phrases #50

Closed
antgonza opened this issue Sep 21, 2017 · 0 comments · Fixed by #122
Closed

search for phrases #50

antgonza opened this issue Sep 21, 2017 · 0 comments · Fixed by #122

Comments

@antgonza
Copy link
Collaborator

if you search for phrases the command fails:

$ redbiom search metadata "red house"
Traceback (most recent call last):
  File "/Users/antoniog/.virtualenvs/qiita/bin/redbiom", line 11, in <module>
    load_entry_point('redbiom', 'console_scripts', 'redbiom')()
  File "/Users/antoniog/.virtualenvs/qiita/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/antoniog/.virtualenvs/qiita/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/antoniog/.virtualenvs/qiita/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/antoniog/.virtualenvs/qiita/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/antoniog/.virtualenvs/qiita/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/antoniog/.virtualenvs/qiita/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/antoniog/svn_programs/redbiom/redbiom/commands/search.py", line 87, in search_metadata
    for i in redbiom.search.metadata_full(query, categories):
  File "/Users/antoniog/svn_programs/redbiom/redbiom/search.py", line 51, in metadata_full
    stemmer=stem_f))
  File "/Users/antoniog/svn_programs/redbiom/redbiom/set_expr.py", line 84, in seteval
    formed = ast.parse(str_, mode='eval')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    red house
            ^
SyntaxError: unexpected EOF while parsing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant