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

First example does not work #20

Open
hdzierz opened this issue Feb 23, 2016 · 5 comments
Open

First example does not work #20

hdzierz opened this issue Feb 23, 2016 · 5 comments

Comments

@hdzierz
Copy link

hdzierz commented Feb 23, 2016

When I ran your first very simple example I got an error

pql.find("a > 1 and b == 'foo' or not c.d == False")
ParseError: Unsupported syntax (NameConstant). options: ['Call', 'Dict', 'List', 'Name', 'Num', 'Str', 'operator_and_right']

I think you need to replace False with null.

pql.find("a > 1 and b == 'foo' or not c.d == null")
Out[24]: {'$or': [{'a': 1}, {'$and': [{'b': '2'}, {'c.d': None}]}]}

I used Python 3.5.

Cheers

H

@alonho
Copy link
Owner

alonho commented Feb 24, 2016

It seems the library doesn't support python 3. I'll fix it soon.

@vishalmelmatti
Copy link

+1

1 similar comment
@sp98
Copy link

sp98 commented Jul 12, 2018

+1

@maimike
Copy link

maimike commented Aug 23, 2019

Not work now :(

@maimike
Copy link

maimike commented Aug 23, 2019

you can install pqlpython3

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

No branches or pull requests

5 participants