Comments (8)
@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.
Opened a PR to fix this. I'll need to add unit/integration tests tomorrow.
from rethinkdb-python.
@nlevitt Sorry for the late reply. I'll investigate this as soon as I have time.
from rethinkdb-python.
@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.
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.
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.
Thanks. Works for me!
from rethinkdb-python.
Then I’m closing this issue
from rethinkdb-python.
Related Issues (20)
- Proposal: Disconnect connection when garbage collected HOT 1
- Python driver fails with unexpected bytes
- Restore not working on Windows due to : (colon) in file and folder names HOT 4
- Python driver incorrectly requires datetime.date type to have tzinfo
- add rate limiting to export and dump commands
- Adding `async` and `await` support for Python 3.5 HOT 20
- Python driver: auto reconnect options? HOT 1
- 'JsonSourceFile' object has no attribute 'bytes_processed' when using restore HOT 1
- Encountering primary key error while running rethinkdb restore for rethinkdb 2.4 version HOT 5
- Typing and docstring support for better IDE experience HOT 1
- Continuous integration and code coverage checks
- Python3.11 compatibility HOT 3
- asyncio deprecated '@asyncio.coroutine' in python 3.11 HOT 3
- Python 3.11 gets error "module ' asyncio' has no attribute 'coroutine'" HOT 1
- Python 3.12 breakage: The distutils module is removed
- 2.4.10 release HOT 10
- Fix wait_closed dependency on Python <3.7
- _restore not handling -i DB.TABLE
- ModuleNotFoundError: No module named 'looseversion' HOT 1
- 2.4.11 Realease HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rethinkdb-python.