-
Notifications
You must be signed in to change notification settings - Fork 49
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
ModuleNotFoundError: No module named 'regex._regex' #413
Comments
Original comment by Matthew Barnett (Bitbucket: mrabarnett, GitHub: mrabarnett). Cannot reproduce. |
Original comment by Sanath Jathanna (Bitbucket: [Sanath Jathanna](https://bitbucket.org/Sanath Jathanna), ). (I’m the issue creator, hadn’t logged in) I’ve tested it in a clean venv with only regex installed and I still get the issue. Any way for me to check whether regex installed properly such as the file layout or something? |
Original comment by Matthew Barnett (Bitbucket: mrabarnett, GitHub: mrabarnett). How are you installing it? The recommended way is |
Original comment by Sanath Jathanna (Bitbucket: [Sanath Jathanna](https://bitbucket.org/Sanath Jathanna), ). Didn’t work for me. Windows update seems to have fixed the issue, though I cant be sure. The update broke a lot of my workflow and I had to reinstall quite a few things, any one of them could have been the issue. Either way, the problem seems to be fixed Edit: Figured out the issue. pip was installing the 32 bit wheel, its still doing it unless im in a venv so ill have to figure out how to avoid that |
I have encountered this problem when using the package in Python installations with different ABIs that share a common site-packages directory. My experience is with two different Python installations on a Windows system — Python 3.8 (32-bit) and Python 3.8 (64-bit). If I install regex to the 32-bit installation (with This is fixed by reinstalling regex for the Python installation where the problem occurs. This can be done by running Unless I am much mistaken, only a very small percentage of users, i.e. those with unusual Python configurations, will be affected by this. It might not be worth fixing. |
I have this issue on MacOS with the python3.8 installation. I've tried all kinds of invocations of pip to uninstall it, force reinstall it, update it, I've tried Interpreter:
I've also read on the internet that this could be something to do with binaries, which is a bit beyond me in terms of how I should solve it. Any tips or advice really welcome, I'm totally blocked by this. Edit: I finally managed to fix this. What I did was this (probably better methods exist):
I have no idea why this fixed it. Something is quite broken in the ecosystem I think. |
Does that mean regex would only work with python 3.10 ? |
It's currently supported back to Python 3.6. I'm on Windows 10 and I don't have any Apple stuff. |
Hey guys. I found that pip install 32bit version in default. But my python is 64bit. E.g. I want to install Python3.8 with 64bit in Windows, so I download this: Then, manually install it: Finally, it works~. |
it does work.!!! |
Using |
Beware: it is likely a horrific hack. It may break your or mine system in weird way. |
This is my situation regarding this problem: I downloaded Python 3.12 in order to code a chatbot. All seemed to be well until I ran into a problem with importing tenserflow. 3.12 has dropped imp in favor of importlib but tf still uses imp. I downloaded Python 3.11 to get around this, but now it can't import regex module. I've attempted to use all the tips above, but my case is different since it's between Python 3.12 and 3.11 and not between 64bit and 32bit. |
Have you installed regex for Python 3.12? |
Yes. At this point, I will attempt a complete uninstall of Python from my machine and start over from 3.11. |
Original report by Anonymous.
On both the latest (2021.4.4) and previous (at least all from 2020.10.11-2021.3.17) versions, regex has a ModuleNotFoundError similar to issue #349
I'm using python 3.9.5 on windows 10
The text was updated successfully, but these errors were encountered: