Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Error while importing AnalyzerEngine from presidio_analyzer

akhilmahla
6 - Meteoroid

Hi Team,

 

While importing above library, I'm getting below error

 

 

ImportError: dynamic module does not define module export function (PyInit__regex)

 Any ideas why?

6 REPLIES 6
rkapoor
Alteryx
Alteryx

@akhilmahla what version of Python are you using when importing the library? 

 

akhilmahla
6 - Meteoroid

I'm using python 3.6.8

akhilmahla
6 - Meteoroid

I'm getting this error while AnalyzerEngine trying to import regex package. I tried importing regex package separately and I got below error

 

Import regex

ImportError                               Traceback (most recent call last)
<ipython-input-1-db3191260c89> in <module>
      1 from ayx import Alteryx
      2 
----> 3 import regex

c:\program files\alteryx\alteryx designer 2019.4\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\regex\__init__.py in <module>
----> 1 from .regex import *
      2 from . import regex
      3 __all__ = regex.__all__

c:\program files\alteryx\alteryx designer 2019.4\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\regex\regex.py in <module>
    417 # Internals.
    418 
--> 419 import regex._regex_core as _regex_core
    420 import regex._regex as _regex
    421 from threading import RLock as _RLock

c:\program files\alteryx\alteryx designer 2019.4\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\regex\_regex_core.py in <module>
     19 from collections import defaultdict
     20 
---> 21 import regex._regex as _regex
     22 
     23 __all__ = ["A", "ASCII", "B", "BESTMATCH", "D", "DEBUG", "E", "ENHANCEMATCH",

ImportError: dynamic module does not define module export function (PyInit__regex)

 

rkapoor
Alteryx
Alteryx

@akhilmahla are you importing the function for that specific version of Python? 

akhilmahla
6 - Meteoroid

Yes

rkapoor
Alteryx
Alteryx

@akhilmahla might be worth raising a support ticket to support@alteryx.com and I will have a look in parallel also.

Labels
Top Solution Authors