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

TypeError with "rethinkdb import" #3259

Closed
mntns opened this issue Oct 30, 2014 · 4 comments
Closed

TypeError with "rethinkdb import" #3259

mntns opened this issue Oct 30, 2014 · 4 comments
Assignees
Milestone

Comments

@mntns
Copy link

mntns commented Oct 30, 2014

Everytime I try to import data with one of the following commands,

# Importing JSON
rethinkdb import -f users.json --table test.users
# Importing CSV
rethinkdb import -f users.csv --format csv --table test.users

it fails with this error message:

Traceback (most recent call last):
  File /usr/bin/rethinkdb-import, line 9, in <module>
    load_entry_point('rethinkdb==1.15.0-1', 'console_scripts', 'rethinkdb-import')()
  File /usr/lib/python3.4/site-packages/rethinkdb/_import.py, line 833, in main
    import_file(options)
  File /usr/lib/python3.4/site-packages/rethinkdb/_import.py, line 818, in import_file
    spawn_import_clients(options, [file_info])
  File /usr/lib/python3.4/site-packages/rethinkdb/_import.py, line 586, in spawn_import_clients
    task_queue = SimpleQueue()
TypeError: __init__() missing 1 required keyword-only argument: 'ctx'

I use Python 3.4.2 and I made sure, that the RethinkDB driver is installed in the newest version (from pip).

@Tryneus
Copy link
Member

Tryneus commented Oct 30, 2014

It looks like Python 3.4 added another argument to multiprocessing.queues.SimpleQueue construction. The given line works fine in Python 3.3 and 3.2. We should add some more compatibility handling here (and probably get some simple automated tests running so we're more confident in the portability of this script).

@EddyShure - as a workaround, could you run the script directly using an earlier version of python? Thanks for bringing this to our attention!

@Tryneus Tryneus added this to the 1.16 milestone Oct 30, 2014
@danielmewes danielmewes modified the milestones: 1.15.x, 1.16 Oct 30, 2014
@danielmewes
Copy link
Member

Assigning @Tryneus since you have already investigated it.

@Tryneus
Copy link
Member

Tryneus commented Oct 30, 2014

Fix is up in review 2264.

@Tryneus
Copy link
Member

Tryneus commented Nov 5, 2014

This has been approved and merged into next in commit 921e4bc, and cherry-picked into v1.15.x in commit a42fd26. Will be in release 1.15.2. Thanks for reporting this, @EddyShure!

@Tryneus Tryneus closed this as completed Nov 5, 2014
@danielmewes danielmewes modified the milestones: 1.15.2, 1.15.x Nov 5, 2014
This was referenced Nov 5, 2014
chipotle pushed a commit that referenced this issue Nov 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants