-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Rethinkdb-import impossible to use on windows #217
Comments
Can you check with a simple script and multiprocessing if works fine. I guess in windows you have to change the multiprocessing method, maybe to 'spawn', check the documentation module. Initialize the process then create the object and connection, not before |
Ping @ShadowJonathan |
This isn't the actual python library driver, these are CLI commands, which honestly I expect to work regardless of platform Yes, I'd wager that manually hacking the boot process of such a system would fix it, but this issue is specific to fixing the source code to work with windows as well, not monkey patch it |
Any updates on this? Having the same problem on macOS. RethinkDB v2.4.0 If not, anyone know any other way to import JSON files? |
@htbrown to me it is weird that only happens on windows and the stack trace show the error is originated from the builtin multiprocessing lib. Since I cannot test this on windows, I'd ask some more details from you: What happens in case you execute the import script manually and not through the rethinkdb wrapper? (By that I mean find the python file and call that, not the "rethinkdb import" command) |
To clarify - I was having the same issues with macOS. I haven't tried it on my Windows box. If you'd like me to, I can later. Give me a while. |
@gabor-boros if you look closely at the top stack trace, this is caused by pickling (iirc (but i am not sure on this), when i originally was investigating this, i could remember some kind of multiprocess jank in there that was causing this, and would only fly nicely under linux/unix, but not under windows, i'm not sure of that, as i could be misremembering) |
If anyone needs it, I've made my own RethinkDB importer in Node. Got fed up with faffing around with the built in Python one. https://github.com/htbrown/rethinkdb-import No documentation yet so if you need help submit an issue. |
I am also having this issue on a mac, while trying to do an export. Rethinkdb 2.4.0 with Python 3.8.2, database running in a Docker container Update: So I had this issue while following the official docs using |
Right so there's even something wrong with exporting. Hmm. |
I'm also having the same problem in mac os |
I'm getting these errors as well. I'm on Mac Mini M1. I'm not a python expert, so I can't tell if rethinkdb is using python2 or python3, but when I type "python" it seems to use python2. Is that good? Bad? I have both on my system.
Is there a non-python simple binary I can use for import/export instead? |
Or a way to disable multiprocessing? |
I suggest removing or avoiding using python 2, it's been deprecated for a while. |
I tried to remove Python 2 on my Mac before and seem to remember finding it incredibly difficult for a while and then just giving up because it was more effort than it was worth. Do they still package it all in with the Python 3 installer? |
remove only if possible, sometimes python 2 is deeply embedded for system stuff (and people dont care enough to update it to 3), but try to find ways to make python 3 the default for your usages |
Yeah I think portions of macOS use it. I'm just trying to avoid it as much as possible. |
On Mac 11.2.1 the
|
I have created this tool as a workaround (using NodeJS): |
If it's any help, it looks like there was an issue with redis-py. It looks like the parent process might not be serializable. Another similar issue was fixed by serving up a different connection. |
You saved my day. Thanks |
@ShadowJonathan Did you closed Kaspersky Antivitus when you started your python script? |
I didn't have any antivirus on when I tried this script, but that's not the point. |
any update on this? Same issue on dump (mac, rethinkdb 2.4, python3.9) |
ok.. so downgrading to Python 3.7.9 works. If anyone still needs it! |
@lkovesdi Thanks for posting this. I wasted some time on this problem, then found this suggestion, and indeed downgrading my python (via homebrew) let me work around the issue. At least temporarily, because there is no escaping newer Python versions. |
Describe the bug
On Windows 10, with Python 3.8, rethinkdb-import simply refuses to function due to obscure python
multiprocessing
errors.To Reproduce
Steps to reproduce the behavior:
pip install rethinkdb
from python 3.8 (on windows)rethinkdb import [options]
Expected behavior
Normal operation, the starting of importing data
System info
2.4.0~0buster
(docker container)2.4.7
Additional context
The text was updated successfully, but these errors were encountered: