jamadden / mrab-regex-hg

Automatically exported from code.google.com/p/mrab-regex-hg
0 stars 2 forks source link

regex module cannot be found #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you're not using the latest version, please try that.

What steps will reproduce the problem?
1. Install regex:

[C:\Indexing]pip install regex-2014.11.03-cp25-none-win32.whl
Unpacking c:\indexing\regex-2014.11.03-cp25-none-win32.whl
Installing collected packages: regex
  Found existing installation: regex 2014.08.28
    Uninstalling regex:
      Successfully uninstalled regex
Successfully installed regex
Cleaning up...

2. Try to use it in a script (inItalic = regex.compile('(/i1*?) (*?/i0)')

[C:\Indexing]python testital.py
Traceback (most recent call last):
  File "testital.py", line 1, in <module>
    import regex
  File "C:\Python27\lib\site-packages\regex.py", line 392, in <module>
    import _regex_core
  File "C:\Python27\lib\site-packages\_regex_core.py", line 21, in <module>
    import _regex
ImportError: DLL load failed: The specified module could not be found.

Which version of Python? 32-bi

Which operating system? Windows 7 Home Premium

Please provide any additional information below.

Original issue reported on code.google.com by sampson.john7@googlemail.com on 4 Nov 2014 at 5:03

GoogleCodeExporter commented 9 years ago
Why do you have "regex-2014.11.03-cp25-none-win32.whl", which is for Python 2.5 
(note the "cp25"), but are testing Python 2.7?

Original comment by re...@mrabarnett.plus.com on 4 Nov 2014 at 6:10

GoogleCodeExporter commented 9 years ago
Thanks - I did not know what cp25 meant, and thought the latest version
would be the one at the top of the list. I seem on superficial testing to
have it working now, though I had to uninstall and reinstall Python and all
its works, and reinstall pip separately.

Original comment by sampson.john7@googlemail.com on 4 Nov 2014 at 9:44

GoogleCodeExporter commented 9 years ago
For future reference, it's "cp25" because it's for CPython 2.5, the original 
and most common implementation of Python, which is written in the C programming 
language. The regex module includes code written in that language and works 
only with CPython, not Jython, for example.

If it was pure Python, it would be tagged as "py25".

Original comment by re...@mrabarnett.plus.com on 4 Nov 2014 at 11:13