Skip to content

Import module error #26

@crazyfoxkp

Description

@crazyfoxkp

Hi-
Cannot get past this line -- tried with aksharamukha 2.3, downgraded to 2.2.2

>>> import aksharamukha.transliterate as a
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Volumes/External_SSD/swiperfox/My Apps/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.9/lib/python3.9/site-packages/aksharamukha/transliterate.py", line 2, in <module>
    from aksharamukha.gimeltra import Transliterator
  File "/Volumes/External_SSD/swiperfox/My Apps/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.9/lib/python3.9/site-packages/aksharamukha/gimeltra.py", line 10, in <module>
    import regex as re
  File "/Volumes/External_SSD/swiperfox/My Apps/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.9/lib/python3.9/site-packages/regex/__init__.py", line 1, in <module>
    from .regex import *
  File "/Volumes/External_SSD/swiperfox/My Apps/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.9/lib/python3.9/site-packages/regex/regex.py", line 417, in <module>
    import regex._regex_core as _regex_core
  File "/Volumes/External_SSD/swiperfox/My Apps/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.9/lib/python3.9/site-packages/regex/_regex_core.py", line 21, in <module>
    import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'

pip list --

Package            Version
------------------ ---------
aksharamukha       2.2.2
certifi            2025.1.31
charset-normalizer 3.4.1
Deprecated         1.2.18
fonttools          4.56.0
idna               3.10
jaconv             0.4.0
langcodes          3.5.0
language_data      1.3.0
lxml               5.3.1
marisa-trie        1.2.1
pip                23.0.1
pykakasi           2.3.0
PyYAML             6.0.2
regex              2024.11.6
requests           2.32.3
setuptools         76.0.0
unicodedata2       16.0.0
urllib3            2.3.0
wrapt              1.17.2

macOS Sonoma 14.7.1
Mac Mini M1.

Tested same on pop os 22.04 -works great.

What am I missing?
KP

edit-added macOS /linux results

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions