-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Installing the rethinkdb Python driver as a required package of a project's setup.py seems to make the asyncio loop type unavailable.
setup.py:
import setuptools
setuptools.setup(
name='example',
install_requires=['rethinkdb'],
....
)python setup.py installPython 3.5.2 (default, Aug 8 2016, 20:46:29)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rethinkdb as r
>>> r.set_loop_type('asyncio')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/site-packages/rethinkdb-2.3.0-py3.5.egg/rethinkdb/net.py", line 673, in set_loop_type
ValueError: Unknown loop type: 'asyncio'
However, when installing via pip, everything is fine:
pip install rethinkdbPython 3.5.2 (default, Aug 8 2016, 20:46:29)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rethinkdb as r
>>> r.set_loop_type('asyncio')
>>>
I tried a number of versions including 2.3.0 and 2.3.0post1 through 2.3.0post5 and have replicated it in different clean virtual environments as well as docker images based on python:3.5.2.
My suspicion is that this is because of the logic at https://github.com/rethinkdb/rethinkdb/blob/next/drivers/python/rethinkdb/net.py#L676 which is looking for a file in a specific place in the file system - does this work from inside a .egg?