Git Product home page Git Product logo

Comments (8)

gabor-boros avatar gabor-boros commented on June 9, 2024 1

@nlevitt r.now() works, but there is an issue.

Instead of this:

>>> r.now().run(conn)
datetime.datetime(2019, 4, 25, 18, 48, 25, 317000, tzinfo=<rethinkdb.ast.RqlTzinfo object at 0x10de37c50>)

We should get this:

>>> r.now()
<RqlQuery instance: r.now() >

My first guess is that this issue is caused by PEP 479

from rethinkdb-python.

gabor-boros avatar gabor-boros commented on June 9, 2024 1

Opened a PR to fix this. I'll need to add unit/integration tests tomorrow.

from rethinkdb-python.

gabor-boros avatar gabor-boros commented on June 9, 2024

@nlevitt Sorry for the late reply. I'll investigate this as soon as I have time.

from rethinkdb-python.

gabor-boros avatar gabor-boros commented on June 9, 2024

@nlevitt the fix is on master. Could you please try it out by installing from source if it is working for you as well? (The tests should ensure that its working but to double check it)

from rethinkdb-python.

nlevitt avatar nlevitt commented on June 9, 2024

Um... how do I install from source?

(rethinkdb-python-ve3)$ pip install -e .
Obtaining file:///Users/nlevitt/workspace/rethinkdb-python
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/nlevitt/workspace/rethinkdb-python/setup.py", line 30, in <module>
        from rethinkdb.version import VERSION
      File "/Users/nlevitt/workspace/rethinkdb-python/rethinkdb/__init__.py", line 88, in <module>
        r = RethinkDB()
      File "/Users/nlevitt/workspace/rethinkdb-python/rethinkdb/__init__.py", line 36, in __init__
        from rethinkdb import (
      File "/Users/nlevitt/workspace/rethinkdb-python/rethinkdb/_dump.py", line 35, in <module>
        from rethinkdb import _export, utils_common
      File "/Users/nlevitt/workspace/rethinkdb-python/rethinkdb/_export.py", line 38, in <module>
        import six
    ModuleNotFoundError: No module named 'six'
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /Users/nlevitt/workspace/rethinkdb-python/

10 minutes of playing with it and I still haven't figured out how to install?

If I do pip install six then pip install -e . I get

    ImportError: cannot import name 'ql2_pb2' from 'rethinkdb' (/Users/nlevitt/workspace/rethinkdb-python/rethinkdb/__init__.py)

etc.

from rethinkdb-python.

gabor-boros avatar gabor-boros commented on June 9, 2024

Sorry, I forgot to describe it, my shame:

  • Clone the repo
  • Run “make prepare”
  • Run “python setup.py install”

I hope I did not forgot anything

from rethinkdb-python.

nlevitt avatar nlevitt commented on June 9, 2024

Thanks. Works for me!

from rethinkdb-python.

gabor-boros avatar gabor-boros commented on June 9, 2024

Then I’m closing this issue

from rethinkdb-python.

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.