rethinkdb / rethinkdb-python

Python driver for RethinkDB
https://rethinkdb.com/api/python/
Apache License 2.0
64 stars 35 forks source link

ModuleNotFoundError: No module named 'looseversion' #309

Closed NefixEstrada closed 9 months ago

NefixEstrada commented 10 months ago

Describe the bug Looseversion doesn't get installed through pip

To Reproduce Steps to reproduce the behavior:

  1. Have Python 3.9
  2. Install through pip rethinkdb (pip install rethinkdb)
  3. Do anything

Expected behavior It should work

Screenshots

Traceback (most recent call last):
  File \"/usr/local/bin/rethinkdb-repl\", line 5, in <module>
    from rethinkdb.__main__ import startInterpreter
  File \"/usr/local/lib/python3.9/dist-packages/rethi
nkdb/__init__.py\", line 93, in <module>
    r = RethinkDB()
  File \"/usr/local/lib/python3.9/dist-packages/rethinkdb/__init__.py\", line 32, in __init__
    from rethinkdb import (
  File \"/usr/local/lib/python3.9/dist-packages/rethi
nkdb/_dump.py\", line 35, in <module>
    from rethinkdb import _export, utils_common
  File \"/usr/local/lib/python3.9/dist-packages/rethinkdb/_export.py\", line 40, in <module>
    from rethinkdb import errors, query, utils_common
  F
ile \"/usr/local/lib/python3.9/dist-packages/rethinkdb/utils_common.py\", line 22, in <module>
    from looseversion import LooseVersion
ModuleNotFoundError: No module named 'looseversion'

System info

lsabi commented 10 months ago

Thanks for reporting the bug.

While we're investigating, a temporary solution is to manually install looseversion with the command pip install looseversion (pip3 install looseversion)