connector-x: ModuleNotFoundError: No module named 'connectorx.connectorx_python'
Hello,
I tried importing connectorx in a python interpreter after installing it through pipenv, but I am getting this error.
Python 3.10.0 (default, Dec 16 2021, 16:14:51) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import connectorx as cx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/xxxxx/.local/share/virtualenvs/xxxxx-py-_L81HEc9/lib/python3.10/site-packages/connectorx/__init__.py", line 3, in <module>
from .connectorx_python import read_sql as _read_sql
ModuleNotFoundError: No module named 'connectorx.connectorx_python'
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (6 by maintainers)
@PaulRudin I encountered the same problem; I’ve fixed it by pinning connectorx to release candidate 0.3.2a2:
pip uninstall connectorx && pip install connectorx==0.3.2a2Hi @d33bs , thanks for the report and update. On python 3.7, can you try to specify the newest version (e.g. stable: 0.3.0 or alpha: 0.3.1a1)? https://pypi.org/project/connectorx/#history For old versions we might not have the wheel file for m1 and the source distribution might not work.
Thank you @wangxiaoying, this did the trick! I was able to install from the wheel.
@d33bs , that’s weird. Can you try to download the corresponding wheel file from here and install it manually to see whether it works?
Hi @wangxiaoying - thanks for the reply. With Python 3.7, I’m unable to install >= 0.3.0 with pip (it doesn’t appear to be an available option). This seems to occur even outside of M1-based systems.
Hi @wangxiaoying, I’m not running this on M1 but facing the same issue.